Fix bsp mistake

This commit is contained in:
Ha Thach 2024-04-24 16:32:56 +07:00 committed by GitHub
parent b67cb26e51
commit 366f1cf186
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,14 +25,6 @@
#include "board_api.h"
//--------------------------------------------------------------------+
// Board API
//--------------------------------------------------------------------+
int board_getchar(void) {
char c;
return (sys_read(0, &c, 1) > 0) ? (int) c : (-1);
}
//--------------------------------------------------------------------+
// newlib read()/write() retarget
//--------------------------------------------------------------------+
@ -134,3 +126,11 @@ FILE *const stdin = &__stdio;
__strong_reference(stdin, stdout);
__strong_reference(stdin, stderr);
#endif
//--------------------------------------------------------------------+
// Board API
//--------------------------------------------------------------------+
int board_getchar(void) {
char c;
return (sys_read(0, &c, 1) > 0) ? (int) c : (-1);
}