Browse Source

cpu/stm32f4: adding support for stm32f446re cpu

pr/spi.typo
Alexandre Abadie 6 years ago
parent
commit
b50ab2f46e
  1. 2
      cpu/stm32f4/include/cpu_conf.h
  2. 2
      cpu/stm32f4/include/periph_cpu.h
  3. 8269
      cpu/stm32f4/include/stm32f446xx.h
  4. 30
      cpu/stm32f4/ldscripts/stm32f446re.ld
  5. 1
      doc/doxygen/riot.doxyfile

2
cpu/stm32f4/include/cpu_conf.h

@ -29,6 +29,8 @@
#include "stm32f407xx.h"
#elif defined(CPU_MODEL_STM32F415RG)
#include "stm32f415xx.h"
#elif defined(CPU_MODEL_STM32F446RE)
#include "stm32f446xx.h"
#endif
#ifdef __cplusplus

2
cpu/stm32f4/include/periph_cpu.h

@ -30,7 +30,7 @@ extern "C" {
*/
#if defined(CPU_MODEL_STM32F401RE)
#define ADC_DEVS (1U)
#elif defined(CPU_MODEL_STM32F407VG) || defined(CPU_MODEL_STM32F415RG)
#elif defined(CPU_MODEL_STM32F407VG) || defined(CPU_MODEL_STM32F415RG) || defined(CPU_MODEL_STM32F446RE)
#define ADC_DEVS (3U)
#endif

8269
cpu/stm32f4/include/stm32f446xx.h

File diff suppressed because it is too large Load Diff

30
cpu/stm32f4/ldscripts/stm32f446re.ld

@ -0,0 +1,30 @@
/*
* Copyright (C) 2016 Inria
*
* 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_stm32f4
* @{
*
* @file
* @brief Memory definitions for the STM32F446RE
*
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
*
* @}
*/
MEMORY
{
rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
cpuid (r) : ORIGIN = 0x1fff7a10, LENGTH = 12
}
_cpuid_address = ORIGIN(cpuid);
INCLUDE cortexm_base.ld

1
doc/doxygen/riot.doxyfile

@ -840,6 +840,7 @@ EXCLUDE_PATTERNS = */board/*/tools/* \
*/pkg/tlsf/patch.txt \
*/sys/random/tinymt32/* \
*/cpu/stm32f2/include/stm32f2*.h \
*/cpu/stm32f4/include/stm32f4*.h \
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names

Loading…
Cancel
Save