mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 06:23:39 +00:00
machine/stm32: add support for stm32f103xx UART
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
committed by
Ayke van Laethem
parent
a830451426
commit
47b667a4b8
@@ -2,14 +2,8 @@
|
||||
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"device/arm"
|
||||
)
|
||||
|
||||
type timeUnit int64
|
||||
|
||||
const tickMicros = 1 // TODO
|
||||
|
||||
//go:export Reset_Handler
|
||||
func main() {
|
||||
preinit()
|
||||
@@ -17,18 +11,3 @@ func main() {
|
||||
mainWrapper()
|
||||
abort()
|
||||
}
|
||||
|
||||
func putchar(c byte) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
func sleepTicks(d timeUnit) {
|
||||
// TODO: use a real timer here
|
||||
for i := 0; i < int(d/535); i++ {
|
||||
arm.Asm("")
|
||||
}
|
||||
}
|
||||
|
||||
func ticks() timeUnit {
|
||||
return 0 // TODO
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user