diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-10-31 04:30:47 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-10-31 04:30:47 +0000 |
commit | 139c1afeeb8d76595fbe386ed3d7d394583d6b30 (patch) | |
tree | 050b4ebe91ff8ac03c031a002b349df49f8096b8 /LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h | |
parent | 79922026035a9ff93754b77ef400a0458152142d (diff) | |
download | lufa-139c1afeeb8d76595fbe386ed3d7d394583d6b30.tar.gz lufa-139c1afeeb8d76595fbe386ed3d7d394583d6b30.tar.bz2 lufa-139c1afeeb8d76595fbe386ed3d7d394583d6b30.zip |
Add XMEGA SPI peripheral driver.
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 e38546598..fc99b9210 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
|