mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
attiny: remove dummy UART
I think it's better not to provide a UART0 global at all than one that does nothing.
This commit is contained in:
committed by
Ron Evans
parent
c60c36f0a8
commit
42088f938e
@@ -4,7 +4,6 @@ package runtime
|
||||
|
||||
import (
|
||||
"device/avr"
|
||||
"machine"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -59,14 +58,6 @@ func init() {
|
||||
initUART()
|
||||
}
|
||||
|
||||
func initUART() {
|
||||
machine.UART0.Configure(machine.UARTConfig{})
|
||||
}
|
||||
|
||||
func putchar(c byte) {
|
||||
machine.UART0.WriteByte(c)
|
||||
}
|
||||
|
||||
const asyncScheduler = false
|
||||
|
||||
const tickNanos = 1024 * 16384 // roughly 16ms in nanoseconds
|
||||
|
||||
Reference in New Issue
Block a user