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

📄 logic.~h

📁 使用iccavr的例子
💻 ~H
字号:
/* ATmega103 logic.h file 

   Author : Robert Stuart 
   Company : PDL Industries Ltd 
   Date of Creation : 13 April 2000
*/

/* defines */
#define TRUE 	     	   1

/* enables an unsigned char to be used as a series of booleans */
#define BIT(x)	        	   (1 << (x))
#define SETBIT(x, y)   	   (x |= y)
#define CLEARBIT(x, y) 	   (x &= ~y)
#define CHECKBIT(x, y) 	   (x & y)

/* reset watchdog */
#define WDR       	   	   asm("WDR")

/* enable global interrupts */
#define GIE      	        	   (SREG |= BIT(7))

/* disable global interrupts */
#define GID       	         	   (SREG &= ~BIT(7))

/* time constanst */
#define _1MS_INTERRUPT           6000
#define _1000MS 	   	   1000
#define _50MS 	   	   50
#define _20MS		   20

/* defines from lcd.h */
#define LINE1 		   1
#define LINE2 		   2
#define LINE1_AND_LINE2 	   3
#define CHARACTER_NULL	   0x00
#define CHARACTER_SPACE	   0x20

⌨️ 快捷键说明

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