49
49
50
50
// RX Endpoint size
51
51
#ifndef CFG_TUH_CDC_RX_EPSIZE
52
- #define CFG_TUH_CDC_RX_EPSIZE USBH_EPSIZE_BULK_MAX
52
+ #define CFG_TUH_CDC_RX_EPSIZE USBH_EPSIZE_BULK_MAX
53
53
#endif
54
54
55
55
// TX FIFO size
59
59
60
60
// TX Endpoint size
61
61
#ifndef CFG_TUH_CDC_TX_EPSIZE
62
- #define CFG_TUH_CDC_TX_EPSIZE USBH_EPSIZE_BULK_MAX
62
+ #define CFG_TUH_CDC_TX_EPSIZE USBH_EPSIZE_BULK_MAX
63
63
#endif
64
64
65
65
//--------------------------------------------------------------------+
@@ -145,7 +145,9 @@ static inline bool tuh_cdc_disconnect(uint8_t idx, tuh_xfer_cb_t complete_cb, ui
145
145
return tuh_cdc_set_control_line_state (idx , 0x00 , complete_cb , user_data );
146
146
}
147
147
148
- //------------- Application Callback -------------//
148
+ //--------------------------------------------------------------------+
149
+ // CDC APPLICATION CALLBACKS
150
+ //--------------------------------------------------------------------+
149
151
150
152
// Invoked when a device with CDC interface is mounted
151
153
// idx is index of cdc interface in the internal pool.
@@ -160,26 +162,6 @@ TU_ATTR_WEAK extern void tuh_cdc_rx_cb(uint8_t idx);
160
162
// Invoked when a TX is complete and therefore space becomes available in TX buffer
161
163
TU_ATTR_WEAK extern void tuh_cdc_tx_complete_cb (uint8_t idx );
162
164
163
- //--------------------------------------------------------------------+
164
- // CDC APPLICATION CALLBACKS
165
- //--------------------------------------------------------------------+
166
-
167
- /** \brief Callback function that is invoked when an transferring event occurred
168
- * \param[in] dev_addr Address of device
169
- * \param[in] event an value from \ref xfer_result_t
170
- * \param[in] pipe_id value from \ref cdc_pipeid_t indicate the pipe
171
- * \param[in] xferred_bytes Number of bytes transferred via USB bus
172
- * \note event can be one of following
173
- * - XFER_RESULT_SUCCESS : previously scheduled transfer completes successfully.
174
- * - XFER_RESULT_FAILED : previously scheduled transfer encountered a transaction error.
175
- * - XFER_RESULT_STALLED : previously scheduled transfer is stalled by device.
176
- * \note
177
- */
178
- // void tuh_cdc_xfer_isr(uint8_t dev_addr, xfer_result_t event, cdc_pipeid_t pipe_id, uint32_t xferred_bytes);
179
-
180
- /// @} // group CDC_Serial_Host
181
- /// @}
182
-
183
165
//--------------------------------------------------------------------+
184
166
// Internal Class Driver API
185
167
//--------------------------------------------------------------------+
0 commit comments