20 #ifndef DEBUG_FRMWRK_H_
21 #define DEBUG_FRMWRK_H_
26 #define USED_UART_DEBUG_PORT 0
28 #if (USED_UART_DEBUG_PORT==0)
29 #define DEBUG_UART_PORT LPC_UART0
30 #elif (USED_UART_DEBUG_PORT==1)
31 #define DEBUG_UART_PORT LPC_UART1
34 #define _DBG(x) _db_msg(DEBUG_UART_PORT, x)
35 #define _DBG_(x) _db_msg_(DEBUG_UART_PORT, x)
36 #define _DBC(x) _db_char(DEBUG_UART_PORT, x)
37 #define _DBD(x) _db_dec(DEBUG_UART_PORT, x)
38 #define _DBD16(x) _db_dec_16(DEBUG_UART_PORT, x)
39 #define _DBD32(x) _db_dec_32(DEBUG_UART_PORT, x)
40 #define _DBH(x) _db_hex(DEBUG_UART_PORT, x)
41 #define _DBH16(x) _db_hex_16(DEBUG_UART_PORT, x)
42 #define _DBH32(x) _db_hex_32(DEBUG_UART_PORT, x)
43 #define _DG _db_get_char(DEBUG_UART_PORT)