mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 04:23:41 +00:00
Add runtime support for the nRF52
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
|
||||
// +build nrf
|
||||
|
||||
package runtime
|
||||
|
||||
// #include "runtime_nrf.h"
|
||||
import "C"
|
||||
|
||||
const Microsecond = 1
|
||||
|
||||
func putchar(c byte) {
|
||||
C.uart_send(C.uint8_t(c))
|
||||
}
|
||||
|
||||
func Sleep(d Duration) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
func abort() {
|
||||
// TODO: wfi
|
||||
for {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user