aboutsummaryrefslogtreecommitdiff
path: root/hwdef-Emisar_D4Sv2-tintramp.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-11-03 02:42:12 -0600
committerSelene ToyKeeper2021-11-03 02:42:12 -0600
commitccacc3931e1dd3e27483c930b40326c968f1e91e (patch)
tree15eef201961e9af0f6fbf161230bebeb116e4b05 /hwdef-Emisar_D4Sv2-tintramp.h
parentdocumented number entry 1H action (add 10) in UI table (diff)
downloadanduril-ccacc3931e1dd3e27483c930b40326c968f1e91e.tar.gz
anduril-ccacc3931e1dd3e27483c930b40326c968f1e91e.tar.bz2
anduril-ccacc3931e1dd3e27483c930b40326c968f1e91e.zip
added KR4-tintramp build
(is basically identical to D4Sv2-tintramp, but with the switch on a different pin, and no button LED)
Diffstat (limited to 'hwdef-Emisar_D4Sv2-tintramp.h')
-rw-r--r--hwdef-Emisar_D4Sv2-tintramp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hwdef-Emisar_D4Sv2-tintramp.h b/hwdef-Emisar_D4Sv2-tintramp.h
index 76f6097..3291c8b 100644
--- a/hwdef-Emisar_D4Sv2-tintramp.h
+++ b/hwdef-Emisar_D4Sv2-tintramp.h
@@ -52,6 +52,7 @@
#define SWITCH_PCIE PCIE0 // PCIE1 is for PCINT[7:0]
#define SWITCH_PCMSK PCMSK0 // PCMSK1 is for PCINT[7:0]
#define SWITCH_PORT PINA // PINA or PINB or PINC
+#define SWITCH_PUE PUEA // pullup group A
#define PCINT_vect PCINT0_vect // ISR for PCINT[7:0]
// usually PWM1_LVL would be a hardware register, but we need to abstract
@@ -173,7 +174,7 @@ inline void hwdef_setup() {
PWM1_TOP = PWM_TOP;
// set up e-switch
- PUEA = (1 << SWITCH_PIN); // pull-up for e-switch
+ SWITCH_PUE = (1 << SWITCH_PIN); // pull-up for e-switch
SWITCH_PCMSK = (1 << SWITCH_PCINT); // enable pin change interrupt
}