Check if CORE_TEENSY is defined and added missing semicolon

This commit is contained in:
Kristian Sloth Lauszus 2013-10-05 01:12:43 +02:00
parent 84bab09221
commit ef57346376

View file

@ -742,7 +742,7 @@ public:
#endif // __AVR__
#if defined(__arm__)
#if defined(__arm__) && defined(CORE_TEENSY)
// pointers are 32 bits on ARM
#define pgm_read_pointer(p) pgm_read_dword(p)
@ -773,7 +773,7 @@ public: \
static uint8_t IsSet() { \
return *(GPIO_BITBAND_PTR(baseReg, pinNum) + 512); \
} \
}
};
MAKE_PIN(P0, CORE_PIN0_PORTREG, CORE_PIN0_BIT, CORE_PIN0_CONFIG);
MAKE_PIN(P1, CORE_PIN1_PORTREG, CORE_PIN1_BIT, CORE_PIN1_CONFIG);