summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2019-04-21 16:49:19 -0700
committerKeith Packard <keithp@keithp.com>2019-04-21 16:54:54 -0700
commit5d3436ed8551537287dc6cf418f93b0989e1aee8 (patch)
treecb940eabcc3f4a1cb35ab1e35cd6e7b32272e974 /src/kernel
parent49ce3e9a2eb4e1918773b80c355d720a3dadc7e0 (diff)
altos: get ao_max6691 driver working
The driver uses a timer connected to a DMA engine to measure pulse widths from the chip. We get 11 pulses for 4 channels; the first pulse is caused by the timer starting up, the next two are the marker pulse and then 8 more indicating the end of the high and low periods for each channel. The driver API returns the 8 pulse widths; the caller is expected to know what to do with those values as using them requires knowing the value of the configuration resistor and the characteristics of the thermistors. The test code assumes a 1k configuration resistor, using that it computes the resistance of the four thermistors. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel')
0 files changed, 0 insertions, 0 deletions