aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-05-08 11:47:50 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-05-08 11:47:50 -0400
commit9d27584cb1bd59fa1063651d413feefdcc22d661 (patch)
tree2d0cea4af1ffcf37c1d05b467968c50e7a13085a /libmaple
parentedf892e454c644b258cb14ad8a0d3a52f00a4505 (diff)
downloadlibrambutan-9d27584cb1bd59fa1063651d413feefdcc22d661.tar.gz
librambutan-9d27584cb1bd59fa1063651d413feefdcc22d661.zip
stm32f1: stm32.h: Tweak STM32_F1_LINE_xxx for mnemonic value.
Change the values of the STM32_F1_LINE_xxx macros to match the part number better (so performance line, or F103s, now have STM32_F1_LINE_PERFORMANCE==3, F100s have STM32_F1_LINE_VALUE==0, etc.). This will hopefully make debugging or error checking easier for someone at some point. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/stm32f1/include/series/stm32.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libmaple/stm32f1/include/series/stm32.h b/libmaple/stm32f1/include/series/stm32.h
index 6bf836c..999abab 100644
--- a/libmaple/stm32f1/include/series/stm32.h
+++ b/libmaple/stm32f1/include/series/stm32.h
@@ -44,16 +44,16 @@ extern "C" {
*
* You can use these F1 line defines if porting libmaple to support
* MCUs on other lines. */
-/** STM32F1 performance line (STM32F103 MCUs). */
-#define STM32_F1_LINE_PERFORMANCE 0
/** STM32F1 value line (STM32F100 MCUs). */
-#define STM32_F1_LINE_VALUE 1
+#define STM32_F1_LINE_VALUE 0
/** STM32F1 access line (STM32F101 MCUs). */
-#define STM32_F1_LINE_ACCESS 2
+#define STM32_F1_LINE_ACCESS 1
/** STM32F1 USB access line (STM32F102 MCUs). */
-#define STM32_F1_LINE_USB_ACCESS 3
+#define STM32_F1_LINE_USB_ACCESS 2
+/** STM32F1 performance line (STM32F103 MCUs). */
+#define STM32_F1_LINE_PERFORMANCE 3
/** STM32F1 connectivity line (STM32F105/F107 MCUs). */
-#define STM32_F1_LINE_CONNECTIVITY 4
+#define STM32_F1_LINE_CONNECTIVITY 5
/*
* MCU-specific values.