27 lines
873 B
C
Executable File
27 lines
873 B
C
Executable File
/*************************** (C) COPYRIGHT 2017 Ping ****************************
|
||
* 文件名 :usart2.h
|
||
* 描 述 :串口2驱动头文件
|
||
* 版 本 :V1.0
|
||
* 作 者 :XuZhongPing
|
||
* 日 期 :2017/09/04
|
||
*********************************************************************************/
|
||
#ifndef __USART2_H
|
||
#define __USART2_H
|
||
#include "stm32f10x.h"
|
||
#include "stdio.h"
|
||
|
||
#define USART2_RECV_LEN 128 //最大接收缓存字节数
|
||
#define USART2_SEND_LEN 128 //最大发送缓存字节数
|
||
|
||
extern uint8_t USART2_RX_BUF[USART2_RECV_LEN];
|
||
extern uint8_t USART2_TX_BUF[USART2_SEND_LEN];
|
||
extern uint8_t USART2_RX_STA;
|
||
|
||
void USART2_Init(uint32_t bound);
|
||
void USART2_SendByteData(uint8_t bData);
|
||
void USART2_SendFrameData(uint8_t pDataBuf[], uint16_t len);
|
||
|
||
#endif
|
||
|
||
/******************** (C) COPYRIGHT 2017 Ping *****END OF FILE*******************/
|