diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-23 17:41:04 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-26 02:42:06 -0400 |
commit | 47f8d216d0efe8b523bf3cdd00816fb9965d22a7 (patch) | |
tree | 651196087275c614353fbce2a70c3dd8fd58016b /libmaple/gpio.h | |
parent | 41a93d13f0c89b00b90a492c24c9576e93cebafd (diff) | |
download | librambutan-47f8d216d0efe8b523bf3cdd00816fb9965d22a7.tar.gz librambutan-47f8d216d0efe8b523bf3cdd00816fb9965d22a7.zip |
Tweak some register map base pointers.
Replace
#define XXX_BASE ((xxx_reg_map*)0xDEADBEEF)
with
#define XXX_BASE ((struct xxx_reg_map*)0xDEADBEEF)
for increased GDB-friendliness.
Diffstat (limited to 'libmaple/gpio.h')
-rw-r--r-- | libmaple/gpio.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libmaple/gpio.h b/libmaple/gpio.h index 7e670e6..6c5be1f 100644 --- a/libmaple/gpio.h +++ b/libmaple/gpio.h @@ -99,20 +99,20 @@ extern gpio_dev* const GPIOG; #endif /** GPIO port A register map base pointer */ -#define GPIOA_BASE ((gpio_reg_map*)0x40010800) +#define GPIOA_BASE ((struct gpio_reg_map*)0x40010800) /** GPIO port B register map base pointer */ -#define GPIOB_BASE ((gpio_reg_map*)0x40010C00) +#define GPIOB_BASE ((struct gpio_reg_map*)0x40010C00) /** GPIO port C register map base pointer */ -#define GPIOC_BASE ((gpio_reg_map*)0x40011000) +#define GPIOC_BASE ((struct gpio_reg_map*)0x40011000) /** GPIO port D register map base pointer */ -#define GPIOD_BASE ((gpio_reg_map*)0x40011400) +#define GPIOD_BASE ((struct gpio_reg_map*)0x40011400) #ifdef STM32_HIGH_DENSITY /** GPIO port E register map base pointer */ -#define GPIOE_BASE ((gpio_reg_map*)0x40011800) +#define GPIOE_BASE ((struct gpio_reg_map*)0x40011800) /** GPIO port F register map base pointer */ -#define GPIOF_BASE ((gpio_reg_map*)0x40011C00) +#define GPIOF_BASE ((struct gpio_reg_map*)0x40011C00) /** GPIO port G register map base pointer */ -#define GPIOG_BASE ((gpio_reg_map*)0x40012000) +#define GPIOG_BASE ((struct gpio_reg_map*)0x40012000) #endif /* @@ -235,7 +235,7 @@ typedef struct afio_reg_map { } afio_reg_map; /** AFIO register map base pointer. */ -#define AFIO_BASE ((afio_reg_map *)0x40010000) +#define AFIO_BASE ((struct afio_reg_map *)0x40010000) /* * AFIO register bit definitions |