my_description.h

来自「实现功能ATmega单片机上处理GSM模块的数据」· C头文件 代码 · 共 30 行

H
30
字号
//#include "buffer.h"
//#include "bitbuf.h"
//#include "CDCtrl_chris.h"

//#include "buffer_chris.h"
//#include "extint_chris.h"

#define outw outb
#define inw  inb

#define H 2
#define L 3
// read data bit
//bit = (byte & (1<<bitBuffer->bitPos))?(1):(0);
#define ReadBit(reg,bit_num)   ( (reg & (1<<bit_num))?(1):(0)  )

//this is used in the "void CD_RxCmdXLAT(void)" to indicate error
void error(void);

//read the high or low byte of u16 data ,HL is for the high or low byte 
u08 u16TOu08( u16 data,u08 HL );

//compose two u08 byte to u16 word
u16 u08TOu16( u08 Hdata,u08 Ldata );

void delay_ms02(unsigned char time_ms);

//scan the key,use the position delay structure
u08 KeyScan(void);

⌨️ 快捷键说明

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