优化中断
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user