barebox/include/gpio_keys.h
Jean-Christophe PLAGNIOL-VILLARD ef654d1617 add gpio keyboard support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-02-16 18:17:30 +08:00

31 lines
436 B
C

#ifndef _GPIO_KEYS_H
#define _GPIO_KEYS_H
#include <poller.h>
#include <kfifo.h>
struct gpio_keys_button {
/* Configuration parameters */
int code;
int gpio;
int active_low;
/* internal */
int previous_state;
};
struct gpio_keys_platform_data {
struct gpio_keys_button *buttons;
int nbuttons;
/* optional */
int fifo_size;
struct kfifo *recv_fifo;
struct poller_struct poller;
struct console_device cdev;
};
#endif