summaryrefslogtreecommitdiff
path: root/firmware/export/as3525.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-01-27 19:45:00 +0000
committerThomas Martitz <kugel@rockbox.org>2009-01-27 19:45:00 +0000
commit78e0e85ffb1fcedff9d2eb24146be1917bbc143d (patch)
tree482928f54fdd1099aaacf300a51251b1cf7c5a0f /firmware/export/as3525.h
parent067ef10c56fda804c803f5a06aa16d5611261d2a (diff)
downloadrockbox-78e0e85ffb1fcedff9d2eb24146be1917bbc143d.tar.gz
rockbox-78e0e85ffb1fcedff9d2eb24146be1917bbc143d.zip
Redo some parts of my previous commit, thanks Jens and Dave
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19869 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/as3525.h')
-rw-r--r--firmware/export/as3525.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/as3525.h b/firmware/export/as3525.h
index 70462c7e8e..062ac26eac 100644
--- a/firmware/export/as3525.h
+++ b/firmware/export/as3525.h
@@ -322,6 +322,8 @@ interface */
322#define GPIOA_IC (*(volatile unsigned char*)(GPIOA_BASE+0x41C)) 322#define GPIOA_IC (*(volatile unsigned char*)(GPIOA_BASE+0x41C))
323#define GPIOA_AFSEL (*(volatile unsigned char*)(GPIOA_BASE+0x420)) 323#define GPIOA_AFSEL (*(volatile unsigned char*)(GPIOA_BASE+0x420))
324#define GPIOA_PIN(a) (*(volatile unsigned char*)(GPIOA_BASE+(1<<((a)+2)))) 324#define GPIOA_PIN(a) (*(volatile unsigned char*)(GPIOA_BASE+(1<<((a)+2))))
325#define GPIOA_DATA (*(volatile unsigned char*)(GPIOA_BASE+(0xff<<2)))
326
325 327
326#define GPIOB_DIR (*(volatile unsigned char*)(GPIOB_BASE+0x400)) 328#define GPIOB_DIR (*(volatile unsigned char*)(GPIOB_BASE+0x400))
327#define GPIOB_IS (*(volatile unsigned char*)(GPIOB_BASE+0x404)) 329#define GPIOB_IS (*(volatile unsigned char*)(GPIOB_BASE+0x404))
@@ -333,6 +335,7 @@ interface */
333#define GPIOB_IC (*(volatile unsigned char*)(GPIOB_BASE+0x41C)) 335#define GPIOB_IC (*(volatile unsigned char*)(GPIOB_BASE+0x41C))
334#define GPIOB_AFSEL (*(volatile unsigned char*)(GPIOB_BASE+0x420)) 336#define GPIOB_AFSEL (*(volatile unsigned char*)(GPIOB_BASE+0x420))
335#define GPIOB_PIN(a) (*(volatile unsigned char*)(GPIOB_BASE+(1<<((a)+2)))) 337#define GPIOB_PIN(a) (*(volatile unsigned char*)(GPIOB_BASE+(1<<((a)+2))))
338#define GPIOB_DATA (*(volatile unsigned char*)(GPIOB_BASE+(0xff<<2)))
336 339
337#define GPIOC_DIR (*(volatile unsigned char*)(GPIOC_BASE+0x400)) 340#define GPIOC_DIR (*(volatile unsigned char*)(GPIOC_BASE+0x400))
338#define GPIOC_IS (*(volatile unsigned char*)(GPIOC_BASE+0x404)) 341#define GPIOC_IS (*(volatile unsigned char*)(GPIOC_BASE+0x404))
@@ -344,6 +347,7 @@ interface */
344#define GPIOC_IC (*(volatile unsigned char*)(GPIOC_BASE+0x41C)) 347#define GPIOC_IC (*(volatile unsigned char*)(GPIOC_BASE+0x41C))
345#define GPIOC_AFSEL (*(volatile unsigned char*)(GPIOC_BASE+0x420)) 348#define GPIOC_AFSEL (*(volatile unsigned char*)(GPIOC_BASE+0x420))
346#define GPIOC_PIN(a) (*(volatile unsigned char*)(GPIOC_BASE+(1<<((a)+2)))) 349#define GPIOC_PIN(a) (*(volatile unsigned char*)(GPIOC_BASE+(1<<((a)+2))))
350#define GPIOC_DATA (*(volatile unsigned char*)(GPIOC_BASE+(0xff<<2)))
347 351
348#define GPIOD_DIR (*(volatile unsigned char*)(GPIOD_BASE+0x400)) 352#define GPIOD_DIR (*(volatile unsigned char*)(GPIOD_BASE+0x400))
349#define GPIOD_IS (*(volatile unsigned char*)(GPIOD_BASE+0x404)) 353#define GPIOD_IS (*(volatile unsigned char*)(GPIOD_BASE+0x404))
@@ -355,6 +359,7 @@ interface */
355#define GPIOD_IC (*(volatile unsigned char*)(GPIOD_BASE+0x41C)) 359#define GPIOD_IC (*(volatile unsigned char*)(GPIOD_BASE+0x41C))
356#define GPIOD_AFSEL (*(volatile unsigned char*)(GPIOD_BASE+0x420)) 360#define GPIOD_AFSEL (*(volatile unsigned char*)(GPIOD_BASE+0x420))
357#define GPIOD_PIN(a) (*(volatile unsigned char*)(GPIOD_BASE+(1<<((a)+2)))) 361#define GPIOD_PIN(a) (*(volatile unsigned char*)(GPIOD_BASE+(1<<((a)+2))))
362#define GPIOD_DATA (*(volatile unsigned char*)(GPIOD_BASE+(0xff<<2)))
358 363
359/* ARM PL172 Memory Controller registers */ 364/* ARM PL172 Memory Controller registers */
360 365