diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-07-14 02:58:07 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-07-14 02:58:07 +0000 |
commit | f4528c4aefcadd3342e9de2360d4c48196394fde (patch) | |
tree | 05782a8247534fc7a08175fe04ec9c03dc48b480 /LUFA/Drivers/USB/Core/UC3/USBController_UC3.c | |
parent | 13951ab043c43d0e3ea4ac0ae6a641fd88e7fcb0 (diff) | |
download | lufa-f4528c4aefcadd3342e9de2360d4c48196394fde.tar.gz lufa-f4528c4aefcadd3342e9de2360d4c48196394fde.tar.bz2 lufa-f4528c4aefcadd3342e9de2360d4c48196394fde.zip |
Add high speed USB support for the UC3 devices containing a high speed USB controller.
Add device support preprocessor checks and use symbolic bit names in the UC3 platform clock management driver.
Diffstat (limited to 'LUFA/Drivers/USB/Core/UC3/USBController_UC3.c')
-rw-r--r-- | LUFA/Drivers/USB/Core/UC3/USBController_UC3.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Core/UC3/USBController_UC3.c b/LUFA/Drivers/USB/Core/UC3/USBController_UC3.c index 7cfa28ede..1472dd6a8 100644 --- a/LUFA/Drivers/USB/Core/UC3/USBController_UC3.c +++ b/LUFA/Drivers/USB/Core/UC3/USBController_UC3.c @@ -166,9 +166,20 @@ static void USB_Init_Device(void) #endif
if (USB_Options & USB_DEVICE_OPT_LOWSPEED)
- USB_Device_SetLowSpeed();
+ {
+ USB_Device_SetLowSpeed();
+ }
else
- USB_Device_SetFullSpeed();
+ {
+ #if defined(USB_DEVICE_OPT_HIGHSPEED)
+ if (USB_Options & USB_DEVICE_OPT_HIGHSPEED)
+ USB_Device_SetHighSpeed();
+ else
+ USB_Device_SetFullSpeed();
+ #else
+ USB_Device_SetFullSpeed();
+ #endif
+ }
USB_INT_Enable(USB_INT_VBUSTI);
|