⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uart.h

📁 ucos on lpc213x ,and a sample for the arm7
💻 H
字号:
//--------------------file begin------------------------------------------------------------------------
// this file is declare the UART functions

#ifndef __UART__
#define __UART__

#include "config.h"


#define UART_BPS_1 115200
#define UART_BPS_2 9600


//--------------------------------------UART0-----------------------------------------------------
// declare UART0 functions
void UART0_Init (void);
uint8 UART0_GetByte (void);
void UART0_GetStr (uint8 *s, uint32 n);
void UART0_SendByte (uint8 dat);
void UART0_SendStr (char *str);
//--------------------------------------UART0-----------------------------------------------------

//--------------------------------------UART1-----------------------------------------------------
// declare UART1 functions
void UART1_Init (void);
uint8 UART1_GetByte (void);
void UART1_GetStr (uint8 *s, uint32 n);
void UART1_SendByte (uint8 dat);
void UART1_SendStr (char *str);
//--------------------------------------UART1-----------------------------------------------------

//--------------------------------------UART2-----------------------------------------------------
// declare UART2 functions ;because use the GPIO mapped
void UART2_Init (void);
uint8 UART2_GetByte (void);
void UART2_GetStr (uint8 *s, uint32 n);
void UART2_SendByte (uint8 dat);
void UART2_SendStr (char *str);
//--------------------------------------UART2-----------------------------------------------------



#endif


//--------------------file end------------------------------------------------------------------------

⌨️ 快捷键说明

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