mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
machine: make gosched available to machine package
This commit is contained in:
@@ -59,9 +59,6 @@ var (
|
|||||||
ErrNotConfigured = errors.New("device has not been configured")
|
ErrNotConfigured = errors.New("device has not been configured")
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:linkname gosched runtime.Gosched
|
|
||||||
func gosched()
|
|
||||||
|
|
||||||
// PutcharUART writes a byte to the UART synchronously, without using interrupts
|
// PutcharUART writes a byte to the UART synchronously, without using interrupts
|
||||||
// or calling the scheduler
|
// or calling the scheduler
|
||||||
func PutcharUART(u *UART, c byte) {
|
func PutcharUART(u *UART, c byte) {
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package machine
|
||||||
|
|
||||||
|
import (
|
||||||
|
_ "unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
//
|
||||||
|
// This file provides access to runtime package that would not otherwise
|
||||||
|
// be permitted due to linker dependencies.
|
||||||
|
//
|
||||||
|
|
||||||
|
//go:linkname gosched runtime.Gosched
|
||||||
|
func gosched()
|
||||||
Reference in New Issue
Block a user