aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/stm32f1
diff options
context:
space:
mode:
authorAnton Eltchaninov <anton.eltchaninov@gmail.com>2012-04-26 11:17:40 +0700
committerMarti Bolivar <mbolivar@leaflabs.com>2012-05-03 14:09:05 -0400
commita81a02257d69454412d4ef062b56a3cc5c758815 (patch)
treef8d9fc43d4f85efb6542235713cf7a931bdb0f26 /libmaple/stm32f1
parent6ae19973da18ae67db0f0495c6b3cdf44797e2c8 (diff)
downloadlibrambutan-a81a02257d69454412d4ef062b56a3cc5c758815.tar.gz
librambutan-a81a02257d69454412d4ef062b56a3cc5c758815.zip
STM32VLDiscovery support files
Signed-off-by: Anton Eltchaninov <anton.eltchaninov@gmail.com> Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/stm32f1')
-rw-r--r--libmaple/stm32f1/include/series/stm32.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libmaple/stm32f1/include/series/stm32.h b/libmaple/stm32f1/include/series/stm32.h
index eaf9287..76143a0 100644
--- a/libmaple/stm32f1/include/series/stm32.h
+++ b/libmaple/stm32f1/include/series/stm32.h
@@ -85,6 +85,12 @@ extern "C" {
# define STM32_SRAM_END ((void*)0x20010000)
# define STM32_HIGH_DENSITY
+#elif defined(MCU_STM32F100RB)
+# define STM32_F1_LINE STM32_F1_LINE_VALUE
+# define STM32_NR_GPIO_PORTS 4
+# define STM32_SRAM_END ((void*)0x20002000)
+# define STM32_MEDIUM_DENSITY
+
#else
#error "Unrecognized STM32F1 MCU, or no MCU specified. Add something like " \
"-DMCU_STM32F103RB to your compiler arguments."
@@ -143,6 +149,15 @@ extern "C" {
# define STM32_DELAY_US_MULT 12 /* FIXME: value is incorrect. */
# endif
#elif STM32_F1_LINE == STM32_F1_LINE_VALUE /* TODO */
+# ifndef STM32_PCLK1
+# define STM32_PCLK1 12000000U
+# endif
+# ifndef STM32_PCLK2
+# define STM32_PCLK2 24000000U
+# endif
+# ifndef STM32_DELAY_US_MULT
+# define STM32_DELAY_US_MULT 8 /* FIXME: value is incorrect. */
+# endif
#elif STM32_F1_LINE == STM32_F1_LINE_ACCESS /* TODO */
#elif STM32_F1_LINE == STM32_F1_LINE_CONNECTIVITY /* TODO */
#endif