优化架构

This commit is contained in:
2026-05-31 20:05:38 +08:00
parent 81b62a148d
commit 0683cd534b
2 changed files with 22 additions and 21 deletions
+21 -20
View File
@@ -5,34 +5,35 @@
#ifndef _BOARD_H #ifndef _BOARD_H
#define _BOARD_H #define _BOARD_H
/* Voilet Bsp */
#include "VoiletPort.h"
/* Chip Library Enable */ /* Chip Library Enable */
/* Extra Library Enable */ /* Extra Library Enable */
#define TTY_COM COM1 #define TTY_COM COM1
#define TTY_BAUD 115200 #define TTY_BAUD 115200
//GPIO
//数组信号输入/出开关
#define DI_ON 1
#define DI_OFF 0
#define DO_ON 1
#define DO_OFF 0
//LED灯开关
#define LED_ON 0
#define LED_OFF 1
#define LED_NUM 2 //LED灯数量 #define LED_NUM 2 //LED灯数量
#if (LED_NUM != 0) enum {
#define LED0 0 LED0 = 0,
#define LED1 1 LED1
#endif };
#define DI_NUM 0 #define DI_NUM 0 //数字信号输入通道数量
#if (DI_NUM != 0) // enum {
#endif //
// };
#define DO_NUM 0 #define DO_NUM 0 //数字信号输出通道数量
#if (DO_NUM != 0) // enum {
#endif //
// };
#define RS485_1 COM1
// #define RS485_2
// #define RS485_3
// #define RS485_4
// #define RS485_5
#endif //_BOARD_H #endif //_BOARD_H