Przeglądaj źródła

Fix size of arm_dcache_flush_delte on T4.x USB RAWHID

Was using SEREMU_TX_SIZE should use RAWHID_TX_SIZE
main
Kurt Eckhardt 4 lat temu
rodzic
commit
6de57f23e8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      teensy4/usb_rawhid.c

+ 1
- 1
teensy4/usb_rawhid.c Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz