aboutsummaryrefslogtreecommitdiffstats
path: root/Demos
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-10-12 12:22:11 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-10-12 12:22:11 +0000
commit7aaced1e8bc81ebbf0a1f06fc443ea4707edd1dd (patch)
tree22251cc704e7d6c209e529727910838f0705145e /Demos
parentc1cfffd8eb92aedde76439afa30d8584c4c60043 (diff)
downloadlufa-7aaced1e8bc81ebbf0a1f06fc443ea4707edd1dd.tar.gz
lufa-7aaced1e8bc81ebbf0a1f06fc443ea4707edd1dd.tar.bz2
lufa-7aaced1e8bc81ebbf0a1f06fc443ea4707edd1dd.zip
Remove USB_MODE_* macros, replace with a semantically linked USB_Modes_t enum.
Moved the USB device selection logic for ENDPOINT_TOTAL_ENDPOINTS further up in Endpoint.h to where the endpoint bank capabilities are determined, to reduce the total number of device-specific logic. Change USB_Host_WaitMS() to test and disable the HSOFI interrupt before resuming the bus, so that it does not fire before the delay loop has run. Add missing const qualifier to the parameter of USB_Host_ClearPipeStall().
Diffstat (limited to 'Demos')
-rw-r--r--Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
index 1b905b114..38acd8562 100644
--- 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 */
- if (USB_CurrentMode == USB_MODE_HOST)
+ if (USB_CurrentMode == USB_MODE_Host)
{
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),
- (USB_CurrentMode == USB_MODE_DEVICE) ? PSTR("Device") : PSTR("Host"));
+ (USB_CurrentMode == USB_MODE_Device) ? PSTR("Device") : PSTR("Host"));
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
}