1 parent 21cbd5c commit b49ecc5Copy full SHA for b49ecc5
2 files changed
ports/stm32f4/boards/stm32f411ce_blackpill/mpconfigboard.h
@@ -33,7 +33,7 @@
33
#define FLASH_PAGE_SIZE (0x4000)
34
35
#define BOARD_OSC_DIV 25
36
-#define BOARD_NO_VBUS
+#define BOARD_NO_VBUS_SENSE
37
38
// On-board flash
39
// #define SPI_FLASH_MOSI_PIN (&pin_PA07)
ports/stm32f4/supervisor/usb.c
@@ -38,7 +38,7 @@
STATIC void init_usb_vbus_sense(void) {
40
41
-#ifdef BOARD_NO_VBUS
+#ifdef BOARD_NO_VBUS_SENSE
42
// Disable VBUS sensing
43
#ifdef USB_OTG_GCCFG_VBDEN
44
USB_OTG_FS->GCCFG &= ~USB_OTG_GCCFG_VBDEN;
0 commit comments