aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/gpio.h
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-08-31 17:17:57 -0400
committerbnewbold <bnewbold@robocracy.org>2010-08-31 17:17:57 -0400
commite03d58f4dab4176514924baa3a1ff430bf5819b8 (patch)
treeb5c8269c34ab3bb4da0f7c52dea7049966753fb3 /libmaple/gpio.h
parent01c38f5567bf624413d901c2b287e63cdccd03a6 (diff)
downloadlibrambutan-e03d58f4dab4176514924baa3a1ff430bf5819b8.tar.gz
librambutan-e03d58f4dab4176514924baa3a1ff430bf5819b8.zip
Further wirish portability progress
Sort of ugly changes. Compiles but untested.
Diffstat (limited to 'libmaple/gpio.h')
-rw-r--r--libmaple/gpio.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libmaple/gpio.h b/libmaple/gpio.h
index d1d0050..9099c9b 100644
--- a/libmaple/gpio.h
+++ b/libmaple/gpio.h
@@ -44,13 +44,13 @@
* - After reset, the alternate functions are not active and IO prts
* are set to Input Floating mode */
-#define GPIOA_BASE (GPIO_Port*)0x40010800
-#define GPIOB_BASE (GPIO_Port*)0x40010C00
-#define GPIOC_BASE (GPIO_Port*)0x40011000
-#define GPIOD_BASE (GPIO_Port*)0x40011400
-#define GPIOE_BASE (GPIO_Port*)0x40011800 // High-density devices only
-#define GPIOF_BASE (GPIO_Port*)0x40011C00 // High-density devices only
-#define GPIOG_BASE (GPIO_Port*)0x40012000 // High-density devices only
+#define GPIOA_BASE (GPIO_Port*)0x40010800
+#define GPIOB_BASE (GPIO_Port*)0x40010C00
+#define GPIOC_BASE (GPIO_Port*)0x40011000
+#define GPIOD_BASE (GPIO_Port*)0x40011400
+#define GPIOE_BASE (GPIO_Port*)0x40011800 // High-density devices only
+#define GPIOF_BASE (GPIO_Port*)0x40011C00 // High-density devices only
+#define GPIOG_BASE (GPIO_Port*)0x40012000 // High-density devices only
#define GPIO_SPEED_50MHZ (0x3)