aboutsummaryrefslogtreecommitdiff
path: root/hwdef-BLF_Q8.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-06-24 19:57:42 -0600
committerSelene ToyKeeper2018-06-24 19:57:42 -0600
commit0870da1dcbb2b446851bfcf507d4535f9eded417 (patch)
tree70a3da9676d951db105d0e04c07c8f5cfef1d2e3 /hwdef-BLF_Q8.h
parentMoved driver-specific details to separate header files. (diff)
downloadanduril-0870da1dcbb2b446851bfcf507d4535f9eded417.tar.gz
anduril-0870da1dcbb2b446851bfcf507d4535f9eded417.tar.bz2
anduril-0870da1dcbb2b446851bfcf507d4535f9eded417.zip
Refactored driver/hardware definition code to be one file per driver type.
Diffstat (limited to 'hwdef-BLF_Q8.h')
-rw-r--r--hwdef-BLF_Q8.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/hwdef-BLF_Q8.h b/hwdef-BLF_Q8.h
new file mode 100644
index 0000000..f00c392
--- /dev/null
+++ b/hwdef-BLF_Q8.h
@@ -0,0 +1,16 @@
+/* BLF Q8 driver layout
+ */
+// Q8 driver is the same as a D4, basically
+#include "hwdef-Emisar_D4.h"
+
+// ... except the Q8 has a lighted button
+#ifndef AUXLED_PIN
+#define AUXLED_PIN PB4 // pin 3
+#endif
+
+// average drop across diode on this hardware
+#ifdef VOLTAGE_FUDGE_FACTOR
+#undef VOLTAGE_FUDGE_FACTOR
+#endif
+#define VOLTAGE_FUDGE_FACTOR 7 // add 0.35V
+