diff options
Diffstat (limited to 'firmware/export/as3525.h')
-rw-r--r-- | firmware/export/as3525.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/export/as3525.h b/firmware/export/as3525.h index e44b4ed693..87e3fc43d7 100644 --- a/firmware/export/as3525.h +++ b/firmware/export/as3525.h | |||
@@ -343,7 +343,6 @@ CE lines | |||
343 | 343 | ||
344 | 344 | ||
345 | /* GPIO registers */ | 345 | /* GPIO registers */ |
346 | |||
347 | #define GPIOA_DIR (*(volatile unsigned char*)(GPIOA_BASE+0x400)) | 346 | #define GPIOA_DIR (*(volatile unsigned char*)(GPIOA_BASE+0x400)) |
348 | #define GPIOA_IS (*(volatile unsigned char*)(GPIOA_BASE+0x404)) | 347 | #define GPIOA_IS (*(volatile unsigned char*)(GPIOA_BASE+0x404)) |
349 | #define GPIOA_IBE (*(volatile unsigned char*)(GPIOA_BASE+0x408)) | 348 | #define GPIOA_IBE (*(volatile unsigned char*)(GPIOA_BASE+0x408)) |
@@ -354,6 +353,7 @@ CE lines | |||
354 | #define GPIOA_IC (*(volatile unsigned char*)(GPIOA_BASE+0x41C)) | 353 | #define GPIOA_IC (*(volatile unsigned char*)(GPIOA_BASE+0x41C)) |
355 | #define GPIOA_AFSEL (*(volatile unsigned char*)(GPIOA_BASE+0x420)) | 354 | #define GPIOA_AFSEL (*(volatile unsigned char*)(GPIOA_BASE+0x420)) |
356 | #define GPIOA_PIN(a) (*(volatile unsigned char*)(GPIOA_BASE+(1<<((a)+2)))) | 355 | #define GPIOA_PIN(a) (*(volatile unsigned char*)(GPIOA_BASE+(1<<((a)+2)))) |
356 | #define GPIOA_PIN_MASK(m) (*(volatile unsigned char *)(GPIOA_BASE+(((m)&0xff)<<2))) | ||
357 | #define GPIOA_DATA (*(volatile unsigned char*)(GPIOA_BASE+(0xff<<2))) | 357 | #define GPIOA_DATA (*(volatile unsigned char*)(GPIOA_BASE+(0xff<<2))) |
358 | 358 | ||
359 | 359 | ||
@@ -367,6 +367,7 @@ CE lines | |||
367 | #define GPIOB_IC (*(volatile unsigned char*)(GPIOB_BASE+0x41C)) | 367 | #define GPIOB_IC (*(volatile unsigned char*)(GPIOB_BASE+0x41C)) |
368 | #define GPIOB_AFSEL (*(volatile unsigned char*)(GPIOB_BASE+0x420)) | 368 | #define GPIOB_AFSEL (*(volatile unsigned char*)(GPIOB_BASE+0x420)) |
369 | #define GPIOB_PIN(a) (*(volatile unsigned char*)(GPIOB_BASE+(1<<((a)+2)))) | 369 | #define GPIOB_PIN(a) (*(volatile unsigned char*)(GPIOB_BASE+(1<<((a)+2)))) |
370 | #define GPIOB_PIN_MASK(m) (*(volatile unsigned char *)(GPIOB_BASE+(((m)&0xff)<<2))) | ||
370 | #define GPIOB_DATA (*(volatile unsigned char*)(GPIOB_BASE+(0xff<<2))) | 371 | #define GPIOB_DATA (*(volatile unsigned char*)(GPIOB_BASE+(0xff<<2))) |
371 | 372 | ||
372 | #define GPIOC_DIR (*(volatile unsigned char*)(GPIOC_BASE+0x400)) | 373 | #define GPIOC_DIR (*(volatile unsigned char*)(GPIOC_BASE+0x400)) |
@@ -379,6 +380,7 @@ CE lines | |||
379 | #define GPIOC_IC (*(volatile unsigned char*)(GPIOC_BASE+0x41C)) | 380 | #define GPIOC_IC (*(volatile unsigned char*)(GPIOC_BASE+0x41C)) |
380 | #define GPIOC_AFSEL (*(volatile unsigned char*)(GPIOC_BASE+0x420)) | 381 | #define GPIOC_AFSEL (*(volatile unsigned char*)(GPIOC_BASE+0x420)) |
381 | #define GPIOC_PIN(a) (*(volatile unsigned char*)(GPIOC_BASE+(1<<((a)+2)))) | 382 | #define GPIOC_PIN(a) (*(volatile unsigned char*)(GPIOC_BASE+(1<<((a)+2)))) |
383 | #define GPIOC_PIN_MASK(m) (*(volatile unsigned char *)(GPIOC_BASE+(((m)&0xff)<<2))) | ||
382 | #define GPIOC_DATA (*(volatile unsigned char*)(GPIOC_BASE+(0xff<<2))) | 384 | #define GPIOC_DATA (*(volatile unsigned char*)(GPIOC_BASE+(0xff<<2))) |
383 | 385 | ||
384 | #define GPIOD_DIR (*(volatile unsigned char*)(GPIOD_BASE+0x400)) | 386 | #define GPIOD_DIR (*(volatile unsigned char*)(GPIOD_BASE+0x400)) |
@@ -391,6 +393,7 @@ CE lines | |||
391 | #define GPIOD_IC (*(volatile unsigned char*)(GPIOD_BASE+0x41C)) | 393 | #define GPIOD_IC (*(volatile unsigned char*)(GPIOD_BASE+0x41C)) |
392 | #define GPIOD_AFSEL (*(volatile unsigned char*)(GPIOD_BASE+0x420)) | 394 | #define GPIOD_AFSEL (*(volatile unsigned char*)(GPIOD_BASE+0x420)) |
393 | #define GPIOD_PIN(a) (*(volatile unsigned char*)(GPIOD_BASE+(1<<((a)+2)))) | 395 | #define GPIOD_PIN(a) (*(volatile unsigned char*)(GPIOD_BASE+(1<<((a)+2)))) |
396 | #define GPIOD_PIN_MASK(m) (*(volatile unsigned char *)(GPIOD_BASE+(((m)&0xff)<<2))) | ||
394 | #define GPIOD_DATA (*(volatile unsigned char*)(GPIOD_BASE+(0xff<<2))) | 397 | #define GPIOD_DATA (*(volatile unsigned char*)(GPIOD_BASE+(0xff<<2))) |
395 | 398 | ||
396 | /* ARM PL172 Memory Controller registers */ | 399 | /* ARM PL172 Memory Controller registers */ |