1
0

add quantum/split_common/serial_backward_compatibility.h

SERIAL_PIN_PORT and other PIN define move to serial_backward_compatibility.h
SERIAL_BACKLIT_START move to split_util.h
This commit is contained in:
mtei
2018-11-12 23:36:08 +09:00
parent ad7aa7ee1b
commit a7af2ad718
3 changed files with 30 additions and 13 deletions

View File

@@ -0,0 +1,15 @@
/* serial.h backward compatibility */
#ifndef SERIAL_PIN_DDR
#define SERIAL_PIN_DDR DDRD
#define SERIAL_PIN_PORT PORTD
#define SERIAL_PIN_INPUT PIND
#define SERIAL_PIN_MASK _BV(PD0)
#define SERIAL_PIN_INTERRUPT INT0_vect
#endif
#ifndef SERIAL_SLAVE_BUFFER_LENGTH
#define SERIAL_SLAVE_BUFFER_LENGTH MATRIX_ROWS/2
#define SERIAL_MASTER_BUFFER_LENGTH 1
#endif