mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-10 01:43:40 +00:00
19 lines
373 B
Go
19 lines
373 B
Go
//go:build !tinygo
|
|
|
|
// Generic no-op implementations of SafePin, SafePinInput and SafePinOutput.
|
|
// It's custom implementation's responsibility to configure the pin modes correctly when needed.
|
|
|
|
package drivers
|
|
|
|
func SafePinInput(pin PinInput) PinInput {
|
|
return pin
|
|
}
|
|
|
|
func SafePinOutput(pin PinOutput) PinOutput {
|
|
return pin
|
|
}
|
|
|
|
func SafePin(pin Pin) Pin {
|
|
return pin
|
|
}
|