Skip to content

Commit e39fcda

Browse files
Li-Weiweidpgeorge
authored andcommitted
stm32/usbd_cdc_interface.h: Fix code comments after recent refactor.
1 parent 7c7c7b1 commit e39fcda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ports/stm32/usbd_cdc_interface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ typedef struct _usbd_cdc_itf_t {
4343
uint16_t rx_buf_get; // circular buffer index
4444

4545
uint8_t tx_buf[USBD_CDC_TX_DATA_SIZE]; // data for USB IN endpoind is stored in this buffer
46-
uint16_t tx_buf_ptr_in; // increment this pointer modulo APP_TX_DATA_SIZE when new data is available
47-
volatile uint16_t tx_buf_ptr_out; // increment this pointer modulo APP_TX_DATA_SIZE when data is drained
46+
uint16_t tx_buf_ptr_in; // increment this pointer modulo USBD_CDC_TX_DATA_SIZE when new data is available
47+
volatile uint16_t tx_buf_ptr_out; // increment this pointer modulo USBD_CDC_TX_DATA_SIZE when data is drained
4848
uint16_t tx_buf_ptr_out_shadow; // shadow of above
4949
uint8_t tx_buf_ptr_wait_count; // used to implement a timeout waiting for low-level USB driver
5050
uint8_t tx_need_empty_packet; // used to flush the USB IN endpoint if the last packet was exactly the endpoint packet size

0 commit comments

Comments
 (0)