diff options
| -rw-r--r-- | hw/bsp/board.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/hw/bsp/board.c b/hw/bsp/board.c index cdef5e1e5..bb339f613 100644 --- a/hw/bsp/board.c +++ b/hw/bsp/board.c @@ -26,14 +26,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 //--------------------------------------------------------------------+ #ifdef __ICCARM__ @@ -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); +} |
