int fputc(int c, FILE* stream)
{
uint8_t ch[1] = {c};
HAL_UART_Transmit(&huart1, ch, 1, 0xFFFF);
return c;
}
int fgetc(FILE* stream)
{
uint8_t ch[1];
HAL_UART_Receive(&huart1, ch, 1, 0xFFFF);
return ch[0];
}
08-14
1404
08-31
2987
05-21
7740