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/LEDs.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/LEDs.h')
-rw-r--r-- | LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/LEDs.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/LEDs.h b/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/LEDs.h index 24a007f3d..ad6d9070f 100644 --- a/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/LEDs.h +++ b/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/LEDs.h @@ -79,39 +79,39 @@ #if !defined(__DOXYGEN__)
static inline void LEDs_Init(void)
{
- PORTR.DIRSET = LEDS_ALL_LEDS;
- PORTR.OUTSET = LEDS_ALL_LEDS;
+ PORTR_DIRSET = LEDS_ALL_LEDS;
+ PORTR_OUTSET = LEDS_ALL_LEDS;
}
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
{
- PORTR.OUTCLR = LEDMask;
+ PORTR_OUTCLR = LEDMask;
}
static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask)
{
- PORTR.OUTSET = LEDMask;
+ PORTR_OUTSET = LEDMask;
}
static inline void LEDs_SetAllLEDs(const uint8_t LEDMask)
{
- PORTR.OUT = (PORTR.OUT & ~LEDS_ALL_LEDS) | LEDMask;
+ PORTR_OUT = (PORTR.OUT & ~LEDS_ALL_LEDS) | LEDMask;
}
static inline void LEDs_ChangeLEDs(const uint8_t LEDMask, const uint8_t ActiveMask)
{
- PORTR.OUT = (PORTR.OUT & ~LEDMask) | ActiveMask;
+ PORTR_OUT = (PORTR.OUT & ~LEDMask) | ActiveMask;
}
static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
{
- PORTR.OUTTGL = LEDMask;
+ PORTR_OUTTGL = LEDMask;
}
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
static inline uint8_t LEDs_GetLEDs(void)
{
- return (PORTR.OUT & LEDS_ALL_LEDS);
+ return (PORTR_OUT & LEDS_ALL_LEDS);
}
#endif
|