Trailing white spaces removed

This commit is contained in:
Martin Jaeger
2019-11-21 07:44:15 +01:00
parent 7952ac99b0
commit 74b765e801
26 changed files with 391 additions and 396 deletions
+4 -4
View File
@@ -193,17 +193,17 @@ bool USBDevice::controlOut(void)
/*
* We seem to have a pending device-to-host transfer. The host must have
* sent a new control request without waiting for us to finish processing
* the previous one. This appears to happen when we're connected to certain
* the previous one. This appears to happen when we're connected to certain
* USB 3.0 host chip set. Do a zeor-length send to tell the host we're not
* ready for the new request - that'll make it resend - and then just
* pretend we were successful here so that the pending transfer can finish.
*/
uint8_t buf[1] = { 0 };
EP0write(buf, 0);
/* execute our pending ttransfer */
controlIn();
/* indicate success */
return true;
#else
@@ -740,7 +740,7 @@ void USBDevice::disconnect(void)
{
/* Disconnect device */
USBHAL::disconnect();
/* Set initial device state */
device.state = POWERED;
device.configuration = 0;
+7 -7
View File
@@ -33,7 +33,7 @@ void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state) {
__HAL_SYSCFG_USBPULLUP_ENABLE();
} else {
__HAL_SYSCFG_USBPULLUP_DISABLE();
}
}
}
#elif defined(TARGET_STM32L0)||defined(TARGET_STM32F0)
@@ -43,7 +43,7 @@ void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state) {
SET_BIT(USB->BCDR, USB_BCDR_DPPU); // DP Pull-up
} else {
CLEAR_BIT(USB->BCDR, USB_BCDR_DPPU);
}
}
}
#elif defined(TARGET_STM32F3)
@@ -112,9 +112,9 @@ public:
PacketBufferAreaManager(int bufsize_):bufsize(bufsize_) {
reset();
}
void reset() {
head = 0;
tail = bufsize;
void reset() {
head = 0;
tail = bufsize;
}
int allocBuf(int maxPacketSize) {
head += 4;
@@ -317,7 +317,7 @@ void USBHAL::DataInStageCallback(uint8_t epnum) {
case 0: // EP0IN
EP0in();
break;
case 1:
case 1:
epComplete |= (1<<EP1IN);
if (EP1_IN_callback()) {
epComplete &= ~(1<<EP1IN);
@@ -329,7 +329,7 @@ void USBHAL::DataInStageCallback(uint8_t epnum) {
epComplete &= ~(1<<EP2IN);
}
break;
case 3:
case 3:
epComplete |= (1<<EP3IN);
if (EP3_IN_callback()) {
epComplete &= ~(1<<EP3IN);
-1
View File
@@ -146,4 +146,3 @@ USB_OTG_CORE_REGS;
#endif //__USB_OTG_REGS_H__
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/