diff options
| author | Ha Thach <[email protected]> | 2024-04-24 16:32:56 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-24 16:32:56 +0700 |
| commit | 366f1cf1863bad626af10347f8ff3d0ef7f6ea2b (patch) | |
| tree | eae41680575908fce8423ccf5bddbf1f82ccd892 | |
| parent | b67cb26e51c7f31db0cf71c6c1ce5430bbbbb7f5 (diff) | |
Fix bsp mistake
| -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); +} |
