2 Replies Latest reply on Sep 22, 2014 6:44 AM by FastDave

    Library defines for Galileo

    Spark12345

      Hello

       

      I am just trying to provide compatibility to an Arduino library for use with the Galileo, for serial ports.

       

      In the library we have defines such as:

       

      #if defined(__AVR_ATmega328P__) 

      #define SERIAL

      #endif

       

      #if defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__)

      #define SERIAL

      #define SERIAL_1

      #endif

       

      #if defined(__SAM3X8E__) // Due

      #define SERIAL

      #define SERIAL_1

      #define SERIAL_2

      #define SERIAL_3

      #endif

       

      And I want to include one for the Galileo.

      I have not yet found one specific to the Galileo, however the following does seem to work:

       

      #if defined(__linux__)

       

      However I suspect this is rather broad and may cover other boards which is not desired.

       

      Is there a specific define I can use for the Galileo?

       

      Thanks