diff --git a/package/STM32F1/STM32F1_UART.c b/package/STM32F1/STM32F1_UART.c index e7ee2b318..7cf78c630 100644 --- a/package/STM32F1/STM32F1_UART.c +++ b/package/STM32F1/STM32F1_UART.c @@ -21,13 +21,6 @@ pika_uart_t pika_uart4; /* support by booter */ extern UART_HandleTypeDef huart1; -/* support scanf */ -int fgetc(FILE* f) { - uint8_t ch = 0; - HAL_UART_Receive(&huart1, &ch, 1, 0xffff); - return ch; -} - static pika_uart_t* getPikaUart(uint8_t id) { #ifdef UART1_EXIST if (1 == id) {