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
@@ -6,6 +6,13 @@ import (
|
||||
"device/avr"
|
||||
)
|
||||
|
||||
func initUART() {
|
||||
}
|
||||
|
||||
func putchar(c byte) {
|
||||
// UART is not supported.
|
||||
}
|
||||
|
||||
func sleepWDT(period uint8) {
|
||||
// TODO: use the watchdog timer instead of a busy loop.
|
||||
for i := 0x45; i != 0; i-- {
|
||||
|
||||
Reference in New Issue
Block a user