浏览代码

Setting qTD active bit needed to actually do anything!

main
PaulStoffregen 7 年前
父节点
当前提交
727a7c01ae
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      k66_usbhost.ino

+ 1
- 1
k66_usbhost.ino 查看文件

@@ -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;

正在加载...
取消
保存