Added new Drivers/USB/LowLevel/Device.c file to house Device mode specific functions that are more complicated than simple macros. Moved USB_Device_SendRemoteWakeup() to the new Device.c source file and corrected it to unfreeze and restart the USB controller clock before issuing a Remote Wakeup request.
Removed the USB_Device_IsRemoteWakeupSent() and USB_Device_IsUSBSuspended() macros, as they are now obsolete.
This commit is contained in:
parent
31a34154db
commit
8b053d6ba5
75 changed files with 156 additions and 55 deletions
|
@ -76,7 +76,8 @@ RingBuff_t UARTtoUSB_Buffer;
|
|||
int main(void)
|
||||
{
|
||||
SetupHardware();
|
||||
|
||||
V2Protocol_Init();
|
||||
|
||||
RingBuffer_InitBuffer(&USBtoUART_Buffer);
|
||||
RingBuffer_InitBuffer(&UARTtoUSB_Buffer);
|
||||
|
||||
|
@ -147,7 +148,6 @@ void SetupHardware(void)
|
|||
SoftUART_Init();
|
||||
LEDs_Init();
|
||||
USB_Init();
|
||||
V2Protocol_Init();
|
||||
|
||||
/* Disable JTAG debugging */
|
||||
MCUCR |= (1 << JTD);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue