| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /********************************************************************************
- * File Name: Serial.h
- * Function Describe: Header file for Serial.c
- * Explain:
- * Writer: ShiLiangWen
- * Date: 2015-1-30
- *******************************************************************************/
- #ifndef _Serial_H__
- #define _Serial_H__
- /***************************************************************************/
- #define COM_SEL_MCU 0
- #define COM_SEL_GPS 1
- #define COM_SEL_MODEM 2
- typedef enum {INF = 0, DEBUG =1} TRACE_TYPE;
- //#define UART_HEAD 0x7A
- //#define UART_END 0x7B
- //#define UART_TRANSFORM 0x7c
- #define UART1_TX_BUFFER_SIZE 100 //UART1 USE FOR PC
- #define UART1_RX_BUFFER_SIZE IAP_RX_BUF
- extern unsigned char RxBuffer1[];
- extern unsigned char TxBuffer1[];
- extern unsigned char g_ucUart1Received;//接受到一包数据标志位
- extern unsigned short rx1_len;
- void Uart1Init(void);
- void UART1RxTxISRHandler(void);//串口1中断中回调此函数
- //void IapTrace(char* format, ...);
- void IapTrace(char *buf);
- void SlwTrace(char *buf);
- void Uart1Send(char *txbuf,int len);
- /***************************************************************************/
- #endif
|