os, runtime: enable os.Stdin for baremetal target

This commit is contained in:
sago35
2022-03-29 08:25:04 +09:00
committed by Ron Evans
parent 97842b367c
commit 39805bca45
26 changed files with 327 additions and 2 deletions
+10
View File
@@ -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()
}