aboutsummaryrefslogtreecommitdiff
path: root/hwdef-Mateminco_MF01S.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-01-29 05:08:14 -0700
committerSelene ToyKeeper2020-01-29 05:08:14 -0700
commit9c0d1832464e4ee7ee8c4c63092ac4337347483b (patch)
tree67eb820b425e7a5e019e7158dda30ebab5e1bbe8 /hwdef-Mateminco_MF01S.h
parentfixed too-slow thermal response (was introduced in the irq-refactor branch) (diff)
downloadanduril-9c0d1832464e4ee7ee8c4c63092ac4337347483b.tar.gz
anduril-9c0d1832464e4ee7ee8c4c63092ac4337347483b.tar.bz2
anduril-9c0d1832464e4ee7ee8c4c63092ac4337347483b.zip
rewrote ADC code to use a continuous lowpass system on all measurements, to eliminate noise and maybe increase precision
(thermal code still needs to be rewritten though)
Diffstat (limited to 'hwdef-Mateminco_MF01S.h')
-rw-r--r--hwdef-Mateminco_MF01S.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwdef-Mateminco_MF01S.h b/hwdef-Mateminco_MF01S.h
index ab1c5bf..b89408f 100644
--- a/hwdef-Mateminco_MF01S.h
+++ b/hwdef-Mateminco_MF01S.h
@@ -40,7 +40,7 @@
// 1.1V reference, no left-adjust, ADC1/PB2
#define ADMUX_VOLTAGE_DIVIDER ((1 << V_REF) | VOLTAGE_CHANNEL)
#endif
-#define ADC_PRSCL 0x06 // clk/64
+#define ADC_PRSCL 0x07 // clk/128
// Raw ADC readings at 4.4V and 2.2V (in-between, we assume values form a straight line)
#ifndef ADC_44