usart.h

来自「DS18B20源代码」· C头文件 代码 · 共 27 行

H
27
字号
/***************************************************
usart.h 2006.11.19 Panda   The header file of usart.c
*******************************************************/


#ifndef _USART_H
#define _USART_H 1

#define BIT(x) (1<<(x))
#define NOP()	asm("nop")
#define WDR() 	asm("wdr")

#define Rx_Buffer_Size 32

#define Tx_status 0  //the sending is ready, you can push the data into the buffer
#define Rx_status 0

void puts(unsigned char data);
void usart_init(void);
//unsigned char Push_Data_into_Tx_Buf(unsigned char Send_char);
void Start_trans(void);
void printf(unsigned char Send_String[]);
void handle(void);
void end_trans(void);

#endif

⌨️ 快捷键说明

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