summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/gpio-imx31.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2009-03-22 01:50:48 +0000
committerMichael Sevakis <jethead71@rockbox.org>2009-03-22 01:50:48 +0000
commitb7f7655dc2ae979fee8b01ed894224e5c2f7c719 (patch)
tree6540a83276514c2ea27b9c633ac9872588e126be /firmware/target/arm/imx31/gigabeat-s/gpio-imx31.c
parent6a76ebbab10594f425edbd26e1fa35b0e37a61e5 (diff)
downloadrockbox-b7f7655dc2ae979fee8b01ed894224e5c2f7c719.tar.gz
rockbox-b7f7655dc2ae979fee8b01ed894224e5c2f7c719.zip
imx31/mc13783: Do some housekeeping with register macros, function names and other defines. No functional changes (except to alter a couple int priorities).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20442 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/gpio-imx31.c')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/gpio-imx31.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/gpio-imx31.c b/firmware/target/arm/imx31/gigabeat-s/gpio-imx31.c
index 090182bed4..944f70eae3 100644
--- a/firmware/target/arm/imx31/gigabeat-s/gpio-imx31.c
+++ b/firmware/target/arm/imx31/gigabeat-s/gpio-imx31.c
@@ -55,21 +55,21 @@ static struct gpio_module_descriptor
55#if (GPIO_EVENT_MASK & USE_GPIO1_EVENTS) 55#if (GPIO_EVENT_MASK & USE_GPIO1_EVENTS)
56 { 56 {
57 .base = (struct gpio_map *)GPIO1_BASE_ADDR, 57 .base = (struct gpio_map *)GPIO1_BASE_ADDR,
58 .ints = GPIO1, 58 .ints = INT_GPIO1,
59 .handler = GPIO1_HANDLER, 59 .handler = GPIO1_HANDLER,
60 }, 60 },
61#endif 61#endif
62#if (GPIO_EVENT_MASK & USE_GPIO2_EVENTS) 62#if (GPIO_EVENT_MASK & USE_GPIO2_EVENTS)
63 { 63 {
64 .base = (struct gpio_map *)GPIO2_BASE_ADDR, 64 .base = (struct gpio_map *)GPIO2_BASE_ADDR,
65 .ints = GPIO2, 65 .ints = INT_GPIO2,
66 .handler = GPIO2_HANDLER, 66 .handler = GPIO2_HANDLER,
67 }, 67 },
68#endif 68#endif
69#if (GPIO_EVENT_MASK & USE_GPIO3_EVENTS) 69#if (GPIO_EVENT_MASK & USE_GPIO3_EVENTS)
70 { 70 {
71 .base = (struct gpio_map *)GPIO3_BASE_ADDR, 71 .base = (struct gpio_map *)GPIO3_BASE_ADDR,
72 .ints = GPIO3, 72 .ints = INT_GPIO3,
73 .handler = GPIO3_HANDLER, 73 .handler = GPIO3_HANDLER,
74 }, 74 },
75#endif 75#endif
@@ -168,7 +168,7 @@ bool gpio_enable_event(enum gpio_event_ids id)
168 if (imr == 0) 168 if (imr == 0)
169 { 169 {
170 /* First enabled interrupt for this GPIO */ 170 /* First enabled interrupt for this GPIO */
171 avic_enable_int(desc->ints, IRQ, desc->list->ints_priority, 171 avic_enable_int(desc->ints, INT_TYPE_IRQ, desc->list->ints_priority,
172 desc->handler); 172 desc->handler);
173 } 173 }
174 174