uart.h.bak
来自「完成数据的采集」· BAK 代码 · 共 59 行
BAK
59 行
/*************************************************************************
*
* Used with ICCARM and AARM.
*
* (c) Copyright IAR Systems 2006
*
* File name : uart.h
* Description : UARTs module header
*
* History :
* 1. Date : August 11, 2006
* Author : Stanimir Bonev
* Description : Create
*
* $Revision: 15135 $
**************************************************************************/
#include <includes.h>
#ifndef __UART_H
#define __UART_H
#define UART_FIFO_SIZE 50
#define UART1_INTR_PRI 5
#define UART2_INTR_PRI 6
#define UART3_INTR_PRI 7
// Define UARTs
typedef enum
{
UART_1 = 0, UART_2, UART_3,
} UartNum_t;
typedef union _UartLineEvents_t
{
Int32U Data;
struct {
Int32U : 1;
Int32U bOE : 1;
Int32U bPE : 1;
Int32U bFE : 1;
Int32U bBI : 1;
Int32U :27;
};
} UartLineEvents_t, *pUartLineEvents_t;
typedef struct _UartFifo_t
{
Int32U PushIndx;
Int32U PopIndx;
Int32U Timer;
Int8U Buffer[UART_FIFO_SIZE];
} UartConf;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?