#ifndef _uart3_H #define _uart3_H #include "../bsp/bsp_config.h" #include "uartx.h" #define uNum3 2 //#define S4SM0 BITN7 #define D_uart3_ES_INT(x) (x) ? (BITN_1(IE2,ES3)) : (BITN_0(IE2,ES3)) //#define D_uart3_ES_INT_CLOSE() BITN_0(IE2,ES3) //#define D_uart3_ES_INT_OPEN() BITN_1(IE2,ES3) #define L0_uart3_IntRI() (S3CON & S3RI)//BITN_G(SCON,U0RI) #define L0_uart3_IntTI() (S3CON & S3TI)//BITN_G(SCON,U0TI) #define L0_uart3_IntRIClear(); BITN_0(S3CON,S3RI) #define L0_uart3_IntTIClear(); BITN_0(S3CON,S3TI) #define L0_uart3_set(x) S3BUF = (x); #define L0_uart3_get() (S3BUF) //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< void L0_uart3_buf_init(void); void FOUR_G_ATEST(void); #define L0_uart3_uc(X) L0_uartN_uc(uNum3,X) #define L0_uart3_us(X) L0_uartN_us(uNum3,X) #define L0_uart3_ul(X) L0_uartN_ul(uNum3,X) #define L0_uart3_0d0a() L0_uartN_0d0a(uNum3) #define L0_uart3_uchex(X) L0_uartN_uchex(uNum3,X) #define L0_uart3_ushex(X) L0_uartN_ushex(uNum3,X) #define L0_uart3_ulhex(X) L0_uartN_ulhex(uNum3,X) #define L0_uart3_sendstr(buf) L0_uartN_sendstr(uNum3,buf) #define L0_uart3_sendArray(buf, n) L0_uartN_sendArray(uNum3,buf,n) #define L0_uart3_sendArrayHex(buf, n) L0_uartN_sendArrayHex(uNum3,buf,n) #endif //#ifndef _uart3_H