board/board-longan-nano.h: Modify Port B config.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2019-12-27 09:34:29 +09:00
parent a006cb7d0a
commit 334240bfe3

View File

@@ -39,6 +39,12 @@
* PA12 - Push Pull output 10MHz 0 default (until USB enabled???) (USBDP) * PA12 - Push Pull output 10MHz 0 default (until USB enabled???) (USBDP)
* ------------------------ Default * ------------------------ Default
* PAx - input with pull-up. * PAx - input with pull-up.
*
* NOTE: It's USB device bus power configuration, where we don't
* monitor VBUS voltage change. For self powered system, we need to
* monitor VBUS pin for detecting USB connection. Supporting self
* powered system, you need to change the USB driver, and when doing
* so, PA9 should be used for USBFS_VBUS.
*/ */
#define VAL_GPIO_USB_ODR 0xFFFFE6FF #define VAL_GPIO_USB_ODR 0xFFFFE6FF
#define VAL_GPIO_USB_CRL 0xB8B88228 /* PA7...PA0 */ #define VAL_GPIO_USB_CRL 0xB8B88228 /* PA7...PA0 */
@@ -47,12 +53,12 @@
#define RCU_APB2_GPIO (RCU_APB2_GPIOA|RCU_APB2_GPIOB|RCU_APB2_GPIOC) #define RCU_APB2_GPIO (RCU_APB2_GPIOA|RCU_APB2_GPIOB|RCU_APB2_GPIOC)
/* /*
* PB0 - Push-pull output 10MHz 1 default (OLED D/C#) * PB0 - Push-pull output 50MHz 1 default (OLED D/C#)
* PB1 - Push-pull output 10MHz 1 default (OLED CS#) * PB1 - Push-pull output 10MHz 1 default (OLED RST#)
* PB2 - Push-pull output 10MHz 1 default (OLED RST#) * PB2 - Push-pull output 50MHz 1 default (OLED CS#)
*/ */
#define VAL_GPIO_OTHER_ODR 0xFFFFFFFF #define VAL_GPIO_OTHER_ODR 0xFFFFFFFF
#define VAL_GPIO_OTHER_CRL 0x88888111 /* PB7...PB0 */ #define VAL_GPIO_OTHER_CRL 0x88888313 /* PB7...PB0 */
#define VAL_GPIO_OTHER_CRH 0x88888888 /* PB15...PB8 */ #define VAL_GPIO_OTHER_CRH 0x88888888 /* PB15...PB8 */
/* /*