aboutsummaryrefslogtreecommitdiff
path: root/hwdef-Ferrero_Rocher.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-06-24 20:10:33 -0600
committerSelene ToyKeeper2018-06-24 20:10:33 -0600
commit2e76fafd027c027b23964e6f4c2e27f26732db64 (patch)
tree66d68a9afbb0341de5614bc78f6f64137b130e3a /hwdef-Ferrero_Rocher.h
parentAdded D4S to the build-all script. (diff)
parentRefactored driver/hardware definition code to be one file per driver type. (diff)
downloadanduril-2e76fafd027c027b23964e6f4c2e27f26732db64.tar.gz
anduril-2e76fafd027c027b23964e6f4c2e27f26732db64.tar.bz2
anduril-2e76fafd027c027b23964e6f4c2e27f26732db64.zip
merged updates from FSM branch
Diffstat (limited to 'hwdef-Ferrero_Rocher.h')
-rw-r--r--hwdef-Ferrero_Rocher.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/hwdef-Ferrero_Rocher.h b/hwdef-Ferrero_Rocher.h
new file mode 100644
index 0000000..a46f19d
--- /dev/null
+++ b/hwdef-Ferrero_Rocher.h
@@ -0,0 +1,11 @@
+/* Ferrero Rocher driver layout
+ * ----
+ * Reset -|1 8|- VCC
+ * E-switch -|2 7|- Voltage ADC
+ * Red LED -|3 6|- PWM
+ * GND -|4 5|- Green LED
+ * ----
+ */
+// TODO: fill in this section, update Ferrero_Rocher code to use it.
+#define FAST 0x23 // fast PWM channel 1 only
+#define PHASE 0x21 // phase-correct PWM channel 1 only