mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 13:03:39 +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
@@ -114,6 +114,12 @@ func (i2c I2C) readByte() byte {
|
||||
return byte(avr.TWDR.Get())
|
||||
}
|
||||
|
||||
// UART
|
||||
var (
|
||||
// UART0 is the hardware serial port on the AVR.
|
||||
UART0 = UART{Buffer: NewRingBuffer()}
|
||||
)
|
||||
|
||||
// UART on the AVR.
|
||||
type UART struct {
|
||||
Buffer *RingBuffer
|
||||
|
||||
Reference in New Issue
Block a user