option.h

来自「基于sunplus的16MCU产品,SPMC75的键盘和显示的例子,完整的工程,」· C头文件 代码 · 共 21 行

H
21
字号
#ifndef	__OPTION_h__
#define	__OPTION_h__
//	write your header here
//Key IO
#define Key_Port_Data		P_IOA_Data->W
#define Key_Port_Buffer		P_IOA_Buffer->W
#define Key_Port_Dir		P_IOA_Dir->W
#define Key_Port_Attrib		P_IOA_Attrib->W
#define Key_Port_SPE		P_IOA_SPE->W
#define Key_Const			0x26e0

//LED IO
#define LED_Data_Port		P_IOB_Buffer->W
#define LED_Data_Port_Dir	P_IOB_Dir->W
#define LED_Port_Attrib		P_IOB_Attrib->W
#define GPIO_CLK			0x0080
#define GPIO_DAT			0x0040
#define GPIO_Load			0x0100

#endif

⌨️ 快捷键说明

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