Merge pull request #2424 from hierophect/vbus-rename

STM32: rename vbus flag
This commit is contained in:
Ha Thach 2019-12-24 10:16:31 +07:00 committed by GitHub
commit 9ba40de538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
#define FLASH_PAGE_SIZE (0x4000) #define FLASH_PAGE_SIZE (0x4000)
#define BOARD_OSC_DIV 25 #define BOARD_OSC_DIV 25
#define BOARD_NO_VBUS #define BOARD_NO_VBUS_SENSE
// On-board flash // On-board flash
// #define SPI_FLASH_MOSI_PIN (&pin_PA07) // #define SPI_FLASH_MOSI_PIN (&pin_PA07)

View File

@ -38,7 +38,7 @@
STATIC void init_usb_vbus_sense(void) { STATIC void init_usb_vbus_sense(void) {
#ifdef BOARD_NO_VBUS #ifdef BOARD_NO_VBUS_SENSE
// Disable VBUS sensing // Disable VBUS sensing
#ifdef USB_OTG_GCCFG_VBDEN #ifdef USB_OTG_GCCFG_VBDEN
USB_OTG_FS->GCCFG &= ~USB_OTG_GCCFG_VBDEN; USB_OTG_FS->GCCFG &= ~USB_OTG_GCCFG_VBDEN;