mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-23 19:20:51 +00:00
stm32-f4discovery-usb: don't re-activate the channel for BULK endpoints
This commit is contained in:
parent
3faedff94c
commit
6cad159483
@ -1306,11 +1306,16 @@ static void HCD_HC_IN_IRQHandler(HCD_HandleTypeDef *hhcd, uint8_t chnum)
|
||||
else if (hhcd->hc[ch_num].state == HC_NAK)
|
||||
{
|
||||
hhcd->hc[ch_num].urb_state = URB_NOTREADY;
|
||||
/* re-activate the channel */
|
||||
tmpreg = USBx_HC(ch_num)->HCCHAR;
|
||||
tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
|
||||
tmpreg |= USB_OTG_HCCHAR_CHENA;
|
||||
USBx_HC(ch_num)->HCCHAR = tmpreg;
|
||||
|
||||
// BK: don't re-activate the channel for BULK endpoints
|
||||
if (hhcd->hc[ch_num].ep_type != EP_TYPE_BULK){
|
||||
/* re-activate the channel */
|
||||
tmpreg = USBx_HC(ch_num)->HCCHAR;
|
||||
tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
|
||||
tmpreg |= USB_OTG_HCCHAR_CHENA;
|
||||
USBx_HC(ch_num)->HCCHAR = tmpreg;
|
||||
}
|
||||
// BK: end fix
|
||||
}
|
||||
else if (hhcd->hc[ch_num].state == HC_BBLERR)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user