stm32/usbd_cdc_interface: Make CDC TX/RX buffer sizes configurable.
This commit is contained in:
parent
f302f784e9
commit
788e7f50f2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue