📄 type.h
字号:
/****************************************************************
//自定义数据类型
//用户可以添加自己的操作
//create by changshengwuji
//email: netspider@163.com
//qq: 450353168
//2006.05.03
****************************************************************/
#define true 1
#define false 0
#define UINT8 unsigned char
#define UINT16 unsigned int
#define SINT8 signed char
#define uchar unsigned char
#define uint unsigned int
#define UCHAR unsigned char
#define UINT unsigned int
#define EXT extern
#define set_bit(x,y) (x|=(1<<y))
#define clr_bit(x,y) (x&=~(1<<y))
#define get_bit(x,y) (x&(1<<y))
#define inv_bit(x,y) (x^=(1<<y))
#define set_port(x,y,z) (y=(y|(x&z))&(y|~z)) //y is the PORTx which is ready to set,x is DDRx,z is the state to set;
#define inv_port(x,y) (x=(x^y)&y)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -