-
- Downloads
stm32: Introduce MICROPY_HW_ENABLE_USB and clean up USB config.
This patch allows to completely compile-out support for USB, and no-USB is now the default. If a board wants to enable USB it should define: #define MICROPY_HW_ENABLE_USB (1) And then one or more of the following to select the USB PHY: #define MICROPY_HW_USB_FS (1) #define MICROPY_HW_USB_HS (1) #define MICROPY_HW_USB_HS_IN_FS (1)
Showing
- ports/stm32/main.c 7 additions, 5 deletionsports/stm32/main.c
- ports/stm32/modmachine.c 2 additions, 0 deletionsports/stm32/modmachine.c
- ports/stm32/modpyb.c 2 additions, 0 deletionsports/stm32/modpyb.c
- ports/stm32/mpconfigboard_common.h 5 additions, 6 deletionsports/stm32/mpconfigboard_common.h
- ports/stm32/mphalport.c 6 additions, 1 deletionports/stm32/mphalport.c
- ports/stm32/stm32_it.c 7 additions, 5 deletionsports/stm32/stm32_it.c
- ports/stm32/stm32_it.h 0 additions, 4 deletionsports/stm32/stm32_it.h
- ports/stm32/usb.c 8 additions, 17 deletionsports/stm32/usb.c
- ports/stm32/usbd_conf.c 14 additions, 14 deletionsports/stm32/usbd_conf.c
- ports/stm32/usbdev/class/inc/usbd_cdc_msc_hid.h 6 additions, 3 deletionsports/stm32/usbdev/class/inc/usbd_cdc_msc_hid.h
Loading
Please register or sign in to comment