2011-11-13 16:33:00 +04:00
|
|
|
# $NetBSD: files.gpio,v 1.10 2011/11/13 12:33:00 mbalmer Exp $
|
2005-09-27 06:34:02 +04:00
|
|
|
|
2011-10-02 14:01:25 +04:00
|
|
|
define gpio {[offset = -1], [mask = 0], [flag = 0]}
|
2005-09-27 06:34:02 +04:00
|
|
|
|
|
|
|
device gpio: gpio
|
|
|
|
attach gpio at gpiobus
|
|
|
|
file dev/gpio/gpio.c gpio needs-flag
|
2006-04-07 22:55:21 +04:00
|
|
|
|
2009-07-25 20:17:10 +04:00
|
|
|
# GPIO simulator
|
2009-07-27 21:40:57 +04:00
|
|
|
defpseudodev gpiosim: gpiobus
|
|
|
|
file dev/gpio/gpiosim.c gpiosim
|
2009-07-25 20:17:10 +04:00
|
|
|
|
2009-08-09 12:18:00 +04:00
|
|
|
# I2C bus bit-banging
|
|
|
|
device gpioiic: i2cbus, i2c_bitbang
|
|
|
|
attach gpioiic at gpio
|
|
|
|
file dev/gpio/gpioiic.c gpioiic
|
|
|
|
|
2009-07-25 20:17:10 +04:00
|
|
|
# 1-Wire bus bit-banging
|
2006-04-07 22:55:21 +04:00
|
|
|
device gpioow: onewirebus, onewire_bitbang
|
|
|
|
attach gpioow at gpio
|
|
|
|
file dev/gpio/gpioow.c gpioow
|
2009-08-15 01:17:21 +04:00
|
|
|
|
|
|
|
# Keylock
|
|
|
|
device gpiolock: gpiobus
|
|
|
|
attach gpiolock at gpio
|
|
|
|
file dev/gpio/gpiolock.c gpiolock
|
2011-11-13 16:33:00 +04:00
|
|
|
|
|
|
|
# PWM
|
|
|
|
device gpiopwm: gpiobus
|
|
|
|
attach gpiopwm at gpio
|
|
|
|
file dev/gpio/gpiopwm.c gpiopwm
|