Helix config refine (#3374)

* helix config.h refine
This commit is contained in:
MakotoKurauchi authored and Drashna Jaelre committed 2018-07-12 10:23:30 -07:00
1 parent e3299db9e3
commit f30d6dd785
19 files changed
+85 -58

No files matched your search

+4 -2
View File
@@ -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
}