update package/STM32F1/STM32F1_UART.c.

This commit is contained in:
李昂 2021-12-11 13:23:42 +00:00 committed by Gitee
parent c44486ecc0
commit 81938ad24b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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) {