brewco/keyboard.h

Thu, 26 Nov 2015 22:47:42 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 26 Nov 2015 22:47:42 +0100
changeset 435
4b1ed6897d80
child 441
bde74a8f2ad7
permissions
-rw-r--r--

More configuration items added.

#ifndef	_KEYBOARD_H
#define	_KEYBOARD_H



/*
 * GPIO pins for the push buttons.
 */
#define	PANEL_RETURN	3
#define	PANEL_ENTER	4
#define	PANEL_DOWN	5
#define	PANEL_UP	6


/*
 * Key names
 */
#define	KEY_NONE	0
#define	KEY_UP		1
#define	KEY_DOWN	2
#define	KEY_RETURN	3
#define	KEY_ENTER	4
#define	KEY_ALL		99


int keycheck(void);

#ifdef HAVE_WIRINGPI_H
PI_THREAD (my_panel_loop);
#else
void *my_panel_loop(void *);
#endif

#endif

mercurial