637bfc29f9
gpioow(4), attaching a bit-banging driver via a GPIO pin. Also, owtemp(4) which supports some of the 1-Wire temperature sensors, including the DS18b20 and DS1920 - temperatures are returned via the envsys(4) framework. Original drivers by Alexander Yurchenko (grange@openbsd), with envsys(4) support and a fix to the 1-wire search algorithm (for discovering devices on the bus) by me. As discussed on tech-kern earlier this week.
16 lines
388 B
Plaintext
16 lines
388 B
Plaintext
# $OpenBSD: files.onewire,v 1.1 2006/03/04 16:27:03 grange Exp $
|
|
|
|
define onewire {}
|
|
|
|
device onewire: onewire
|
|
attach onewire at onewirebus
|
|
file dev/onewire/onewire.c onewire
|
|
file dev/onewire/onewire_subr.c onewire
|
|
|
|
file dev/onewire/onewire_bitbang.c onewire_bitbang
|
|
|
|
# Temperature family type device
|
|
device owtemp: sysmon_envsys
|
|
attach owtemp at onewire
|
|
file dev/onewire/owtemp.c owtemp
|