浏览代码

Merge pull request #486 from KurtE/rawhid_cache_delete_size

Fix size of arm_dcache_flush_delte on T4.x USB RAWHID
main
Paul Stoffregen 4 年前
父节点
当前提交
b1ba387580
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      teensy4/usb_rawhid.c

+ 1
- 1
teensy4/usb_rawhid.c 查看文件

@@ -136,7 +136,7 @@ int usb_rawhid_send(const void *buffer, uint32_t timeout)
}
uint8_t *txdata = txbuffer + (tx_head * RAWHID_TX_SIZE);
memcpy(txdata, buffer, RAWHID_TX_SIZE);
arm_dcache_flush_delete(txdata, SEREMU_TX_SIZE);
arm_dcache_flush_delete(txdata, RAWHID_TX_SIZE );
usb_prepare_transfer(xfer, txdata, RAWHID_TX_SIZE, 0);
usb_transmit(RAWHID_TX_ENDPOINT, xfer);
if (++tx_head >= TX_NUM) tx_head = 0;

正在加载...
取消
保存