Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion boards/stm32-bluepill.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@
#define BOARD_PIN_LED GPIO13
#define BOARD_LED_HIGH_IS_BUSY true

/*
* Pull USB D+ low on startup, to re-enumerate.
* Bluepill board lacks dedicated pin for handling this pull-up.
* https://stm32world.com/wiki/STM32_USB_Device_Renumeration
*/
#define BOARD_RCC_USB_PULLUP RCC_GPIOA
#define BOARD_PORT_USB_PULLUP GPIOA
#define BOARD_PIN_USB_PULLUP GPIO12
#define BOARD_USB_HIGH_IS_PULLUP true
#define BOARD_USB_HIGH_IS_PULLUP false

/* Currently you can only use SPI1, since it has highest clock. */

Expand Down