Fixes: https://forum.pjrc.com/threads/51108-3-6-USBHost_t36-USB-Hub-examplesmain
static void pipe_set_maxlen(Pipe_t *pipe, uint32_t maxlen) | static void pipe_set_maxlen(Pipe_t *pipe, uint32_t maxlen) | ||||
{ | { | ||||
pipe->qh.capabilities[0] = (pipe->qh.capabilities[0] & 0x8000FFFF) | (maxlen << 16); | |||||
pipe->qh.capabilities[0] = (pipe->qh.capabilities[0] & 0xF800FFFF) | (maxlen << 16); | |||||
} | } | ||||
static void pipe_set_addr(Pipe_t *pipe, uint32_t addr) | static void pipe_set_addr(Pipe_t *pipe, uint32_t addr) |