优化中断

This commit is contained in:
2026-05-28 21:55:38 +08:00
parent a91d6db680
commit 81b62a148d
8 changed files with 150 additions and 200 deletions
+38
View File
@@ -0,0 +1,38 @@
//
// Created by anonymous on 2026/5/28.
//
#ifndef _BOARD_H
#define _BOARD_H
/* Chip Library Enable */
/* Extra Library Enable */
#define TTY_COM COM1
#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灯数量
#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
#endif //_BOARD_H