aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-04-26 22:12:31 -0600
committerSelene ToyKeeper2020-04-26 22:12:31 -0600
commit08781957244b9a30c9abc7425ff023d36f7e9160 (patch)
tree3fe8c1c7a986183094ae53af2d3fbee5b8790e7b /hw
parentmerged Noctigon KR4 branch, including recent ADC+thermal rewrite (diff)
downloadanduril-08781957244b9a30c9abc7425ff023d36f7e9160.tar.gz
anduril-08781957244b9a30c9abc7425ff023d36f7e9160.tar.bz2
anduril-08781957244b9a30c9abc7425ff023d36f7e9160.zip
applied ADC rewrite updates to most recent build targets
Diffstat (limited to '')
-rw-r--r--hwdef-Noctigon_K1-12V.h2
-rw-r--r--hwdef-Noctigon_K1.h2
-rw-r--r--hwdef-Noctigon_KR4.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/hwdef-Noctigon_K1-12V.h b/hwdef-Noctigon_K1-12V.h
index 2294bac..7beb205 100644
--- a/hwdef-Noctigon_K1-12V.h
+++ b/hwdef-Noctigon_K1-12V.h
@@ -74,7 +74,7 @@
// REFS[1:0] = 1, 0 for internal 1.1V reference
// other bits reserved
#define ADMUX_VOLTAGE_DIVIDER 0b10000110
-#define ADC_PRSCL 0x06 // clk/64
+#define ADC_PRSCL 0x07 // clk/128
// Raw ADC readings at 4.4V and 2.2V
// calibrate the voltage readout here
diff --git a/hwdef-Noctigon_K1.h b/hwdef-Noctigon_K1.h
index 031bec0..8c8a4db 100644
--- a/hwdef-Noctigon_K1.h
+++ b/hwdef-Noctigon_K1.h
@@ -71,7 +71,7 @@
// REFS[1:0] = 1, 0 for internal 1.1V reference
// other bits reserved
#define ADMUX_VOLTAGE_DIVIDER 0b10000110
-#define ADC_PRSCL 0x06 // clk/64
+#define ADC_PRSCL 0x07 // clk/128
// Raw ADC readings at 4.4V and 2.2V
// calibrate the voltage readout here
diff --git a/hwdef-Noctigon_KR4.h b/hwdef-Noctigon_KR4.h
index f624e64..4eec585 100644
--- a/hwdef-Noctigon_KR4.h
+++ b/hwdef-Noctigon_KR4.h
@@ -80,7 +80,7 @@
// REFS[1:0] = 1, 0 for internal 1.1V reference
// other bits reserved
#define ADMUX_VOLTAGE_DIVIDER 0b10000110
-#define ADC_PRSCL 0x06 // clk/64
+#define ADC_PRSCL 0x07 // clk/128
// TODO: calibrate this
// Raw ADC readings at 4.4V and 2.2V