diff options
| author | hathach <[email protected]> | 2013-01-16 22:37:10 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-16 22:37:10 +0700 |
| commit | 53739ccd28478144ce9cde9d16410175a79a518d (patch) | |
| tree | 95aa55a0709ebb7cb7bd0e1ee552f05287ef3728 /tinyusb/class | |
| parent | 095129887e58cc2445afc1e2c10512e87c2c65ff (diff) | |
rename some fifo functions to be more consistent
Diffstat (limited to 'tinyusb/class')
| -rw-r--r-- | tinyusb/class/cdc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/class/cdc.c b/tinyusb/class/cdc.c index 9fd140498..51dcc8bfb 100644 --- a/tinyusb/class/cdc.c +++ b/tinyusb/class/cdc.c @@ -185,7 +185,7 @@ uint16_t tusb_cdc_recv(uint8_t* buffer, uint16_t max) { ASSERT(buffer && max, 0); - return fifo_readArray(&ffRX, buffer, max); + return fifo_read_n(&ffRX, buffer, max); } // ROM driver bug: cannot hook this to CIC_GetRequest @@ -229,7 +229,7 @@ ErrorCode_t CDC_BulkIn_Hdlr(USBD_HANDLE_T hUsb, void* data, uint32_t event) uint8_t buffer[CDC_DATA_EP_MAXPACKET_SIZE]; uint16_t count; - count = fifo_readArray(&ffTX, buffer, CDC_DATA_EP_MAXPACKET_SIZE); + count = fifo_read_n(&ffTX, buffer, CDC_DATA_EP_MAXPACKET_SIZE); USBD_API->hw->WriteEP(hUsb, CDC_DATA_EP_IN, buffer, count); // write data to EP } |
