added support for IAR retarget but not yet succeeded. lpc17xx have problem connect with jlink

This commit is contained in:
hathach
2014-03-04 16:31:44 +07:00
parent 6f24dd50a0
commit 2a866365e9
7 changed files with 56 additions and 79 deletions

View File

@@ -117,6 +117,11 @@ uint32_t board_uart_send(uint8_t *buffer, uint32_t length)
return UART_Send(BOARD_UART_PORT, buffer, length, BLOCKING);
}
void board_uart_putchar(uint8_t c)
{
UART_SendByte(BOARD_UART_PORT, c);
}
uint8_t board_uart_getchar(void)
{
return UART_ReceiveByte(BOARD_UART_PORT);