41 lines
656 B
C
41 lines
656 B
C
//
|
|
// Created by anonymous on 2026/5/24.
|
|
//
|
|
|
|
#ifndef VOILET_H
|
|
#define VOILET_H
|
|
|
|
#define LED_NUM 2 //LED灯数量
|
|
#if (LED_NUM != 0)
|
|
#define LED0 0
|
|
#define LED1 1
|
|
#endif
|
|
|
|
#define DI_NUM 0
|
|
#if (DI_NUM != 0)
|
|
#endif
|
|
|
|
#define DO_NUM 0
|
|
#if (DO_NUM != 0)
|
|
#endif
|
|
|
|
#define USE_SHELL //系统使用Shell
|
|
#define TTY_COM COM1
|
|
|
|
typedef struct {
|
|
GPIO_MAP_T GpioX;
|
|
GPIOMode_TypeDef Mode;
|
|
GPIOSpeed_TypeDef Speed;
|
|
}GPIO_CONFIG;
|
|
|
|
typedef struct {
|
|
COM_MAP_T ComX;
|
|
GPIO_MAP_T TxPort;
|
|
GPIOMode_TypeDef TxMode;
|
|
GPIO_MAP_T RxPort;
|
|
GPIOMode_TypeDef RxMode;
|
|
GPIOSpeed_TypeDef Speed;
|
|
}COM_CONFIG;
|
|
|
|
#endif //VOILET_H
|