summaryrefslogtreecommitdiff
path: root/firmware/export/as3525.h
diff options
context:
space:
mode:
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