52 #include <debug-uart.h>
60 #define PRINTF(...) printf(__VA_ARGS__)
65 #define DEBUG_UART(XX, YY) \
69 pic32_uart##XX##_write(c); \
73 dbg_setup_uart(unsigned long ubr) \
75 pic32_uart##XX##_init(ubr, 0); \
77 PRINTF("Initializing debug uart: %lubps\n", ubr); \
80 UART_INTERRUPT(XX, YY, pic32_uart##XX##_write);
82 #ifdef __USE_UART_PORT1A_FOR_DEBUG__
84 #elif defined __USE_UART_PORT1B_FOR_DEBUG__
86 #elif defined __USE_UART_PORT2A_FOR_DEBUG__
88 #elif defined __USE_UART_PORT2B_FOR_DEBUG__
90 #elif defined __USE_UART_PORT3A_FOR_DEBUG__
92 #elif defined __USE_UART_PORT3B_FOR_DEBUG__
UART Interface for PIC32MX (pic32mx795f512l)
Generic serial I/O process header filer.