From 39805bca4598e3a3ad312a388a008c8d9f989eb2 Mon Sep 17 00:00:00 2001 From: sago35 Date: Tue, 29 Mar 2022 08:25:04 +0900 Subject: os, runtime: enable os.Stdin for baremetal target --- src/runtime/runtime_nxpmk66f18.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/runtime/runtime_nxpmk66f18.go') diff --git a/src/runtime/runtime_nxpmk66f18.go b/src/runtime/runtime_nxpmk66f18.go index 05643d71a..28c019e55 100644 --- a/src/runtime/runtime_nxpmk66f18.go +++ b/src/runtime/runtime_nxpmk66f18.go @@ -231,6 +231,16 @@ func putchar(c byte) { machine.PutcharUART(machine.UART0, c) } +func getchar() byte { + // dummy, TODO + return 0 +} + +func buffered() int { + // dummy, TODO + return 0 +} + func exit(code int) { abort() } -- cgit v1.2.3