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

📄 ports.h

📁 里面给出了ATmega103单片机编程的C语言实例程序
💻 H
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -