projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d353ec2
)
altos/stm: Define ADC channels for TEMP and V_REF
author
Keith Packard
<keithp@keithp.com>
Sun, 17 Jun 2018 06:47:42 +0000
(23:47 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sun, 17 Jun 2018 06:47:42 +0000
(23:47 -0700)
These are fixed at 16 and 17.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/stm32l.h
patch
|
blob
|
history
diff --git
a/src/stm/stm32l.h
b/src/stm/stm32l.h
index 201f4f36647c4b5722cd9dfc5ab785065788c72a..1da817e7a0db36267524bbf2b6dbf33cf80c4bb3 100644
(file)
--- a/
src/stm/stm32l.h
+++ b/
src/stm/stm32l.h
@@
-1454,6
+1454,9
@@
struct stm_adc {
extern struct stm_adc stm_adc;
+#define STM_ADC_SQ_TEMP 16
+#define STM_ADC_SQ_V_REF 17
+
#define STM_ADC_SR_JCNR 9
#define STM_ADC_SR_RCNR 8
#define STM_ADC_SR_ADONS 6