mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 02:57:46 +00:00
8c86eae924
Add definitions for constants like PB0.
27 lines
626 B
Go
27 lines
626 B
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
|
|
}
|