Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
938f86d0
Commit
938f86d0
authored
May 07, 2009
by
Dean Camera
Browse files
Fix build errors in Joystick device demo and library LEDs driver (on *nix systems).
parent
526e3989
Changes
2
Hide whitespace changes
Inline
Side-by-side
Demos/Device/Joystick/Joystick.c
View file @
938f86d0
...
@@ -154,6 +154,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
...
@@ -154,6 +154,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
bool
GetNextReport
(
USB_JoystickReport_Data_t
*
ReportData
)
bool
GetNextReport
(
USB_JoystickReport_Data_t
*
ReportData
)
{
{
static
uint8_t
PrevJoyStatus
=
0
;
static
uint8_t
PrevJoyStatus
=
0
;
static
uint8_t
PrevButtonStatus
=
0
;
uint8_t
JoyStatus_LCL
=
Joystick_GetStatus
();
uint8_t
JoyStatus_LCL
=
Joystick_GetStatus
();
uint8_t
ButtonStatus_LCL
=
Buttons_GetStatus
();
uint8_t
ButtonStatus_LCL
=
Buttons_GetStatus
();
bool
InputChanged
=
false
;
bool
InputChanged
=
false
;
...
...
LUFA/Drivers/Board/Buttons.h
View file @
938f86d0
...
@@ -71,15 +71,15 @@
...
@@ -71,15 +71,15 @@
#if !defined(BOARD)
#if !defined(BOARD)
#error BOARD must be set in makefile to a value specified in BoardTypes.h.
#error BOARD must be set in makefile to a value specified in BoardTypes.h.
#elif (BOARD == BOARD_USBKEY)
#elif (BOARD == BOARD_USBKEY)
#include
"USBKEY/B
UTTONS
.h"
#include
"USBKEY/B
uttons
.h"
#elif (BOARD == BOARD_STK525)
#elif (BOARD == BOARD_STK525)
#include
"STK525/B
UTTONS
.h"
#include
"STK525/B
uttons
.h"
#elif (BOARD == BOARD_STK526)
#elif (BOARD == BOARD_STK526)
#include
"STK526/B
UTTONS
.h"
#include
"STK526/B
uttons
.h"
#elif (BOARD == BOARD_ATAVRUSBRF01)
#elif (BOARD == BOARD_ATAVRUSBRF01)
#include
"ATAVRUSBRF01/B
UTTONS
.h"
#include
"ATAVRUSBRF01/B
uttons
.h"
#elif (BOARD == BOARD_USER)
#elif (BOARD == BOARD_USER)
#include
"Board/B
UTTONS
.h"
#include
"Board/B
uttons
.h"
#else
#else
#error The selected board does not contain any GPIO buttons.
#error The selected board does not contain any GPIO buttons.
#endif
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment