From 5563da6a626a7301e5064a8df8b3a9b03421f8aa Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 29 Jan 2012 14:33:36 +0000 Subject: Added new LEDs_Disable(), Buttons_Disable() and Joystick_Disable() functions to the board hardware drivers. --- LUFA/Drivers/Board/UC3/EVK1100/LEDs.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'LUFA/Drivers/Board/UC3/EVK1100/LEDs.h') diff --git a/LUFA/Drivers/Board/UC3/EVK1100/LEDs.h b/LUFA/Drivers/Board/UC3/EVK1100/LEDs.h index 6fd1ac8c2..96ae1a7b9 100644 --- a/LUFA/Drivers/Board/UC3/EVK1100/LEDs.h +++ b/LUFA/Drivers/Board/UC3/EVK1100/LEDs.h @@ -109,6 +109,13 @@ AVR32_GPIO.port[LEDS_PORT].ovrs = LEDS_ALL_LEDS; } + static inline void LEDs_Disable(void) + { + AVR32_GPIO.port[LEDS_PORT].gperc = LEDS_ALL_LEDS; + AVR32_GPIO.port[LEDS_PORT].oderc = LEDS_ALL_LEDS; + AVR32_GPIO.port[LEDS_PORT].ovrc = LEDS_ALL_LEDS; + } + static inline void LEDs_TurnOnLEDs(const uint32_t LEDMask) { AVR32_GPIO.port[LEDS_PORT].ovrc = LEDMask; -- cgit v1.2.3