add risc-v board Sipeed Longan Nano support

This commit is contained in:
acevest
2019-10-10 18:42:52 +08:00
parent b6af64f40d
commit 41051e1452
17 changed files with 1101 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#ifndef __MCU_INIT_H
#define __MCU_INIT_H
#include "gd32vf103.h"
#include "usart.h"
#define LEDR_GPIO_PORT GPIOC
#define LEDG_GPIO_PORT GPIOA
#define LEDB_GPIO_PORT GPIOA
#define LEDR_PIN GPIO_PIN_13
#define LEDG_PIN GPIO_PIN_1
#define LEDB_PIN GPIO_PIN_2
void board_init();
#endif //__MCU_INIT_H