aboutsummaryrefslogtreecommitdiff
path: root/keyboards/deltasplit75/serial.h
diff options
context:
space:
mode:
authorZeal Jagannatha <zealjagannatha@gmail.com>2017-08-01 13:36:44 -0700
committerJack Humbert <jack.humb@gmail.com>2017-08-01 16:44:29 -0400
commitdd3803f334eced4feaf3d25ff7cff9303d9a26f2 (patch)
treed958b6de4ab988cef1aaa706216bd1e70a5284f3 /keyboards/deltasplit75/serial.h
parentbd0a888133d7f7c701574ac467c0f4be71221cc7 (diff)
downloadqmk_firmware-dd3803f334eced4feaf3d25ff7cff9303d9a26f2.tar.gz
qmk_firmware-dd3803f334eced4feaf3d25ff7cff9303d9a26f2.zip
Normalize all line endings
Diffstat (limited to 'keyboards/deltasplit75/serial.h')
-rw-r--r--keyboards/deltasplit75/serial.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/keyboards/deltasplit75/serial.h b/keyboards/deltasplit75/serial.h
index ab2ea0a09..6ef52019a 100644
--- a/keyboards/deltasplit75/serial.h
+++ b/keyboards/deltasplit75/serial.h
@@ -1,26 +1,26 @@
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" 4#include "config.h"
5#include <stdbool.h> 5#include <stdbool.h>
6 6
7/* TODO: some defines for interrupt setup */ 7/* TODO: some defines for interrupt setup */
8#define SERIAL_PIN_DDR DDRD 8#define SERIAL_PIN_DDR DDRD
9#define SERIAL_PIN_PORT PORTD 9#define SERIAL_PIN_PORT PORTD
10#define SERIAL_PIN_INPUT PIND 10#define SERIAL_PIN_INPUT PIND
11#define SERIAL_PIN_MASK _BV(PD0) 11#define SERIAL_PIN_MASK _BV(PD0)
12#define SERIAL_PIN_INTERRUPT INT0_vect 12#define SERIAL_PIN_INTERRUPT INT0_vect
13 13
14#define SERIAL_SLAVE_BUFFER_LENGTH ((MATRIX_COLS+7)/8 *MATRIX_ROWS/2) 14#define SERIAL_SLAVE_BUFFER_LENGTH ((MATRIX_COLS+7)/8 *MATRIX_ROWS/2)
15#define SERIAL_MASTER_BUFFER_LENGTH 1 15#define SERIAL_MASTER_BUFFER_LENGTH 1
16 16
17// Buffers for master - slave communication 17// Buffers for master - slave communication
18extern volatile uint8_t serial_slave_buffer[SERIAL_SLAVE_BUFFER_LENGTH]; 18extern volatile uint8_t serial_slave_buffer[SERIAL_SLAVE_BUFFER_LENGTH];
19extern volatile uint8_t serial_master_buffer[SERIAL_MASTER_BUFFER_LENGTH]; 19extern volatile uint8_t serial_master_buffer[SERIAL_MASTER_BUFFER_LENGTH];
20 20
21void serial_master_init(void); 21void serial_master_init(void);
22void serial_slave_init(void); 22void serial_slave_init(void);
23int serial_update_buffers(void); 23int serial_update_buffers(void);
24bool serial_slave_data_corrupt(void); 24bool serial_slave_data_corrupt(void);
25 25
26#endif 26#endif