serial.h
来自「EP9315的wince下载程序。download.exe」· C头文件 代码 · 共 62 行
H
62 行
//****************************************************************************
//
// 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 __cplusplus
extern "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 + =
减小字号Ctrl + -
显示快捷键?