1
0
mirror of https://github.com/gdsports/USBHost_t36 synced 2024-11-21 16:45:04 -05:00

Setting qTD active bit needed to actually do anything!

This commit is contained in:
PaulStoffregen 2017-02-04 19:22:46 -08:00
parent d58e0c207e
commit 727a7c01ae

View File

@ -380,7 +380,7 @@ void init_qTD(volatile Transfer_t *t, void *buf, uint32_t len,
{
t->qtd.alt_next = 1; // 1=terminate
if (data01) data01 = 0x80000000;
t->qtd.token = data01 | (len << 16) | (irq ? 0x8000 : 0) | (pid << 8) | 0x8000;
t->qtd.token = data01 | (len << 16) | (irq ? 0x8000 : 0) | (pid << 8) | 0x80;
uint32_t addr = (uint32_t)buf;
t->qtd.buffer[0] = addr;
addr &= 0xFFFFF000;