diff options
| author | Damien George | 2018-02-13 18:57:01 +1100 |
|---|---|---|
| committer | Damien George | 2018-02-13 18:57:01 +1100 |
| commit | 34911f1a57296bda532e2460e28bd351198e1e63 (patch) | |
| tree | cd9e9b8bb30d588966d592b841cd7caace7be86d /ports/stm32/boards/NUCLEO_F746ZG | |
| parent | d9b9fbc41ae202cf9426cc1ae7514d230cc5c8d0 (diff) | |
stm32/boards: Update all boards to work with new USB configuration.
Diffstat (limited to 'ports/stm32/boards/NUCLEO_F746ZG')
| -rw-r--r-- | ports/stm32/boards/NUCLEO_F746ZG/mpconfigboard.h | 2 | ||||
| -rw-r--r-- | ports/stm32/boards/NUCLEO_F746ZG/stm32f7xx_hal_conf.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/boards/NUCLEO_F746ZG/mpconfigboard.h b/ports/stm32/boards/NUCLEO_F746ZG/mpconfigboard.h index 0fe6030bb..42beb4d9b 100644 --- a/ports/stm32/boards/NUCLEO_F746ZG/mpconfigboard.h +++ b/ports/stm32/boards/NUCLEO_F746ZG/mpconfigboard.h @@ -12,6 +12,7 @@ #define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_DAC (1) #define MICROPY_HW_ENABLE_CAN (1) +#define MICROPY_HW_ENABLE_USB (1) // HSE is 8MHz // VCOClock = HSE * PLLN / PLLM = 8 MHz * 216 / 4 = 432 MHz @@ -66,5 +67,6 @@ #define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_low(pin)) // USB config (CN13 - USB OTG FS) +#define MICROPY_HW_USB_FS (1) #define MICROPY_HW_USB_VBUS_DETECT_PIN (pin_A9) #define MICROPY_HW_USB_OTG_ID_PIN (pin_A10) diff --git a/ports/stm32/boards/NUCLEO_F746ZG/stm32f7xx_hal_conf.h b/ports/stm32/boards/NUCLEO_F746ZG/stm32f7xx_hal_conf.h index e1aa4578d..a019ee4ce 100644 --- a/ports/stm32/boards/NUCLEO_F746ZG/stm32f7xx_hal_conf.h +++ b/ports/stm32/boards/NUCLEO_F746ZG/stm32f7xx_hal_conf.h @@ -46,8 +46,6 @@ /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ -#define USE_USB_FS - /* ########################## Module Selection ############################## */ /** * @brief This is the list of modules to be used in the HAL driver |
