fix spi bug when read/write gd32v peripherals
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
void board_init() {
|
||||
|
||||
SystemInit();
|
||||
#if 0
|
||||
rcu_periph_clock_enable(RCU_GPIOA);
|
||||
rcu_periph_clock_enable(RCU_GPIOC);
|
||||
|
||||
@@ -15,6 +14,7 @@ void board_init() {
|
||||
gpio_bit_set(LEDG_GPIO_PORT, LEDG_PIN);
|
||||
gpio_bit_set(LEDB_GPIO_PORT, LEDB_PIN);
|
||||
|
||||
#if 1
|
||||
LCD_Init(); // init LCD
|
||||
LCD_Clear(BLACK);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user