Files
GarbageCanCenter_Woer_stm/STM32_4路称重_Git提交精简工程/src/HARDWARE/USART/usart2.h
T

27 lines
873 B
C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*************************** (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*******************/