|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
uint8_t *txdata = txbuffer + (tx_head * RAWHID_TX_SIZE); |
|
|
uint8_t *txdata = txbuffer + (tx_head * RAWHID_TX_SIZE); |
|
|
memcpy(txdata, buffer, 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_prepare_transfer(xfer, txdata, RAWHID_TX_SIZE, 0); |
|
|
usb_transmit(RAWHID_TX_ENDPOINT, xfer); |
|
|
usb_transmit(RAWHID_TX_ENDPOINT, xfer); |
|
|
if (++tx_head >= TX_NUM) tx_head = 0; |
|
|
if (++tx_head >= TX_NUM) tx_head = 0; |