Skip to content

Commit 9ba40de

Browse files
authored
Merge pull request #2424 from hierophect/vbus-rename
STM32: rename vbus flag
2 parents 21cbd5c + b49ecc5 commit 9ba40de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ports/stm32f4/boards/stm32f411ce_blackpill/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#define FLASH_PAGE_SIZE (0x4000)
3434

3535
#define BOARD_OSC_DIV 25
36-
#define BOARD_NO_VBUS
36+
#define BOARD_NO_VBUS_SENSE
3737

3838
// On-board flash
3939
// #define SPI_FLASH_MOSI_PIN (&pin_PA07)

ports/stm32f4/supervisor/usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
STATIC void init_usb_vbus_sense(void) {
4040

41-
#ifdef BOARD_NO_VBUS
41+
#ifdef BOARD_NO_VBUS_SENSE
4242
// Disable VBUS sensing
4343
#ifdef USB_OTG_GCCFG_VBDEN
4444
USB_OTG_FS->GCCFG &= ~USB_OTG_GCCFG_VBDEN;

0 commit comments

Comments
 (0)