aboutsummaryrefslogtreecommitdiff
path: root/quantum/split_common/serial.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/split_common/serial.h')
-rw-r--r--quantum/split_common/serial.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/quantum/split_common/serial.h b/quantum/split_common/serial.h
index e566eb8a0..0b99f352d 100644
--- a/quantum/split_common/serial.h
+++ b/quantum/split_common/serial.h
@@ -1,21 +1,18 @@
1#ifndef MY_SERIAL_H 1#ifndef MY_SERIAL_H
2#define MY_SERIAL_H 2#define MY_SERIAL_H
3 3
4#include "config.h"
5#include <stdbool.h> 4#include <stdbool.h>
6 5
7/* TODO: some defines for interrupt setup */ 6// /////////////////////////////////////////////////////////////////
8#define SERIAL_PIN_DDR DDRD 7// Need Soft Serial defines in config.h
9#define SERIAL_PIN_PORT PORTD 8// /////////////////////////////////////////////////////////////////
10#define SERIAL_PIN_INPUT PIND 9// ex.
11#define SERIAL_PIN_MASK _BV(PD0) 10// /* Configuration of lower interface with the lower layer(hardware) of serial.c */
12#define SERIAL_PIN_INTERRUPT INT0_vect 11// #define SOFT_SERIAL_PIN ?? // ?? = D0,D1,D2,D3,E6
13 12//
14#define SERIAL_SLAVE_BUFFER_LENGTH MATRIX_ROWS/2 13// /* Configuration of upper interface with the upper layer of serial.c */
15#define SERIAL_MASTER_BUFFER_LENGTH 1 14// #define SERIAL_SLAVE_BUFFER_LENGTH MATRIX_ROWS/2
16 15// #define SERIAL_MASTER_BUFFER_LENGTH 1
17// Address location defines
18#define SERIAL_BACKLIT_START 0x00
19 16
20// Buffers for master - slave communication 17// Buffers for master - slave communication
21extern volatile uint8_t serial_slave_buffer[SERIAL_SLAVE_BUFFER_LENGTH]; 18extern volatile uint8_t serial_slave_buffer[SERIAL_SLAVE_BUFFER_LENGTH];