altos: Change MAX6691 driver to run its own thread
authorKeith Packard <keithp@keithp.com>
Mon, 22 Apr 2019 01:18:55 +0000 (18:18 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 22 Apr 2019 01:18:55 +0000 (18:18 -0700)
commit83823e4ee901edb893db68e36deb2b92ffec3958
tree0863823843b01890d992023bd0122a490bae3213
parent188f9efadd480de872f86a8eb741e8738db84c6b
altos: Change MAX6691 driver to run its own thread

This just captures temp data continuously; it takes 100ms to get the
temp data from the sensor, so the maximum rate is around 10 samples/sec.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_max6691.c
src/drivers/ao_max6691.h