File tree 1 file changed +8
-8
lines changed 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 25
25
26
26
#include "board_api.h"
27
27
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
-
36
28
//--------------------------------------------------------------------+
37
29
// newlib read()/write() retarget
38
30
//--------------------------------------------------------------------+
@@ -134,3 +126,11 @@ FILE *const stdin = &__stdio;
134
126
__strong_reference (stdin , stdout );
135
127
__strong_reference (stdin , stderr );
136
128
#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
+ }
You can’t perform that action at this time.
0 commit comments