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/CodeTemplates | |
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/CodeTemplates')
-rw-r--r-- | LUFA/CodeTemplates/DriverStubs/Buttons.h | 5 | ||||
-rw-r--r-- | LUFA/CodeTemplates/DriverStubs/Joystick.h | 5 | ||||
-rw-r--r-- | LUFA/CodeTemplates/DriverStubs/LEDs.h | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/LUFA/CodeTemplates/DriverStubs/Buttons.h b/LUFA/CodeTemplates/DriverStubs/Buttons.h index f1a184600..a1de82d2c 100644 --- a/LUFA/CodeTemplates/DriverStubs/Buttons.h +++ b/LUFA/CodeTemplates/DriverStubs/Buttons.h @@ -67,6 +67,11 @@ // TODO: Initialize the appropriate port pins as an inputs here, with pull-ups } + static inline void Buttons_Disable(void) + { + // TODO: Clear the appropriate port pins as high impedance inputs here + } + static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT; static inline uint8_t Buttons_GetStatus(void) { diff --git a/LUFA/CodeTemplates/DriverStubs/Joystick.h b/LUFA/CodeTemplates/DriverStubs/Joystick.h index bfde26bb6..cc6d29540 100644 --- a/LUFA/CodeTemplates/DriverStubs/Joystick.h +++ b/LUFA/CodeTemplates/DriverStubs/Joystick.h @@ -79,6 +79,11 @@ // TODO: Initialize joystick port pins as inputs with pull-ups } + static inline void Joystick_Disable(void) + { + // TODO: Clear the joystick pins as high impedance inputs here + } + static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT; static inline uint8_t Joystick_GetStatus(void) { diff --git a/LUFA/CodeTemplates/DriverStubs/LEDs.h b/LUFA/CodeTemplates/DriverStubs/LEDs.h index e698c9db6..24b428840 100644 --- a/LUFA/CodeTemplates/DriverStubs/LEDs.h +++ b/LUFA/CodeTemplates/DriverStubs/LEDs.h @@ -82,6 +82,11 @@ // TODO: Add code to initialize LED port pins as outputs here } + static inline void LEDs_Disable(void) + { + // TODO: Clear the LED port pins as high impedance inputs here + } + static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask) { // TODO: Add code to turn on LEDs given in the LEDMask mask here, leave others as-is |