Added new LEDs_Disable(), Buttons_Disable() and Joystick_Disable() functions to the board hardware drivers.

This commit is contained in:
Dean Camera 2012-01-29 14:33:36 +00:00
parent a147cee95f
commit 5563da6a62
65 changed files with 422 additions and 16 deletions

View file

@ -96,6 +96,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;