瀏覽代碼

T4 USB read transfer status directly

main
PaulStoffregen 5 年之前
父節點
當前提交
f0c53891eb
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      teensy4/usb.c

+ 4
- 0
teensy4/usb.c 查看文件

@@ -773,6 +773,7 @@ void usb_receive(int endpoint_number, transfer_t *transfer)

uint32_t usb_transfer_status(const transfer_t *transfer)
{
#if 0
uint32_t status, cmd;
//int count=0;
cmd = USB1_USBCMD;
@@ -787,6 +788,9 @@ uint32_t usb_transfer_status(const transfer_t *transfer)
//if (status & 0x80) break; // for still active, only 1 reading needed
//if (++count > 1) break; // for completed, check 10 times
}
#else
return transfer->status;
#endif
}



Loading…
取消
儲存