diff options
author | MakotoKurauchi <pluis@me.com> | 2018-07-13 02:23:30 +0900 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-07-12 10:23:30 -0700 |
commit | f30d6dd7858dfa3a0cf214113e8b1d45b30d74ce (patch) | |
tree | f37014dcb6efcc4cebf48300271fb7236d9fbb5e /keyboards/helix/serial.c | |
parent | e3299db9e33304589d75a5dc332a6c5c484a82be (diff) |
Helix config refine (#3374)
* helix config.h refine
Diffstat (limited to 'keyboards/helix/serial.c')
-rw-r--r-- | keyboards/helix/serial.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/keyboards/helix/serial.c b/keyboards/helix/serial.c index 182f222196..5919415877 100644 --- a/keyboards/helix/serial.c +++ b/keyboards/helix/serial.c @@ -110,16 +110,18 @@ void serial_master_init(void) { void serial_slave_init(void) { serial_input_with_pullup(); -#ifndef USE_SERIAL_PD2 +#if SERIAL_PIN_MASK == _BV(PD0) // Enable INT0 EIMSK |= _BV(INT0); // Trigger on falling edge of INT0 EICRA &= ~(_BV(ISC00) | _BV(ISC01)); -#else +#elif SERIAL_PIN_MASK == _BV(PD2) // Enable INT2 EIMSK |= _BV(INT2); // Trigger on falling edge of INT2 EICRA &= ~(_BV(ISC20) | _BV(ISC21)); +#else + #error unknown SERIAL_PIN_MASK value #endif } |