⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 macro.h

📁 键盘LED控制芯片与2407的C程序
💻 H
字号:
#ifndef __macro_h__
#define __macro_h__

#define	AVOID		32		/*Q7 回避频率宽度0.5Hz */  

#define DEC			7
#define	DOWN		0  

#define	EMERGENCY   70 

#define	GENERAL     71 


#define IA          (int)1
#define IB          (int)2
#define IC          (int)3
#define INC			26		/*0.2Hz--->Q7*/
#define IP          (int)4


#define MAX_8_HZ	1	/* Q0 */
#define MAX_16_HZ	2	/* Q0 */
#define MAX_24_HZ	3	/* Q0 */
#define MAX_32_HZ	4	/* Q0 */
#define MAX_40_HZ	5	/* Q0 */
#define MAX_48_HZ	6	/* Q0 */
#define MAX_56_HZ	7	/* Q0 */
#define MAX_64_HZ	8	/* Q0 */ 
#define MAX_72_HZ	9	/* Q0 */
#define MAX_80_HZ	10	/* Q0 */
#define MAX_88_HZ	11	/* Q0 */
#define MAX_96_HZ	12	/* Q0 */
#define MAX_100_HZ	25	/* NOTE:  Q1 */


#define OFF			0  
#define ON			1
#define OTHER 		7 


#define	REF1		6 
#define	RUN			1    
#define	RETRY_NUM   6  

#define	STOP		0    

 
#define T_BRK		5000
#define T_BRK1		100000 
#define T_BRK2		100000
#define T_DOWN	    5000
#define T_IGNORE    3000
#define TMP         7
#define T_NOTRIGGER 0
#define T_OC_INC	5000
#define T_OC_150	600000
#define T_OC_200	10000
#define T_OC_DEC	5000 
#define T1_PERIOD	2000

#define T_UP		5000
  
#define	UP			1     

#define VP          (int)5
#define	VV			26		/*0.2Hz--->Q7*/  


#endif






⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -