Fix bsp mistake
This commit is contained in:
@@ -25,14 +25,6 @@
|
|||||||
|
|
||||||
#include "board_api.h"
|
#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
|
// newlib read()/write() retarget
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
@@ -134,3 +126,11 @@ FILE *const stdin = &__stdio;
|
|||||||
__strong_reference(stdin, stdout);
|
__strong_reference(stdin, stdout);
|
||||||
__strong_reference(stdin, stderr);
|
__strong_reference(stdin, stderr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------+
|
||||||
|
// Board API
|
||||||
|
//--------------------------------------------------------------------+
|
||||||
|
int board_getchar(void) {
|
||||||
|
char c;
|
||||||
|
return (sys_read(0, &c, 1) > 0) ? (int) c : (-1);
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user