aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Weiwei2017-10-13 09:14:07 +0800
committerDamien George2017-10-13 12:45:16 +1100
commite39fcda8eb1bfc1ccc1660079189f9ae39392abe (patch)
tree213a3764f256559d03579c66d132bfcadfa8217e
parent7c7c7b161df5be99aee9dea444b6e4beacf78438 (diff)
stm32/usbd_cdc_interface.h: Fix code comments after recent refactor.
-rw-r--r--ports/stm32/usbd_cdc_interface.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/usbd_cdc_interface.h b/ports/stm32/usbd_cdc_interface.h
index 6dcab7d47..98b8fc077 100644
--- a/ports/stm32/usbd_cdc_interface.h
+++ b/ports/stm32/usbd_cdc_interface.h
@@ -43,8 +43,8 @@ typedef struct _usbd_cdc_itf_t {
uint16_t rx_buf_get; // circular buffer index
uint8_t tx_buf[USBD_CDC_TX_DATA_SIZE]; // data for USB IN endpoind is stored in this buffer
- uint16_t tx_buf_ptr_in; // increment this pointer modulo APP_TX_DATA_SIZE when new data is available
- volatile uint16_t tx_buf_ptr_out; // increment this pointer modulo APP_TX_DATA_SIZE when data is drained
+ uint16_t tx_buf_ptr_in; // increment this pointer modulo USBD_CDC_TX_DATA_SIZE when new data is available
+ volatile uint16_t tx_buf_ptr_out; // increment this pointer modulo USBD_CDC_TX_DATA_SIZE when data is drained
uint16_t tx_buf_ptr_out_shadow; // shadow of above
uint8_t tx_buf_ptr_wait_count; // used to implement a timeout waiting for low-level USB driver
uint8_t tx_need_empty_packet; // used to flush the USB IN endpoint if the last packet was exactly the endpoint packet size