19 lines
534 B
C
19 lines
534 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 USART_OUT(USART_TypeDef* USARTx, uint8_t *Data,uint16_t Len);
|
|
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
|