diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-05-21 08:42:11 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-05-21 08:42:11 +0000 |
commit | a9c20f5789c13b486d217024a020f9d6163e2d51 (patch) | |
tree | 5da52ca9cc7a28ba21ced042cb739e6160d5f87b /firmware/target/arm/imx31/gigabeat-s/gpio-target.h | |
parent | 5f796087b009fee1ae60904b0355cc7febe3330f (diff) | |
download | rockbox-a9c20f5789c13b486d217024a020f9d6163e2d51.tar.gz rockbox-a9c20f5789c13b486d217024a020f9d6163e2d51.zip |
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
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/gpio-target.h')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/gpio-target.h | 17 |
1 files changed, 14 insertions, 3 deletions
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 @@ | |||
21 | #ifndef GPIO_TARGET_H | 21 | #ifndef GPIO_TARGET_H |
22 | #define GPIO_TARGET_H | 22 | #define GPIO_TARGET_H |
23 | 23 | ||
24 | #define GPIO_EVENT_MASK (USE_GPIO1_EVENTS) | 24 | /* MC13783 GPIO pin info for this target */ |
25 | |||
26 | #define MC13783_GPIO_NUM GPIO1_NUM | 25 | #define MC13783_GPIO_NUM GPIO1_NUM |
27 | #define MC13783_GPIO_ISR GPIO1_ISR | 26 | #define MC13783_GPIO_ISR GPIO1_ISR |
28 | #define MC13783_GPIO_LINE 31 | 27 | #define MC13783_GPIO_LINE 31 |
29 | #define MC13783_EVENT_ID 0 | 28 | |
29 | /* Declare event indexes in priority order in a packed array */ | ||
30 | enum gpio_event_ids | ||
31 | { | ||
32 | /* GPIO1 event IDs */ | ||
33 | MC13783_EVENT_ID = GPIO1_EVENT_FIRST, | ||
34 | /* GPIO2 event IDs */ | ||
35 | /* none defined */ | ||
36 | /* GPIO3 event IDs */ | ||
37 | /* none defined */ | ||
38 | }; | ||
39 | |||
40 | void mc13783_event(void); | ||
30 | 41 | ||
31 | #endif /* GPIO_TARGET_H */ | 42 | #endif /* GPIO_TARGET_H */ |