Support interrupt OUT in RP2040 HCD
This commit is contained in:
parent
fa895ed3dc
commit
c0a65ba0f6
|
@ -328,9 +328,11 @@ static void _hw_endpoint_init(struct hw_endpoint *ep, uint8_t dev_addr, uint8_t
|
||||||
// endpoint number / direction
|
// endpoint number / direction
|
||||||
// preamble
|
// preamble
|
||||||
uint32_t reg = dev_addr | (num << USB_ADDR_ENDP1_ENDPOINT_LSB);
|
uint32_t reg = dev_addr | (num << USB_ADDR_ENDP1_ENDPOINT_LSB);
|
||||||
// Assert the interrupt endpoint is IN_TO_HOST
|
|
||||||
// TODO Interrupt can also be OUT
|
if (dir == TUSB_DIR_OUT)
|
||||||
assert(dir == TUSB_DIR_IN);
|
{
|
||||||
|
reg |= USB_ADDR_ENDP1_INTEP_DIR_BITS;
|
||||||
|
}
|
||||||
|
|
||||||
if (need_pre(dev_addr))
|
if (need_pre(dev_addr))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue