diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-01-29 14:33:36 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-01-29 14:33:36 +0000 |
commit | 5563da6a626a7301e5064a8df8b3a9b03421f8aa (patch) | |
tree | 0d5ffd18c3d061f7b91443417ce61ff07b02af3e /LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h | |
parent | a147cee95f5373902242e7b34b92f7103fc05ae4 (diff) | |
download | lufa-5563da6a626a7301e5064a8df8b3a9b03421f8aa.tar.gz lufa-5563da6a626a7301e5064a8df8b3a9b03421f8aa.tar.bz2 lufa-5563da6a626a7301e5064a8df8b3a9b03421f8aa.zip |
Added new LEDs_Disable(), Buttons_Disable() and Joystick_Disable() functions to the board hardware drivers.
Diffstat (limited to 'LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h')
-rw-r--r-- | LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h b/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h index 1665fa4b1..6f6b875e4 100644 --- a/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h +++ b/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Buttons.h @@ -84,6 +84,16 @@ PORTF_PIN2CTRL = PORT_OPC_PULLUP_gc; } + static inline void Buttons_Disable(void) + { + PORTE_OUTCLR = BUTTONS_BUTTON1; + PORTF_OUTCLR = (BUTTONS_BUTTON2 | BUTTONS_BUTTON3); + + PORTE_PIN5CTRL = 0; + PORTF_PIN1CTRL = 0; + PORTF_PIN2CTRL = 0; + } + static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT; static inline uint8_t Buttons_GetStatus(void) { |