aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/stm32f1
diff options
context:
space:
mode:
authorGregwar <g.passault@gmail.com>2014-02-20 22:39:04 +0100
committerGregwar <g.passault@gmail.com>2014-02-20 22:39:04 +0100
commitdee88e422839ee0b2c5c17841feabc41fcc6b8ed (patch)
tree139ad7f660a566a73cc415d03a3ec86b2358f074 /libmaple/stm32f1
parent113d0de7eb0fea6939d8ac13f3cfc8cdfdd5d447 (diff)
downloadlibrambutan-dee88e422839ee0b2c5c17841feabc41fcc6b8ed.tar.gz
librambutan-dee88e422839ee0b2c5c17841feabc41fcc6b8ed.zip
Adding support for cm900 and opencm904 boards (robotis)
Signed-off-by: Grégoire Passault <g.passault@gmail.com>
Diffstat (limited to 'libmaple/stm32f1')
-rw-r--r--libmaple/stm32f1/include/series/stm32.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libmaple/stm32f1/include/series/stm32.h b/libmaple/stm32f1/include/series/stm32.h
index f6e96f8..40f2b79 100644
--- a/libmaple/stm32f1/include/series/stm32.h
+++ b/libmaple/stm32f1/include/series/stm32.h
@@ -98,6 +98,15 @@ extern "C" {
# define STM32_SRAM_END ((void*)0x20002000)
# define STM32_MEDIUM_DENSITY
+#elif defined(MCU_STM32F103C8)
+# 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
+# define STM32_F1_LINE STM32_F1_LINE_PERFORMANCE
+# define STM32_MEDIUM_DENSITY
+
#else
#warning "Unsupported or unspecified STM32F1 MCU."
#endif