mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 18:48:41 +00:00
e77e9249cd
This makes it possible to replace UART objects with dummy implementations, for example. Or allows changing the `machine.UART` type to `*machine.UART` without breaking compatibility.
13 lines
178 B
Go
13 lines
178 B
Go
package drivers
|
|
|
|
import "io"
|
|
|
|
// UART represents a UART connection. It is implemented by the machine.UART
|
|
// type.
|
|
type UART interface {
|
|
io.Reader
|
|
io.Writer
|
|
|
|
Buffered() int
|
|
}
|