From a9c20f5789c13b486d217024a020f9d6163e2d51 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 21 May 2008 08:42:11 +0000 Subject: Gigabeat S: 1) Rework event handling and static registration mechanism. No target- specific code in mc13783 driver. GPIO event driver interfaces more cleanly. 2) Somewhat related - enable thread priority for bootloader which is desireable here (ffs is used for GPIO event enabling anyway and that goes along with priority). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17593 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/imx31/gigabeat-s/gpio-target.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'firmware/target/arm/imx31/gigabeat-s/gpio-target.h') diff --git a/firmware/target/arm/imx31/gigabeat-s/gpio-target.h b/firmware/target/arm/imx31/gigabeat-s/gpio-target.h index 46e43af28d..797f9f4552 100644 --- a/firmware/target/arm/imx31/gigabeat-s/gpio-target.h +++ b/firmware/target/arm/imx31/gigabeat-s/gpio-target.h @@ -21,11 +21,22 @@ #ifndef GPIO_TARGET_H #define GPIO_TARGET_H -#define GPIO_EVENT_MASK (USE_GPIO1_EVENTS) - +/* MC13783 GPIO pin info for this target */ #define MC13783_GPIO_NUM GPIO1_NUM #define MC13783_GPIO_ISR GPIO1_ISR #define MC13783_GPIO_LINE 31 -#define MC13783_EVENT_ID 0 + +/* Declare event indexes in priority order in a packed array */ +enum gpio_event_ids +{ + /* GPIO1 event IDs */ + MC13783_EVENT_ID = GPIO1_EVENT_FIRST, + /* GPIO2 event IDs */ + /* none defined */ + /* GPIO3 event IDs */ + /* none defined */ +}; + +void mc13783_event(void); #endif /* GPIO_TARGET_H */ -- cgit v1.2.3