From 9d27584cb1bd59fa1063651d413feefdcc22d661 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 8 May 2012 11:47:50 -0400 Subject: 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 --- libmaple/stm32f1/include/series/stm32.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libmaple/stm32f1') 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. -- cgit v1.2.3