mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
stm32/usbd_cdc_interface: Make CDC TX/RX buffer sizes configurable.
This commit is contained in:
@@ -31,8 +31,12 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef USBD_CDC_RX_DATA_SIZE
|
||||
#define USBD_CDC_RX_DATA_SIZE (1024) // this must be 2 or greater, and a power of 2
|
||||
#endif
|
||||
#ifndef USBD_CDC_TX_DATA_SIZE
|
||||
#define USBD_CDC_TX_DATA_SIZE (1024) // I think this can be any value (was 2048)
|
||||
#endif
|
||||
|
||||
// Values for connect_state
|
||||
#define USBD_CDC_CONNECT_STATE_DISCONNECTED (0)
|
||||
|
||||
Reference in New Issue
Block a user