aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-09-07 16:16:08 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-09-07 23:34:24 -0400
commit4407a9622b5c024957bb619eafd2b655e17cf3f7 (patch)
treede4f1a730b7851342e9dd6c4a72252eaf335ff4c
parentd91cadb11a9fcf046e80ba398812ee3f285158c0 (diff)
downloadlibrambutan-4407a9622b5c024957bb619eafd2b655e17cf3f7.tar.gz
librambutan-4407a9622b5c024957bb619eafd2b655e17cf3f7.zip
stm32.h: Add STM32_SRAM_END.
-rw-r--r--libmaple/stm32.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libmaple/stm32.h b/libmaple/stm32.h
index 1fe2b50..3b54dbc 100644
--- a/libmaple/stm32.h
+++ b/libmaple/stm32.h
@@ -123,6 +123,14 @@
*/
#define STM32_DELAY_US_MULT
+ /**
+ * @brief Pointer to end of built-in SRAM.
+ *
+ * Points to the address which is 1 byte past the last valid
+ * SRAM address.
+ */
+ #define STM32_SRAM_END
+
/** Deprecated. Use STM32_NR_GPIO_PORTS instead. */
#define NR_GPIO_PORTS
/** Deprecated. Use STM32_DELAY_US_MULT instead. */
@@ -135,6 +143,7 @@
#define STM32_NR_GPIO_PORTS 4
#define STM32_DELAY_US_MULT 12
+ #define STM32_SRAM_END ((void*)0x20005000)
#define NR_GPIO_PORTS STM32_NR_GPIO_PORTS
#define DELAY_US_MULT STM32_DELAY_US_MULT
@@ -144,6 +153,7 @@
#define STM32_NR_GPIO_PORTS 7
#define STM32_DELAY_US_MULT 12
+ #define STM32_SRAM_END ((void*)0x20010000)
#define NR_GPIO_PORTS STM32_NR_GPIO_PORTS
#define DELAY_US_MULT STM32_DELAY_US_MULT
@@ -156,6 +166,7 @@
* Mini, so we'll live with this for now. */
#define STM32_NR_GPIO_PORTS 3
#define STM32_DELAY_US_MULT 12
+ #define STM32_SRAM_END ((void*)0x20005000)
#define NR_GPIO_PORTS STM32_NR_GPIO_PORTS
#define DELAY_US_MULT STM32_DELAY_US_MULT
@@ -165,6 +176,7 @@
#define STM32_NR_GPIO_PORTS 4
#define STM32_DELAY_US_MULT 12
+ #define STM32_SRAM_END ((void*)0x20010000)
#define NR_GPIO_PORTS STM32_NR_GPIO_PORTS
#define DELAY_US_MULT STM32_DELAY_US_MULT