mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +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)
|
else if (hhcd->hc[ch_num].state == HC_NAK)
|
||||||
{
|
{
|
||||||
hhcd->hc[ch_num].urb_state = URB_NOTREADY;
|
hhcd->hc[ch_num].urb_state = URB_NOTREADY;
|
||||||
/* re-activate the channel */
|
|
||||||
tmpreg = USBx_HC(ch_num)->HCCHAR;
|
// BK: don't re-activate the channel for BULK endpoints
|
||||||
tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
|
if (hhcd->hc[ch_num].ep_type != EP_TYPE_BULK){
|
||||||
tmpreg |= USB_OTG_HCCHAR_CHENA;
|
/* re-activate the channel */
|
||||||
USBx_HC(ch_num)->HCCHAR = tmpreg;
|
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)
|
else if (hhcd->hc[ch_num].state == HC_BBLERR)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user