This commit is contained in:
hathach 2013-09-10 13:15:21 +07:00
parent b0b56a417e
commit e823862ed1
2 changed files with 2 additions and 11 deletions

View File

@ -86,9 +86,6 @@ void board_init(void)
UART_Init(BOARD_UART_PORT, &UARTConfigStruct);
UART_TxCmd(BOARD_UART_PORT, ENABLE); // Enable UART Transmit
#endif
#if CFG_PRINTF_TARGET == PRINTF_TARGET_SWO
#endif
}
//--------------------------------------------------------------------+

View File

@ -120,10 +120,7 @@ int fputc(int ch, FILE *f)
board_uart_send(&carry, 1);
}
//board_uart_send( (uint8_t*) &ch, 1);
uint8_t c = (uint8_t) ch;
board_uart_send( (uint8_t*) &c, 1);
board_uart_send( (uint8_t*) &ch, 1);
return ch;
}
@ -137,10 +134,7 @@ void _ttywrch(int ch)
board_uart_send(&carry, 1);
}
//board_uart_send( (uint8_t*) &ch, 1);
uint8_t c = (uint8_t) ch;
board_uart_send( (uint8_t*) &c, 1);
board_uart_send( (uint8_t*) &ch, 1);
}
#endif