projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new LEDs_Disable(), Buttons_Disable() and Joystick_Disable() functions to the...
[pub/lufa.git]
/
LUFA
/
Drivers
/
Board
/
AVR8
/
USBKEY
/
Buttons.h
diff --git
a/LUFA/Drivers/Board/AVR8/USBKEY/Buttons.h
b/LUFA/Drivers/Board/AVR8/USBKEY/Buttons.h
index
018bf6b
..
3aa19b1
100644
(file)
--- a/
LUFA/Drivers/Board/AVR8/USBKEY/Buttons.h
+++ b/
LUFA/Drivers/Board/AVR8/USBKEY/Buttons.h
@@
-74,6
+74,12
@@
PORTE |= BUTTONS_BUTTON1;
}
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)
{
static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
static inline uint8_t Buttons_GetStatus(void)
{