generated from hulk/gd32e23x_template_cmake_vscode
revert 3ad18bf1f1
revert Merge pull request 'dev' (#1) from dev into main Reviewed-on: #1
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/wait.h>
|
||||
#include "gd32e23x_usart.h"
|
||||
#include "board_config.h"
|
||||
|
||||
#undef errno
|
||||
extern int errno;
|
||||
@@ -165,7 +164,7 @@ int _execve(char *name, char **argv, char **env)
|
||||
// USART0 printf重定向实现
|
||||
int __io_putchar(int ch) {
|
||||
// 等待发送缓冲区空
|
||||
while (usart_flag_get(RS485_PHY, USART_FLAG_TBE) == RESET) {}
|
||||
usart_data_transmit(RS485_PHY, (uint8_t)ch);
|
||||
while (usart_flag_get(USART0, USART_FLAG_TBE) == RESET) {}
|
||||
usart_data_transmit(USART0, (uint8_t)ch);
|
||||
return ch;
|
||||
}
|
||||
|
Reference in New Issue
Block a user