📄 serial.h
字号:
//****************************************************************************//// SERIAL.h - The common serial declaration for ep93xx//// Copyright (c) 2006 Cirrus Logic, Inc.////****************************************************************************#ifndef SERIAL_H#define SERIAL_H#include <ctype.h>#include <stdarg.h>#include <stdlib.h>#include <stdio.h>#ifdef __cplusplusextern "C" {#endif//****************************************************************************// Function declaration//****************************************************************************//****************************************************************************// Name : Serial_Init// Description: This routine initializes the serial port by setting// its baud rate & FIFO buffer.// Arguments : wBaud - Baud Rate in bit/sec.// bFifoFlag - FIFO flag.// True - FIFO enabled.// False - FIFO disabled.// Return : none.// Note(s) ://****************************************************************************void Serial_Init(int wBaud, int bFifoFlag);//****************************************************************************// Name : Serial_GetChar// Description: This routine waits for a character from the serial port// & returns it.// Arguments : none.// Return : Returns the character read from the serial port.// Note(s) ://****************************************************************************char Serial_GetChar(void);//****************************************************************************// Name : Serial_SendChar// Description: This routine waits till the character is sent.// Arguments : bData - Data to be sent.// Return : none.// Note(s) ://****************************************************************************void Serial_SendChar(char bData);#ifdef __cplusplus}#endif#endif /*SERIAL_H*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -