projects
/
pub
/
USBasp.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/USBasp.git]
/
LUFA
/
Drivers
/
Board
/
AVR8
/
STK526
/
Joystick.h
diff --git
a/LUFA/Drivers/Board/AVR8/STK526/Joystick.h
b/LUFA/Drivers/Board/AVR8/STK526/Joystick.h
index
7c024fb
..
443d701
100644
(file)
--- a/
LUFA/Drivers/Board/AVR8/STK526/Joystick.h
+++ b/
LUFA/Drivers/Board/AVR8/STK526/Joystick.h
@@
-90,7
+90,14
@@
{
DDRB &= ~JOY_BMASK;
- PORTB |= JOY_BMASK;
+ PORTB |= JOY_BMASK;
+ }
+
+ static inline void Joystick_Disable(void)
+ {
+ DDRB &= ~JOY_BMASK;
+
+ PORTB &= ~JOY_BMASK;
}
static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;