123456789101112131415161718192021222324252627 |
- #ifndef __USART_H
- #define __USART_H
- #include "stdio.h"
- #include "sys.h"
- #define USART_REC_LEN 30
- #define EN_USART1_RX 1
- extern u8 USART_RX_BUF[USART_REC_LEN];
- extern u16 USART_RX_STA;
- void uart_init(u32 bound);
- void UsartSendData(u8 *p,char len);
- void usart_send_string(char *data);
- void usart_printf(const char *fmt, ...);
- void Send_CMD(int Addr);
- void USART3_String(char *pdat,int len);
- void uart3_init(u32 bound);
- void uart2_init(u32 bound);
- void USART2_String(char *pdat,int len);
- #endif
|