?? uart.h
字號:
/*
project: DvPrj
file name: uart.h
function: uart header file
dependencies: none
date: 2006-02-23
*/
#ifndef UART_H
#define UART_H
#include "const.h"
////////////////////////////////////
#define MCU_UART_BAUT_4800 0X04
#define MCU_UART_BAUT_9600 0X05
#define MCU_UART_BAUT_19200 0X06
#define MCU_UART_BAUT_38400 0X07
#define MCU_UART_BAUT_57600 0X08
#define MCU_UART_BAUT_115200 0X09
//////////////////////////////////////
#define OUTBUFLENCOMM0 256
#define OUTBUFLENCOMM1 256
#define INBUFLENCOMM0 200
#define INBUFLENCOMM1 600
sfr16 RCAP2 = 0xCA;
//==================函數聲明=======================
void Serial0_Init(uchar ucBaut);
void Serial1_Init(uchar ucBaut);
bit ReadCharComm0(uchar *ch);
void SendCharComm0(uchar ch);
void ClearBuffComm0(void);
void SendBuffComm0(uchar *pb,uint sum);
bit ReadCharComm1(uchar *ch);
void SendCharComm1(uchar ch);
//void IncHeadComm1(uint unInc);
void ClearBuffComm1(void);
void SendBuffComm1(uchar *pb,uint sum);
void CTSSendBuffComm1(uchar *pb,uint sum);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -