summaryrefslogtreecommitdiffstats
path: root/firmware/export/as3525.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-10-19 12:47:58 +0000
committerDave Chapman <dave@dchapman.com>2008-10-19 12:47:58 +0000
commit14ee31865e366dc19fb87caf4877a8d93305a01b (patch)
tree285c45711911c21d071a69ee5e6e97e4ef570bfa /firmware/export/as3525.h
parent2f50cd58b9fb7cd75448622b5ac222cdcad6bc6f (diff)
downloadrockbox-14ee31865e366dc19fb87caf4877a8d93305a01b.tar.gz
rockbox-14ee31865e366dc19fb87caf4877a8d93305a01b.tar.bz2
rockbox-14ee31865e366dc19fb87caf4877a8d93305a01b.zip
The GPIO registers are 8-bit, so define them as such.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18835 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/as3525.h')
-rw-r--r--firmware/export/as3525.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/firmware/export/as3525.h b/firmware/export/as3525.h
index 237656d14f..2453c33ec0 100644
--- a/firmware/export/as3525.h
+++ b/firmware/export/as3525.h
@@ -296,20 +296,20 @@ interface */
/* GPIO registers */
-#define GPIOA_DIR (*(volatile unsigned long*)(GPIOA_BASE+0x400))
+#define GPIOA_DIR (*(volatile unsigned char*)(GPIOA_BASE+0x400))
#define GPIOA_AFSEL (*(volatile unsigned char*)(GPIOA_BASE+0x420))
-#define GPIOA_PIN(a) (*(volatile unsigned long*)(GPIOA_BASE+4*(1<<(a))))
+#define GPIOA_PIN(a) (*(volatile unsigned char*)(GPIOA_BASE+4*(1<<(a))))
-#define GPIOB_DIR (*(volatile unsigned long*)(GPIOB_BASE+0x400))
+#define GPIOB_DIR (*(volatile unsigned char*)(GPIOB_BASE+0x400))
#define GPIOB_AFSEL (*(volatile unsigned char*)(GPIOB_BASE+0x420))
-#define GPIOB_PIN(a) (*(volatile unsigned long*)(GPIOB_BASE+4*(1<<(a))))
+#define GPIOB_PIN(a) (*(volatile unsigned char*)(GPIOB_BASE+4*(1<<(a))))
-#define GPIOC_DIR (*(volatile unsigned long*)(GPIOC_BASE+0x400))
+#define GPIOC_DIR (*(volatile unsigned char*)(GPIOC_BASE+0x400))
#define GPIOC_AFSEL (*(volatile unsigned char*)(GPIOC_BASE+0x420))
-#define GPIOC_PIN(a) (*(volatile unsigned long*)(GPIOC_BASE+4*(1<<(a))))
+#define GPIOC_PIN(a) (*(volatile unsigned char*)(GPIOC_BASE+4*(1<<(a))))
-#define GPIOD_DIR (*(volatile unsigned long*)(GPIOD_BASE+0x400))
+#define GPIOD_DIR (*(volatile unsigned char*)(GPIOD_BASE+0x400))
#define GPIOD_AFSEL (*(volatile unsigned char*)(GPIOD_BASE+0x420))
-#define GPIOD_PIN(a) (*(volatile unsigned long*)(GPIOD_BASE+4*(1<<(a))))
+#define GPIOD_PIN(a) (*(volatile unsigned char*)(GPIOD_BASE+4*(1<<(a))))
#endif /*__AS3525_H__*/