ports.h
来自「里面给出了ATmega103单片机编程的C语言实例程序」· C头文件 代码 · 共 24 行
H
24 行
/* ATmega103 ports.h File
Author : Robert Stuart
Company : PDL Industries Ltd
Date of Creation : 18 October 1999
*/
/* defines */
/* Port D */
#define INITIALISE_PORTD 0xE0
#define CONFIGURE_PORTD 0x00
#define UP_BUTTON BIT(PIND4)
#define DOWN_BUTTON BIT(PIND3)
#define SET_BUTTON BIT(PIND2)
#define BUTTON (PIND & (UP_BUTTON | DOWN_BUTTON | SET_BUTTON))
/* Port E */
#define INITIALISE_PORTE 0x00
#define CONFIGURE_PORTE 0x00
#define POWER_SUPPLY_OK (~PINE & BIT(PINE4))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?