test: fix _embdemo
This commit is contained in:
13
_embdemo/hello-esp32/uart.go
Normal file
13
_embdemo/hello-esp32/uart.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "unsafe"
|
||||
|
||||
"github.com/goplus/lib/c"
|
||||
)
|
||||
|
||||
//go:linkname WriteByte C.board_uart_write_char
|
||||
func WriteByte(b byte)
|
||||
|
||||
//go:linkname sleep sleep
|
||||
func sleep(c c.Int)
|
||||
Reference in New Issue
Block a user