From 3cbf2d87bfbf2d5c680525197dee861fe9a6c575 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 29 Nov 2011 02:26:22 -0500 Subject: libmaple/stm32: Add enum stm32_series, STM32_MCU_SERIES. enum stm32_series gives a tag to each STM32 series, including the ones we don't yet support. STM32_MCU_SERIES is a define which the series stm32.h header must provide, identifying the series of the MCU being targeted. Signed-off-by: Marti Bolivar --- libmaple/stm32f1/include/series/stm32.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libmaple/stm32f1/include/series') diff --git a/libmaple/stm32f1/include/series/stm32.h b/libmaple/stm32f1/include/series/stm32.h index f0ca616..86f0294 100644 --- a/libmaple/stm32f1/include/series/stm32.h +++ b/libmaple/stm32f1/include/series/stm32.h @@ -66,9 +66,11 @@ extern "C" { #endif /* - * MCU-specific values. + * Series- and MCU-specific values. */ +#define STM32_MCU_SERIES STM32_SERIES_F1 + #if defined(MCU_STM32F103RB) # define STM32_NR_GPIO_PORTS 4 # define STM32_SRAM_END ((void*)0x20005000) -- cgit v1.2.3