aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/include
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-01-10 13:51:48 -0500
committerMarti Bolivar <mbolivar@leaflabs.com>2012-04-11 16:56:53 -0400
commit0ac67559bb4d69557c866bd6bdde4a9402bc2ff0 (patch)
treea431fc89cfbe159aa5b547a9f00fcb2f61ad76d9 /libmaple/include
parent59e02b35a7714a6d10afbf33dd4ea933cfaebab4 (diff)
downloadlibrambutan-0ac67559bb4d69557c866bd6bdde4a9402bc2ff0.tar.gz
librambutan-0ac67559bb4d69557c866bd6bdde4a9402bc2ff0.zip
stm32f2/stm32.h: Add support for STM32F207IG.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/include')
-rw-r--r--libmaple/include/libmaple/stm32.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/libmaple/include/libmaple/stm32.h b/libmaple/include/libmaple/stm32.h
index 4c0898b..3f86faa 100644
--- a/libmaple/include/libmaple/stm32.h
+++ b/libmaple/include/libmaple/stm32.h
@@ -36,15 +36,20 @@
extern "C" {
#endif
-/**
- * @brief STM32 series identifiers.
+/*
+ * STM32 series identifiers.
+ *
+ * Don't make these into an enum; the preprocessor needs them.
*/
-typedef enum stm32_series {
- STM32_SERIES_F1, /**< F1 series */
- STM32_SERIES_F2, /**< F2 series */
- STM32_SERIES_L1, /**< L1 series */
- STM32_SERIES_F4, /**< F4 series */
-} stm32_series;
+
+/** STM32F1 series. */
+#define STM32_SERIES_F1 0
+/** STM32F2 series. */
+#define STM32_SERIES_F2 1
+/** STM32L1 series. */
+#define STM32_SERIES_L1 2
+/** STM32F4 series. */
+#define STM32_SERIES_F4 3
/* The series header is responsible for defining:
*
@@ -83,7 +88,11 @@ typedef enum stm32_series {
*/
/**
- * @brief enum stm32_series value for the MCU being targeted.
+ * @brief STM32 series value for the MCU being targeted.
+ *
+ * At time of writing, allowed values are: STM32_SERIES_F1,
+ * STM32_SERIES_F2. This set of values will expand as libmaple adds
+ * support for more STM32 series MCUs.
*/
#define STM32_MCU_SERIES