diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-02-27 14:04:29 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-02-27 14:04:29 +0000 |
commit | f3f481183aa201739a84f847769dcba50166eb98 (patch) | |
tree | 1457d92965426e6aa46957e3044e26d29124c56e /LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.c | |
parent | cf2411435cf41ca4dbfcc3d89c6287743db79625 (diff) | |
download | lufa-f3f481183aa201739a84f847769dcba50166eb98.tar.gz lufa-f3f481183aa201739a84f847769dcba50166eb98.tar.bz2 lufa-f3f481183aa201739a84f847769dcba50166eb98.zip |
More AVR32 UC3B architecture ports - USB device mode applications can now be sucessfully compiled, although they will be currently non-functional.
Diffstat (limited to 'LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.c')
-rw-r--r-- | LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.c b/LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.c index 05a81f273..1f5004d7e 100644 --- a/LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.c +++ b/LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.c @@ -48,20 +48,19 @@ bool Endpoint_ConfigureEndpoint_Prv(const uint8_t Number, Endpoint_SelectEndpoint(Number);
Endpoint_EnableEndpoint();
- *((uint32_t*)AVR32_USBB_UECFG0)[USB_SelectedEndpoint] = 0;
- *((uint32_t*)AVR32_USBB_UECFG0)[USB_SelectedEndpoint] = UECFGXData;
+ ((uint32_t*)AVR32_USBB_UECFG0)[USB_SelectedEndpoint] = 0;
+ ((uint32_t*)AVR32_USBB_UECFG0)[USB_SelectedEndpoint] = UECFGXData;
return Endpoint_IsConfigured();
}
void Endpoint_ClearEndpoints(void)
{
- UEINT = 0;
-
for (uint8_t EPNum = 0; EPNum < ENDPOINT_TOTAL_ENDPOINTS; EPNum++)
{
Endpoint_SelectEndpoint(EPNum);
- *((uint32_t*)AVR32_USBB_UECFG0)[USB_SelectedEndpoint] = 0;
+ ((uint32_t*)AVR32_USBB_UECFG0)[USB_SelectedEndpoint] = 0;
+ ((uint32_t*)AVR32_USBB_UECON0CLR)[USB_SelectedEndpoint] = 0xFFFFFFFF;
Endpoint_DisableEndpoint();
}
}
|