Added new USB_DeviceState variable to keep track of the current Device mode USB state.
Added new Endpoint_ClearStatusStage() convenience function to assist with the status stages of control transfers. Removed vague USB_IsConnected global - test USB_DeviceState or USB_HostState explicitly to gain previous functionality. Removed USB_IsSuspended global - test USB_DeviceState against DEVICE_STATE_Suspended instead. Fixed possible enumeration errors from spinloops which may fail to exit if the USB connection is severed before the exit condition becomes true.
Showing
- Bootloaders/CDC/BootloaderCDC.c 32 additions, 15 deletionsBootloaders/CDC/BootloaderCDC.c
- Bootloaders/DFU/BootloaderDFU.c 47 additions, 32 deletionsBootloaders/DFU/BootloaderDFU.c
- Bootloaders/TeensyHID/TeensyHID.c 2 additions, 4 deletionsBootloaders/TeensyHID/TeensyHID.c
- Demos/Device/ClassDriver/MassStorage/Lib/DataflashManager.c 20 additions, 4 deletionsDemos/Device/ClassDriver/MassStorage/Lib/DataflashManager.c
- Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c 1 addition, 1 deletionDemos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
- Demos/Device/Incomplete/Sideshow/Sideshow.c 1 addition, 1 deletionDemos/Device/Incomplete/Sideshow/Sideshow.c
- Demos/Device/LowLevel/AudioInput/AudioInput.c 2 additions, 4 deletionsDemos/Device/LowLevel/AudioInput/AudioInput.c
- Demos/Device/LowLevel/AudioOutput/AudioOutput.c 2 additions, 4 deletionsDemos/Device/LowLevel/AudioOutput/AudioOutput.c
- Demos/Device/LowLevel/CDC/CDC.c 28 additions, 23 deletionsDemos/Device/LowLevel/CDC/CDC.c
- Demos/Device/LowLevel/DualCDC/DualCDC.c 22 additions, 17 deletionsDemos/Device/LowLevel/DualCDC/DualCDC.c
- Demos/Device/LowLevel/GenericHID/GenericHID.c 11 additions, 3 deletionsDemos/Device/LowLevel/GenericHID/GenericHID.c
- Demos/Device/LowLevel/Joystick/Joystick.c 1 addition, 1 deletionDemos/Device/LowLevel/Joystick/Joystick.c
- Demos/Device/LowLevel/Keyboard/Keyboard.c 11 additions, 17 deletionsDemos/Device/LowLevel/Keyboard/Keyboard.c
- Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c 8 additions, 6 deletionsDemos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c
- Demos/Device/LowLevel/MIDI/MIDI.c 1 addition, 1 deletionDemos/Device/LowLevel/MIDI/MIDI.c
- Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c 21 additions, 5 deletionsDemos/Device/LowLevel/MassStorage/Lib/DataflashManager.c
- Demos/Device/LowLevel/MassStorage/MassStorage.c 52 additions, 56 deletionsDemos/Device/LowLevel/MassStorage/MassStorage.c
- Demos/Device/LowLevel/Mouse/Mouse.c 5 additions, 13 deletionsDemos/Device/LowLevel/Mouse/Mouse.c
- Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.c 1 addition, 1 deletionDemos/Device/LowLevel/RNDISEthernet/RNDISEthernet.c
- Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c 15 additions, 12 deletionsDemos/Device/LowLevel/USBtoSerial/USBtoSerial.c
Loading
Please register or sign in to comment