mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 05:23:40 +00:00
os, runtime: enable os.Stdin for baremetal target
This commit is contained in:
@@ -14,6 +14,16 @@ func putchar(c byte) {
|
||||
// UART is not supported.
|
||||
}
|
||||
|
||||
func getchar() byte {
|
||||
// UART is not supported.
|
||||
return 0
|
||||
}
|
||||
|
||||
func buffered() int {
|
||||
// UART is not supported.
|
||||
return 0
|
||||
}
|
||||
|
||||
func sleepWDT(period uint8) {
|
||||
// TODO: use the watchdog timer instead of a busy loop.
|
||||
for i := 0x45; i != 0; i-- {
|
||||
|
||||
Reference in New Issue
Block a user