diff options
| author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-09-07 16:16:08 -0400 |
|---|---|---|
| committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-09-07 23:34:24 -0400 |
| commit | aa4f3b6645a17c98aa4679323208ed8636ba89b1 (patch) | |
| tree | de4f1a730b7851342e9dd6c4a72252eaf335ff4c | |
| parent | aad2377ae3404899ae3816396b5ca95efdfbaf55 (diff) | |
stm32.h: Add STM32_SRAM_END.
| -rw-r--r-- | libmaple/stm32.h | 12 |
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 |
