mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Check if CORE_TEENSY is defined and added missing semicolon
This commit is contained in:
parent
84bab09221
commit
ef57346376
1 changed files with 2 additions and 2 deletions
|
@ -742,7 +742,7 @@ public:
|
||||||
|
|
||||||
#endif // __AVR__
|
#endif // __AVR__
|
||||||
|
|
||||||
#if defined(__arm__)
|
#if defined(__arm__) && defined(CORE_TEENSY)
|
||||||
|
|
||||||
// pointers are 32 bits on ARM
|
// pointers are 32 bits on ARM
|
||||||
#define pgm_read_pointer(p) pgm_read_dword(p)
|
#define pgm_read_pointer(p) pgm_read_dword(p)
|
||||||
|
@ -773,7 +773,7 @@ public: \
|
||||||
static uint8_t IsSet() { \
|
static uint8_t IsSet() { \
|
||||||
return *(GPIO_BITBAND_PTR(baseReg, pinNum) + 512); \
|
return *(GPIO_BITBAND_PTR(baseReg, pinNum) + 512); \
|
||||||
} \
|
} \
|
||||||
}
|
};
|
||||||
|
|
||||||
MAKE_PIN(P0, CORE_PIN0_PORTREG, CORE_PIN0_BIT, CORE_PIN0_CONFIG);
|
MAKE_PIN(P0, CORE_PIN0_PORTREG, CORE_PIN0_BIT, CORE_PIN0_CONFIG);
|
||||||
MAKE_PIN(P1, CORE_PIN1_PORTREG, CORE_PIN1_BIT, CORE_PIN1_CONFIG);
|
MAKE_PIN(P1, CORE_PIN1_PORTREG, CORE_PIN1_BIT, CORE_PIN1_CONFIG);
|
||||||
|
|
Loading…
Reference in a new issue