aboutsummaryrefslogtreecommitdiffstats
path: root/src/split.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/split.h')
-rw-r--r--src/split.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/split.h b/src/split.h
index 420b93d..7912cd4 100644
--- a/src/split.h
+++ b/src/split.h
@@ -1,4 +1,12 @@
#pragma once
+#define LEFT 0
+#define RIGHT 1
+
+#define SLAVE 0
+#define MASTER 1
+
+#define SPLIT_OPP(x) ((x) == LEFT ? RIGHT : LEFT)
+
void split_init(void);
void split_task(void);