projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
83823e4
)
altos/telefireone-v2.0: Include MAX6691 data in ring
author
Keith Packard
<keithp@keithp.com>
Mon, 22 Apr 2019 01:19:59 +0000
(18:19 -0700)
committer
Keith Packard
<keithp@keithp.com>
Mon, 22 Apr 2019 01:19:59 +0000
(18:19 -0700)
Define HAS_MAX6691 which tells the data code to pull the MAX6691 data
into the data ring for logging etc.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/telefireone-v2.0/ao_pins.h
patch
|
blob
|
history
diff --git
a/src/telefireone-v2.0/ao_pins.h
b/src/telefireone-v2.0/ao_pins.h
index a77beb76cf8a7e773d8d496ed222b9c2935ae17b..8025ace6a660c239872db4e0a02909c0495c1f78 100644
(file)
--- a/
src/telefireone-v2.0/ao_pins.h
+++ b/
src/telefireone-v2.0/ao_pins.h
@@
-261,6
+261,7
@@
struct ao_adc {
(1 << AO_PAD_ADC_BATT))
/* MAX6691 thermistor chip */
+#define HAS_MAX6691 1
#define AO_MAX6691_GPIO (&stm_gpiob)
#define AO_MAX6691_PIN 3
#define AO_MAX6691_TIMER (&stm_tim2)
@@
-268,5
+269,4
@@
struct ao_adc {
#define AO_MAX6691_CH 2
#define AO_MAX6691_DMA STM_DMA_INDEX(7)
-
#endif /* _AO_PINS_H_ */