串口和中断写完

This commit is contained in:
2026-05-25 23:53:30 +08:00
parent 589b67a3f9
commit bedceb1785
4 changed files with 15 additions and 20 deletions
+4 -4
View File
@@ -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;