stm32/boards/NUCLEO_L432KC: Add config for USB VCP support.

This commit is contained in:
Damien George 2019-08-15 12:46:34 +10:00
parent 97e8e036c5
commit 8485b72d0d
1 changed files with 6 additions and 1 deletions

View File

@ -14,6 +14,7 @@
#define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_ADC (1)
#define MICROPY_HW_ENABLE_DAC (1)
#define MICROPY_HW_ENABLE_USB (0) // requires a custom USB connector on PA11/PA12
#define MICROPY_HW_ENABLE_TIMER (1)
#define MICROPY_HW_HAS_SWITCH (0)
@ -57,4 +58,8 @@
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_low(pin))
// USB config
#define MICROPY_HW_USB_FS (0)
#define MICROPY_HW_USB_FS (MICROPY_HW_ENABLE_USB)
#define MICROPY_HW_USB_MSC (0)
#define MICROPY_HW_USB_HID (0)
#define USBD_CDC_RX_DATA_SIZE (256)
#define USBD_CDC_TX_DATA_SIZE (256)