From 54245b1b9c3030bfbc0cbbd311f231151a7aaa6e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 10 Nov 2014 07:23:09 -0600 Subject: [PATCH] Support for the STM32F103RG. From Murilo Ponte --- arch/arm/include/stm32/chip.h | 2 +- arch/arm/src/stm32/Kconfig | 7 +++++++ arch/arm/src/stm32/chip.h | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/stm32/chip.h b/arch/arm/include/stm32/chip.h index 12c90be7e9..ae2e44767a 100644 --- a/arch/arm/include/stm32/chip.h +++ b/arch/arm/include/stm32/chip.h @@ -685,7 +685,7 @@ */ #elif defined(CONFIG_ARCH_CHIP_STM32F103RC) || defined(CONFIG_ARCH_CHIP_STM32F103RD) || \ - defined(CONFIG_ARCH_CHIP_STM32F103RE) + defined(CONFIG_ARCH_CHIP_STM32F103RE) || defined(CONFIG_ARCH_CHIP_STM32F103RG) # undef CONFIG_STM32_STM32L15XX /* STM32L151xx and STM32L152xx family */ # undef CONFIG_STM32_ENERGYLITE /* STM32L EnergyLite family */ # define CONFIG_STM32_STM32F10XX 1 /* STM32F10xxx family */ diff --git a/arch/arm/src/stm32/Kconfig b/arch/arm/src/stm32/Kconfig index 6183d16add..61c78e2f2b 100644 --- a/arch/arm/src/stm32/Kconfig +++ b/arch/arm/src/stm32/Kconfig @@ -321,6 +321,13 @@ config ARCH_CHIP_STM32F103RE select STM32_PERFORMANCELINE select STM32_HIGHDENSITY +config ARCH_CHIP_STM32F103RG + bool "STM32F103RG" + select ARCH_CORTEXM3 + select STM32_STM32F10XX + select STM32_PERFORMANCELINE + select STM32_HIGHDENSITY + config ARCH_CHIP_STM32F103V8 bool "STM32F103V8" select ARCH_CORTEXM3 diff --git a/arch/arm/src/stm32/chip.h b/arch/arm/src/stm32/chip.h index 4554a9c61f..87225ce0c8 100644 --- a/arch/arm/src/stm32/chip.h +++ b/arch/arm/src/stm32/chip.h @@ -83,7 +83,8 @@ # elif defined(CONFIG_ARCH_CHIP_STM32F103RB) || \ defined(CONFIG_ARCH_CHIP_STM32F103RC) || \ defined(CONFIG_ARCH_CHIP_STM32F103RD) || \ - defined(CONFIG_ARCH_CHIP_STM32F103RE) + defined(CONFIG_ARCH_CHIP_STM32F103RE) || \ + defined(CONFIG_ARCH_CHIP_STM32F103RG) # include "chip/stm32f103r_pinmap.h" /* STM32F103VC, STM32F103VD, and STM32F103VE are all provided in 100 pin packages and differ