aboutsummaryrefslogtreecommitdiff
path: root/board/board.h
blob: 36d39fbc83e402ac17bc5b2bd19041cfcda51e0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef CLAK_BOARD_H_
#define CLAK_BOARD_H_

struct board {
	void (*on_down)(void);
	void (*on_up)(void);
	char *name;
};

struct board_data {
	void (*sound_play)(unsigned char *buffer, unsigned int buffer_len);
};

typedef struct board *(*fn_board_init)(struct board_data data);

#endif /* CLAK_BOARD_H_ */