Browse Source

stm32/boards/NUCLEO_G474RE: Make it easier to enable USB.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
pull/11556/head
Jim Mussared 1 year ago
committed by Damien George
parent
commit
0ba08e6299
  1. 4
      ports/stm32/boards/NUCLEO_G474RE/mpconfigboard.h

4
ports/stm32/boards/NUCLEO_G474RE/mpconfigboard.h

@ -5,7 +5,7 @@
#define MICROPY_HW_ENABLE_RNG (1) #define MICROPY_HW_ENABLE_RNG (1)
#define MICROPY_HW_ENABLE_ADC (1) #define MICROPY_HW_ENABLE_ADC (1)
#define MICROPY_HW_ENABLE_DAC (1) // A4, A5 #define MICROPY_HW_ENABLE_DAC (1) // A4, A5
#define MICROPY_HW_ENABLE_USB (0) // A12 (dp), A11 (dm) #define MICROPY_HW_ENABLE_USB (0) // can be enabled if USB cable connected to PA11/PA12 (D-/D+)
#define MICROPY_HW_HAS_SWITCH (1) #define MICROPY_HW_HAS_SWITCH (1)
#define MICROPY_HW_HAS_FLASH (0) // QSPI extflash not mounted #define MICROPY_HW_HAS_FLASH (0) // QSPI extflash not mounted
@ -84,7 +84,7 @@
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_low(pin)) #define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_low(pin))
// USB config pin A12 (dp), A11 (dm) not mounted on Nucleo // USB config pin A12 (dp), A11 (dm) not mounted on Nucleo
// #define MICROPY_HW_USB_FS (1) #define MICROPY_HW_USB_FS (1)
// #define MICROPY_HW_USB_VBUS_DETECT_PIN (pin_A9) // #define MICROPY_HW_USB_VBUS_DETECT_PIN (pin_A9)
// #define MICROPY_HW_USB_OTG_ID_PIN (pin_A10) // #define MICROPY_HW_USB_OTG_ID_PIN (pin_A10)

Loading…
Cancel
Save