projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove USB_MODE_* macros, replace with a semantically linked USB_Modes_t enum.
[pub/lufa.git]
/
Demos
/
DualRole
/
ClassDriver
/
MouseHostDevice
/
MouseHostDevice.c
diff --git
a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
index
1b905b1
..
38acd85
100644
(file)
--- a/
Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
+++ b/
Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
@@
-51,7
+51,7
@@
int main(void)
for (;;)
{
/* Determine which USB mode we are currently in */
for (;;)
{
/* Determine which USB mode we are currently in */
- if (USB_CurrentMode == USB_MODE_H
OST
)
+ if (USB_CurrentMode == USB_MODE_H
ost
)
{
MouseHostTask();
HID_Host_USBTask(&Mouse_HID_Host_Interface);
{
MouseHostTask();
HID_Host_USBTask(&Mouse_HID_Host_Interface);
@@
-87,7
+87,7
@@
void SetupHardware(void)
void EVENT_USB_UIDChange(void)
{
printf_P(PSTR(ESC_FG_YELLOW "UID Change to %S mode\r\n" ESC_FG_WHITE),
void EVENT_USB_UIDChange(void)
{
printf_P(PSTR(ESC_FG_YELLOW "UID Change to %S mode\r\n" ESC_FG_WHITE),
- (USB_CurrentMode == USB_MODE_D
EVICE
) ? PSTR("Device") : PSTR("Host"));
+ (USB_CurrentMode == USB_MODE_D
evice
) ? PSTR("Device") : PSTR("Host"));
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
}
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
}