18 lines
467 B
C
18 lines
467 B
C
#ifndef _usart_H
|
|
#define _usart_H
|
|
|
|
#include "general_type.h"
|
|
#include "stm32l1xx_usart.h"
|
|
#define USART1_MAX_SEND_LEN 100 //最大发送缓存字节数
|
|
void USART1_Configuration(u32 baund);
|
|
void UART_PutChar(USART_TypeDef* USARTx, uint8_t Data) ;
|
|
void UART_PutStr (USART_TypeDef* USARTx, char *str) ;
|
|
|
|
//void TIM3_Set(unsigned char sta);
|
|
void Usart1_ReceiveBuff_Clear(void);
|
|
//void timer3_init(void);
|
|
void USART_RS232_DEinit(void);
|
|
void USART_SDI_DEinit(void);
|
|
|
|
#endif
|