串口和中断写完
This commit is contained in:
+4
-4
@@ -5,6 +5,8 @@
|
||||
#ifndef VOILET_H
|
||||
#define VOILET_H
|
||||
|
||||
#include "Bsp.h"
|
||||
|
||||
#define LED_NUM 2 //LED灯数量
|
||||
#if (LED_NUM != 0)
|
||||
#define LED0 0
|
||||
@@ -19,8 +21,8 @@
|
||||
#if (DO_NUM != 0)
|
||||
#endif
|
||||
|
||||
#define USE_SHELL //系统使用Shell
|
||||
#define TTY_COM COM1
|
||||
#define TTY_BAUD 115200
|
||||
|
||||
typedef struct {
|
||||
GPIO_MAP_T GpioX;
|
||||
@@ -29,11 +31,9 @@ typedef struct {
|
||||
}GPIO_CONFIG;
|
||||
|
||||
typedef struct {
|
||||
COM_MAP_T ComX;
|
||||
COM_MAP_T *ComX;
|
||||
GPIO_MAP_T TxPort;
|
||||
GPIOMode_TypeDef TxMode;
|
||||
GPIO_MAP_T RxPort;
|
||||
GPIOMode_TypeDef RxMode;
|
||||
GPIOSpeed_TypeDef Speed;
|
||||
}COM_CONFIG;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user