Hello,
I am trying to enable to continuous data toggle for an interrupt endpoint in the AM335x RTOS PDK, but am not sure if I am doing it right.
In the USBDevEndpointConfigSet function in musb.c, I have added the following to the portion of code that configures device IN (USB_EP_DEV_IN) endpoints:
/* Enable continuous data toggle in interrupt mode. */
if((ulFlags & USB_EP_MODE_INT) == USB_EP_MODE_INT)
{
HWREGH(ulBase + EP_OFFSET(ulEndpoint) + USB_O_TXCSRL1) |= MUSB_TXCSR_FRCDATATOG;
}
Can anyone confirm if this is correct? musb being behind an NDA is making this more difficult than it seems like it should be since I am not able to just look it up in their reference manual/datasheet.