aboutsummaryrefslogtreecommitdiff
path: root/keyboards/helix/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/helix/serial.c')
-rw-r--r--keyboards/helix/serial.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/keyboards/helix/serial.c b/keyboards/helix/serial.c
index 182f22219..591941587 100644
--- a/keyboards/helix/serial.c
+++ b/keyboards/helix/serial.c
@@ -110,16 +110,18 @@ void serial_master_init(void) {
110void serial_slave_init(void) { 110void serial_slave_init(void) {
111 serial_input_with_pullup(); 111 serial_input_with_pullup();
112 112
113#ifndef USE_SERIAL_PD2 113#if SERIAL_PIN_MASK == _BV(PD0)
114 // Enable INT0 114 // Enable INT0
115 EIMSK |= _BV(INT0); 115 EIMSK |= _BV(INT0);
116 // Trigger on falling edge of INT0 116 // Trigger on falling edge of INT0
117 EICRA &= ~(_BV(ISC00) | _BV(ISC01)); 117 EICRA &= ~(_BV(ISC00) | _BV(ISC01));
118#else 118#elif SERIAL_PIN_MASK == _BV(PD2)
119 // Enable INT2 119 // Enable INT2
120 EIMSK |= _BV(INT2); 120 EIMSK |= _BV(INT2);
121 // Trigger on falling edge of INT2 121 // Trigger on falling edge of INT2
122 EICRA &= ~(_BV(ISC20) | _BV(ISC21)); 122 EICRA &= ~(_BV(ISC20) | _BV(ISC21));
123#else
124 #error unknown SERIAL_PIN_MASK value
123#endif 125#endif
124} 126}
125 127