mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
machine: Rewrite most of the GPIO functionality
Split across device types (nrf, dummy) and use registers directly instead of the HAL.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
|
||||
// +build !avr,!nrf
|
||||
|
||||
package machine
|
||||
|
||||
// Dummy machine package, filled with no-ops.
|
||||
|
||||
type GPIOMode uint8
|
||||
|
||||
const (
|
||||
GPIO_INPUT = iota
|
||||
GPIO_OUTPUT
|
||||
)
|
||||
|
||||
const LED = 0
|
||||
|
||||
func (p GPIO) Configure(config GPIOConfig) {
|
||||
}
|
||||
|
||||
func (p GPIO) Set(value bool) {
|
||||
}
|
||||
Reference in New Issue
Block a user