Browse Source

Setting qTD active bit needed to actually do anything!

main
PaulStoffregen 7 years ago
parent
commit
727a7c01ae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      k66_usbhost.ino

+ 1
- 1
k66_usbhost.ino 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;

Loading…
Cancel
Save