diff options
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 */ |