diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-10-31 04:30:47 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-10-31 04:30:47 +0000 |
| commit | 10a7d10b068e35c809fb6f831c4ba4e2742597c7 (patch) | |
| tree | 050b4ebe91ff8ac03c031a002b349df49f8096b8 /LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h | |
| parent | 4e8be394bef840c9c83c8cacd6847efc25a92ac2 (diff) | |
Add XMEGA SPI peripheral driver.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1967 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h')
| -rw-r--r-- | LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h b/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h index e3854659..fc99b921 100644 --- a/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h +++ b/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h @@ -76,18 +76,18 @@ #if !defined(__DOXYGEN__)
static inline void Buttons_Init(void)
{
- PORTE.OUTCLR = BUTTONS_BUTTON1;
- PORTF.OUTCLR = (BUTTONS_BUTTON2 | BUTTONS_BUTTON3);
+ PORTE_OUTCLR = BUTTONS_BUTTON1;
+ PORTF_OUTCLR = (BUTTONS_BUTTON2 | BUTTONS_BUTTON3);
- PORTE.PIN5CTRL = PORT_OPC_PULLUP_gc;
- PORTF.PIN1CTRL = PORT_OPC_PULLUP_gc;
- PORTF.PIN2CTRL = PORT_OPC_PULLUP_gc;
+ PORTE_PIN5CTRL = PORT_OPC_PULLUP_gc;
+ PORTF_PIN1CTRL = PORT_OPC_PULLUP_gc;
+ PORTF_PIN2CTRL = PORT_OPC_PULLUP_gc;
}
static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
static inline uint8_t Buttons_GetStatus(void)
{
- return ((~PORTE.IN & BUTTONS_BUTTON1) | (~PORTF.IN & (BUTTONS_BUTTON2 | BUTTONS_BUTTON3)));
+ return ((~PORTE_IN & BUTTONS_BUTTON1) | (~PORTF_IN & (BUTTONS_BUTTON2 | BUTTONS_BUTTON3)));
}
#endif
|
