[HUST CSE]github上正常但导入vscode出现乱码

This commit is contained in:
chichen113 2023-04-23 02:22:19 +08:00 committed by GitHub
parent a894aef494
commit 7ff6fe7c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 698 additions and 698 deletions

File diff suppressed because it is too large Load Diff

View File

@ -70,10 +70,10 @@ static int g_stdio_uart_init_done = 0;
/*==============================================================================
* sendchar()
*/
int sendchar(int ch)
int sendchar(int ch)
{
uint32_t tx_ready;
//第一次调用时,初始化串口
//第一次调用时,初始化串口
if(!g_stdio_uart_init_done)
{
MSS_UART_init(gp_my_uart,
@ -89,7 +89,7 @@ int sendchar(int ch)
}
/*==============================================================================
*
*
*/
struct __FILE { int handle; /* Add whatever you need here */ };
FILE __stdout;
@ -111,7 +111,7 @@ int fgetc(FILE *f)
{
uint8_t rx_size;
uint8_t rx_byte;
do {
rx_size = MSS_UART_get_rx(gp_my_uart, &rx_byte, 1);
} while(0u == rx_size);