VBUS fix actually doesn't work

This commit is contained in:
Hierophect 2019-12-06 12:17:38 -05:00
parent 2a01f0806e
commit 6c8503b3c6
2 changed files with 1 additions and 7 deletions

View File

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

View File

@ -31,7 +31,6 @@
#include "lib/utils/interrupt_char.h"
#include "lib/mp-readline/readline.h"
#include "stm32f4xx_hal.h"
#include "py/mpconfig.h"
#include "common-hal/microcontroller/Pin.h"
@ -59,11 +58,7 @@ void init_usb_hardware(void) {
/* Configure VBUS Pin */
GPIO_InitStruct.Pin = GPIO_PIN_9;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
#ifdef BOARD_USB_VBUS_BOOST
GPIO_InitStruct.Pull = GPIO_PULLUP; //GPIO_NOPULL;
#else
GPIO_InitStruct.Pull = GPIO_NOPULL; //GPIO_NOPULL;
#endif
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
never_reset_pin_number(0, 9);