add risc-v board Sipeed Longan Nano support
This commit is contained in:
18
board/SipeedLonganNano/BSP/Inc/mcu_init.h
Normal file
18
board/SipeedLonganNano/BSP/Inc/mcu_init.h
Normal 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
|
Reference in New Issue
Block a user