aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Board/AVR8/EVK527
diff options
context:
space:
mode:
Diffstat (limited to 'LUFA/Drivers/Board/AVR8/EVK527')
-rw-r--r--LUFA/Drivers/Board/AVR8/EVK527/Buttons.h6
-rw-r--r--LUFA/Drivers/Board/AVR8/EVK527/Joystick.h17
-rw-r--r--LUFA/Drivers/Board/AVR8/EVK527/LEDs.h6
3 files changed, 25 insertions, 4 deletions
diff --git a/LUFA/Drivers/Board/AVR8/EVK527/Buttons.h b/LUFA/Drivers/Board/AVR8/EVK527/Buttons.h
index 03c51d2e8..748299f50 100644
--- a/LUFA/Drivers/Board/AVR8/EVK527/Buttons.h
+++ b/LUFA/Drivers/Board/AVR8/EVK527/Buttons.h
@@ -74,6 +74,12 @@
PORTE |= BUTTONS_BUTTON1;
}
+ static inline void Buttons_Disable(void)
+ {
+ DDRE &= ~BUTTONS_BUTTON1;
+ PORTE &= ~BUTTONS_BUTTON1;
+ }
+
static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
static inline uint8_t Buttons_GetStatus(void)
{
diff --git a/LUFA/Drivers/Board/AVR8/EVK527/Joystick.h b/LUFA/Drivers/Board/AVR8/EVK527/Joystick.h
index 19d19ee7d..811b5f1c6 100644
--- a/LUFA/Drivers/Board/AVR8/EVK527/Joystick.h
+++ b/LUFA/Drivers/Board/AVR8/EVK527/Joystick.h
@@ -91,11 +91,20 @@
#if !defined(__DOXYGEN__)
static inline void Joystick_Init(void)
{
- DDRF &= ~(JOY_FMASK);
- DDRC &= ~(JOY_CMASK);
+ DDRF &= ~JOY_FMASK;
+ DDRC &= ~JOY_CMASK;
- PORTF |= JOY_FMASK;
- PORTC |= JOY_CMASK;
+ PORTF |= JOY_FMASK;
+ PORTC |= JOY_CMASK;
+ }
+
+ static inline void Joystick_Disable(void)
+ {
+ DDRF &= ~JOY_FMASK;
+ DDRC &= ~JOY_CMASK;
+
+ PORTF &= ~JOY_FMASK;
+ PORTC &= ~JOY_CMASK;
}
static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
diff --git a/LUFA/Drivers/Board/AVR8/EVK527/LEDs.h b/LUFA/Drivers/Board/AVR8/EVK527/LEDs.h
index 4cb6aeb08..fddb99de2 100644
--- a/LUFA/Drivers/Board/AVR8/EVK527/LEDs.h
+++ b/LUFA/Drivers/Board/AVR8/EVK527/LEDs.h
@@ -86,6 +86,12 @@
PORTD &= ~LEDS_ALL_LEDS;
}
+ static inline void LEDs_Disable(void)
+ {
+ DDRD &= ~LEDS_ALL_LEDS;
+ PORTD &= ~LEDS_ALL_LEDS;
+ }
+
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
{
PORTD |= LEDMask;