41 lines
597 B
C
41 lines
597 B
C
//
|
|
// Created by anonymous on 2026/5/24.
|
|
//
|
|
|
|
#ifndef VOILET_H
|
|
#define VOILET_H
|
|
|
|
#include "Bsp.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 TTY_COM COM1
|
|
#define TTY_BAUD 115200
|
|
|
|
typedef struct {
|
|
GPIO_MAP_T GpioX;
|
|
GPIOMode_TypeDef Mode;
|
|
GPIOSpeed_TypeDef Speed;
|
|
}GPIO_CONFIG;
|
|
|
|
typedef struct {
|
|
COM_MAP_T *ComX;
|
|
GPIO_MAP_T TxPort;
|
|
GPIO_MAP_T RxPort;
|
|
GPIOSpeed_TypeDef Speed;
|
|
}COM_CONFIG;
|
|
|
|
#endif //VOILET_H
|