26 строки
626 Б
Go
26 строки
626 Б
Go
// +build avr,attiny
|
|
|
|
package machine
|
|
|
|
// UART on the AVR is a dummy implementation. UART has not been implemented for ATtiny
|
|
// devices.
|
|
type UART struct {
|
|
Buffer *RingBuffer
|
|
}
|
|
|
|
// Configure is a dummy implementation. UART has not been implemented for ATtiny
|
|
// devices.
|
|
func (uart UART) Configure(config UARTConfig) {
|
|
}
|
|
|
|
// WriteByte is a dummy implementation. UART has not been implemented for ATtiny
|
|
// devices.
|
|
func (uart UART) WriteByte(c byte) error {
|
|
return nil
|
|
}
|
|
|
|
// Tx is a dummy implementation. I2C has not been implemented for ATtiny
|
|
// devices.
|
|
func (i2c I2C) Tx(addr uint16, w, r []byte) error {
|
|
return nil
|
|
}
|