Question
[OTG + Cube] Writing 0 to DIEPCTL/DOEPCTL.EPDIS
Posted on September 03, 2017 at 19:37
In [STM32Cube_FW_F4_V1.16.0]\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_usb.c USB_EPSetStall(), the following can be seen:
USBx_INEP(ep->num)->DIEPCTL &= ~(USB_OTG_DIEPCTL_EPDIS);
(and the same for DOEPCTL).
However, according to respective RM, EPDIS bit in both DIEPCTL and DOEPCTL are rs (read-set) and read-only for endpoint 0, i.e. writing 0 has no effect.
Comment, please.
JW