Fix for Blue Pill, wait using MHZ.

This commit is contained in:
NIIBE Yutaka
2018-05-08 13:16:58 +09:00
parent 808aa5b186
commit f500ac03da
5 changed files with 40 additions and 3 deletions

View File

@@ -13,13 +13,14 @@
#define GPIO_LED_BASE GPIOC_BASE
#define GPIO_LED_CLEAR_TO_EMIT 13
#define GPIO_USB_BASE GPIOA_BASE
#define GPIO_USB_SET_TO_ENABLE 12
#undef GPIO_OTHER_BASE
/*
* Port A setup.
* PA11 - Push Pull output 10MHz 0 default (until USB enabled) (USBDM)
* PA12 - Push Pull output 10MHz 0 default (until USB enabled) (USBDP)
*
* Port C setup.
* PC13 - Push pull output 50MHz (LED 1:ON 0:OFF)
* ------------------------ Default
* PAx - input with pull-up