aboutsummaryrefslogtreecommitdiffstats
path: root/src/split.h
blob: b8e26a58da410db2a5c12badc5cf2a5e151a2ec2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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);

void split_warn_master(const char *msg);

extern int split_role;