aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Board/EVK1101
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-02-22 12:58:40 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-02-22 12:58:40 +0000
commit2590452104c569f64aeefba3b06734035fb77d66 (patch)
treee37c16bf8bddfc7caf36b95b5d8071180720319a /LUFA/Drivers/Board/EVK1101
parentd2ed97e34b42aff851fa8ba39c43b6cb9e4f6448 (diff)
downloadlufa-2590452104c569f64aeefba3b06734035fb77d66.tar.gz
lufa-2590452104c569f64aeefba3b06734035fb77d66.tar.bz2
lufa-2590452104c569f64aeefba3b06734035fb77d66.zip
Change over board hardware drivers to use the custom uintN_t and intN_t native word size types.
Diffstat (limited to 'LUFA/Drivers/Board/EVK1101')
-rw-r--r--LUFA/Drivers/Board/EVK1101/Buttons.h3
-rw-r--r--LUFA/Drivers/Board/EVK1101/Joystick.h3
-rw-r--r--LUFA/Drivers/Board/EVK1101/LEDs.h13
3 files changed, 8 insertions, 11 deletions
diff --git a/LUFA/Drivers/Board/EVK1101/Buttons.h b/LUFA/Drivers/Board/EVK1101/Buttons.h
index b827787c7..0aa195f27 100644
--- a/LUFA/Drivers/Board/EVK1101/Buttons.h
+++ b/LUFA/Drivers/Board/EVK1101/Buttons.h
@@ -82,8 +82,7 @@
AVR32_GPIO.port[1].puers = (BUTTONS_BUTTON1 | BUTTONS_BUTTON2);
}
- static inline uint32_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
- static inline uint32_t Buttons_GetStatus(void)
+ static inline uintN_t Buttons_GetStatus(void)
{
return (~AVR32_GPIO.port[1].pvr & (BUTTONS_BUTTON1 | BUTTONS_BUTTON2));
}
diff --git a/LUFA/Drivers/Board/EVK1101/Joystick.h b/LUFA/Drivers/Board/EVK1101/Joystick.h
index 0bcc59c94..f02ec405f 100644
--- a/LUFA/Drivers/Board/EVK1101/Joystick.h
+++ b/LUFA/Drivers/Board/EVK1101/Joystick.h
@@ -99,8 +99,7 @@
AVR32_GPIO.port[1].puers = JOY_MASK_PB;
}
- static inline uint32_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
- static inline uint32_t Joystick_GetStatus(void)
+ static inline uintN_t Joystick_GetStatus(void)
{
return ((~AVR32_GPIO.port[1].pvr & JOY_MASK_PB) |
(~AVR32_GPIO.port[0].pvr & JOY_MASK_PA));
diff --git a/LUFA/Drivers/Board/EVK1101/LEDs.h b/LUFA/Drivers/Board/EVK1101/LEDs.h
index f19e464d7..9b341695c 100644
--- a/LUFA/Drivers/Board/EVK1101/LEDs.h
+++ b/LUFA/Drivers/Board/EVK1101/LEDs.h
@@ -94,35 +94,34 @@
AVR32_GPIO.port[0].ovrs = LEDS_ALL_LEDS;
}
- static inline void LEDs_TurnOnLEDs(const uint32_t LEDMask)
+ static inline void LEDs_TurnOnLEDs(const uintN_t LEDMask)
{
AVR32_GPIO.port[0].ovrc = LEDMask;
}
- static inline void LEDs_TurnOffLEDs(const uint32_t LEDMask)
+ static inline void LEDs_TurnOffLEDs(const uintN_t LEDMask)
{
AVR32_GPIO.port[0].ovrs = LEDMask;
}
- static inline void LEDs_SetAllLEDs(const uint32_t LEDMask)
+ static inline void LEDs_SetAllLEDs(const uintN_t LEDMask)
{
AVR32_GPIO.port[0].ovrs = LEDS_ALL_LEDS;
AVR32_GPIO.port[0].ovrc = LEDMask;
}
- static inline void LEDs_ChangeLEDs(const uint32_t LEDMask, const uint32_t ActiveMask)
+ static inline void LEDs_ChangeLEDs(const uintN_t LEDMask, const uintN_t ActiveMask)
{
AVR32_GPIO.port[0].ovrs = LEDMask;
AVR32_GPIO.port[0].ovrc = ActiveMask;
}
- static inline void LEDs_ToggleLEDs(const uint32_t LEDMask)
+ static inline void LEDs_ToggleLEDs(const uintN_t LEDMask)
{
AVR32_GPIO.port[0].ovrt = LEDMask;
}
- static inline uint32_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
- static inline uint32_t LEDs_GetLEDs(void)
+ static inline uintN_t LEDs_GetLEDs(void)
{
return (AVR32_GPIO.port[0].ovr & LEDS_ALL_LEDS);
}