diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/as3525.h | 16 |
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 */ | |||
296 | 296 | ||
297 | /* GPIO registers */ | 297 | /* GPIO registers */ |
298 | 298 | ||
299 | #define GPIOA_DIR (*(volatile unsigned long*)(GPIOA_BASE+0x400)) | 299 | #define GPIOA_DIR (*(volatile unsigned char*)(GPIOA_BASE+0x400)) |
300 | #define GPIOA_AFSEL (*(volatile unsigned char*)(GPIOA_BASE+0x420)) | 300 | #define GPIOA_AFSEL (*(volatile unsigned char*)(GPIOA_BASE+0x420)) |
301 | #define GPIOA_PIN(a) (*(volatile unsigned long*)(GPIOA_BASE+4*(1<<(a)))) | 301 | #define GPIOA_PIN(a) (*(volatile unsigned char*)(GPIOA_BASE+4*(1<<(a)))) |
302 | 302 | ||
303 | #define GPIOB_DIR (*(volatile unsigned long*)(GPIOB_BASE+0x400)) | 303 | #define GPIOB_DIR (*(volatile unsigned char*)(GPIOB_BASE+0x400)) |
304 | #define GPIOB_AFSEL (*(volatile unsigned char*)(GPIOB_BASE+0x420)) | 304 | #define GPIOB_AFSEL (*(volatile unsigned char*)(GPIOB_BASE+0x420)) |
305 | #define GPIOB_PIN(a) (*(volatile unsigned long*)(GPIOB_BASE+4*(1<<(a)))) | 305 | #define GPIOB_PIN(a) (*(volatile unsigned char*)(GPIOB_BASE+4*(1<<(a)))) |
306 | 306 | ||
307 | #define GPIOC_DIR (*(volatile unsigned long*)(GPIOC_BASE+0x400)) | 307 | #define GPIOC_DIR (*(volatile unsigned char*)(GPIOC_BASE+0x400)) |
308 | #define GPIOC_AFSEL (*(volatile unsigned char*)(GPIOC_BASE+0x420)) | 308 | #define GPIOC_AFSEL (*(volatile unsigned char*)(GPIOC_BASE+0x420)) |
309 | #define GPIOC_PIN(a) (*(volatile unsigned long*)(GPIOC_BASE+4*(1<<(a)))) | 309 | #define GPIOC_PIN(a) (*(volatile unsigned char*)(GPIOC_BASE+4*(1<<(a)))) |
310 | 310 | ||
311 | #define GPIOD_DIR (*(volatile unsigned long*)(GPIOD_BASE+0x400)) | 311 | #define GPIOD_DIR (*(volatile unsigned char*)(GPIOD_BASE+0x400)) |
312 | #define GPIOD_AFSEL (*(volatile unsigned char*)(GPIOD_BASE+0x420)) | 312 | #define GPIOD_AFSEL (*(volatile unsigned char*)(GPIOD_BASE+0x420)) |
313 | #define GPIOD_PIN(a) (*(volatile unsigned long*)(GPIOD_BASE+4*(1<<(a)))) | 313 | #define GPIOD_PIN(a) (*(volatile unsigned char*)(GPIOD_BASE+4*(1<<(a)))) |
314 | 314 | ||
315 | #endif /*__AS3525_H__*/ | 315 | #endif /*__AS3525_H__*/ |