From 20d6ead96939ecc33b191b2a3fe9c624a97842fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ignacio=20Alamos=20Aste?= Date: Fri, 26 Feb 2016 17:00:11 +0100 Subject: [PATCH] stm32f072rb: Added support for CPU --- cpu/stm32f0/include/cpu_conf.h | 3 +++ cpu/stm32f0/ldscripts/stm32f072rb.ld | 30 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 cpu/stm32f0/ldscripts/stm32f072rb.ld diff --git a/cpu/stm32f0/include/cpu_conf.h b/cpu/stm32f0/include/cpu_conf.h index d99e8b5211..7e7077ae3c 100644 --- a/cpu/stm32f0/include/cpu_conf.h +++ b/cpu/stm32f0/include/cpu_conf.h @@ -27,6 +27,9 @@ #ifdef CPU_MODEL_STM32F091RC #include "stm32f091xc.h" #endif +#ifdef CPU_MODEL_STM32F072RB +#include "stm32f072xb.h" +#endif #ifdef __cplusplus extern "C" { diff --git a/cpu/stm32f0/ldscripts/stm32f072rb.ld b/cpu/stm32f0/ldscripts/stm32f072rb.ld new file mode 100644 index 0000000000..458b0fac86 --- /dev/null +++ b/cpu/stm32f0/ldscripts/stm32f072rb.ld @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2015 Freie Universität Berlin + * + * This file is subject to the terms and conditions of the GNU Lesser + * General Public License v2.1. See the file LICENSE in the top level + * directory for more details. + */ + +/** + * @addtogroup cpu_stm32f0 + * @{ + * + * @file + * @brief Memory definitions for the STM32F072RB + * + * @author Hauke Petersen + * + * @} + */ + +MEMORY +{ + rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 16K + cpuid (r) : ORIGIN = 0x1ffff7ac, LENGTH = 12 +} + +_cpuid_address = ORIGIN(cpuid); + +INCLUDE cortexm_base.ld