initialize the clock tree of GD32VF103C_START to 108MHz

This commit is contained in:
acevest
2019-10-03 15:01:46 +08:00
parent 3c88162700
commit a52bb94ed2
3 changed files with 44 additions and 22 deletions

View File

@@ -1,6 +1,9 @@
#include "mcu_init.h"
void board_init() {
SystemInit();
rcu_periph_clock_enable(RCU_GPIOA);
gpio_init(GPIOA, GPIO_MODE_OUT_PP, GPIO_OSPEED_50MHZ, GPIO_PIN_7);