Skip to content

Commit 366f1cf

Browse files
authored
Fix bsp mistake
1 parent b67cb26 commit 366f1cf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

hw/bsp/board.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@
2525

2626
#include "board_api.h"
2727

28-
//--------------------------------------------------------------------+
29-
// Board API
30-
//--------------------------------------------------------------------+
31-
int board_getchar(void) {
32-
char c;
33-
return (sys_read(0, &c, 1) > 0) ? (int) c : (-1);
34-
}
35-
3628
//--------------------------------------------------------------------+
3729
// newlib read()/write() retarget
3830
//--------------------------------------------------------------------+
@@ -134,3 +126,11 @@ FILE *const stdin = &__stdio;
134126
__strong_reference(stdin, stdout);
135127
__strong_reference(stdin, stderr);
136128
#endif
129+
130+
//--------------------------------------------------------------------+
131+
// Board API
132+
//--------------------------------------------------------------------+
133+
int board_getchar(void) {
134+
char c;
135+
return (sys_read(0, &c, 1) > 0) ? (int) c : (-1);
136+
}

0 commit comments

Comments
 (0)