add initial support for output using ITM via SWO (not tested though)

This commit is contained in:
hathach
2013-01-17 02:04:47 +07:00
parent aae51e985f
commit 10009cba99
4 changed files with 27 additions and 5 deletions
+5
View File
@@ -52,6 +52,11 @@ void board_init(void)
#if CFG_UART_ENABLE
UARTInit(CFG_UART_BAUDRATE);
#endif
#if CFG_PRINTF_TARGET == PRINTF_TARGET_SWO
LPC_IOCON->PIO0_9 &= ~0x07; /* UART I/O config */
LPC_IOCON->PIO0_9 |= 0x03; /* UART RXD */
#endif
}
//--------------------------------------------------------------------+