2014-04-17 19:40:22 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @defgroup cpu_stm32f4 STM32F4
|
|
|
|
* @ingroup cpu
|
|
|
|
* @brief CPU specific implementations for the STM32F4
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Implementation specific CPU configuration options
|
|
|
|
*
|
2017-01-19 21:45:23 +01:00
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
2014-04-17 19:40:22 +02:00
|
|
|
*/
|
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#ifndef CPU_CONF_H
|
|
|
|
#define CPU_CONF_H
|
2014-04-17 19:40:22 +02:00
|
|
|
|
2016-01-14 23:21:49 +01:00
|
|
|
#include "cpu_conf_common.h"
|
|
|
|
|
2015-10-06 15:16:16 +02:00
|
|
|
#if defined(CPU_MODEL_STM32F401RE)
|
2017-03-06 16:28:11 +01:00
|
|
|
#include "vendor/stm32f401xe.h"
|
2015-10-06 15:16:16 +02:00
|
|
|
#elif defined(CPU_MODEL_STM32F407VG)
|
2017-03-06 16:28:11 +01:00
|
|
|
#include "vendor/stm32f407xx.h"
|
2017-02-03 13:28:22 +01:00
|
|
|
#elif defined(CPU_MODEL_STM32F410RB)
|
|
|
|
#include "vendor/stm32f410rx.h"
|
2017-01-18 22:42:24 +01:00
|
|
|
#elif defined(CPU_MODEL_STM32F411RE)
|
2017-03-06 16:28:11 +01:00
|
|
|
#include "vendor/stm32f411xe.h"
|
2017-02-12 17:25:45 +01:00
|
|
|
#elif defined(CPU_MODEL_STM32F412ZG)
|
|
|
|
#include "vendor/stm32f412zx.h"
|
2017-05-11 13:42:43 +02:00
|
|
|
#elif defined(CPU_MODEL_STM32F413ZH) || defined(CPU_MODEL_STM32F413VG)
|
2017-03-06 16:28:11 +01:00
|
|
|
#include "vendor/stm32f413xx.h"
|
2015-05-27 23:08:11 +02:00
|
|
|
#elif defined(CPU_MODEL_STM32F415RG)
|
2017-03-06 16:28:11 +01:00
|
|
|
#include "vendor/stm32f415xx.h"
|
2017-02-03 18:30:36 +01:00
|
|
|
#elif defined(CPU_MODEL_STM32F446RE) || defined(CPU_MODEL_STM32F446ZE)
|
2017-03-06 16:28:11 +01:00
|
|
|
#include "vendor/stm32f446xx.h"
|
2017-02-11 18:06:55 +01:00
|
|
|
#elif defined(CPU_MODEL_STM32F429ZI)
|
|
|
|
#include "vendor/stm32f429xx.h"
|
2014-04-17 19:40:22 +02:00
|
|
|
#endif
|
|
|
|
|
2015-05-27 23:08:11 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
2014-04-17 19:40:22 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2015-05-27 23:08:11 +02:00
|
|
|
* @brief ARM Cortex-M specific CPU configuration
|
2014-04-17 19:40:22 +02:00
|
|
|
* @{
|
|
|
|
*/
|
2015-05-27 23:08:11 +02:00
|
|
|
#define CPU_DEFAULT_IRQ_PRIO (1U)
|
2017-08-20 17:21:16 +02:00
|
|
|
#if defined(CPU_MODEL_STM32F401RE)
|
|
|
|
#define CPU_IRQ_NUMOF (85U)
|
|
|
|
#elif defined(CPU_MODEL_STM32F407VG) || defined(CPU_MODEL_STM32F415RG)
|
2015-05-27 23:08:11 +02:00
|
|
|
#define CPU_IRQ_NUMOF (82U)
|
2017-08-20 17:21:16 +02:00
|
|
|
#elif defined(CPU_MODEL_STM32F410RB)
|
|
|
|
#define CPU_IRQ_NUMOF (98U)
|
|
|
|
#elif defined(CPU_MODEL_STM32F411RE)
|
|
|
|
#define CPU_IRQ_NUMOF (86U)
|
|
|
|
#elif defined(CPU_MODEL_STM32F412ZG) || defined(CPU_MODEL_STM32F446RE) \
|
|
|
|
|| defined(CPU_MODEL_STM32F446ZE)
|
|
|
|
#define CPU_IRQ_NUMOF (97U)
|
|
|
|
#elif defined(CPU_MODEL_STM32F413ZH) || defined(CPU_MODEL_STM32F413VG)
|
|
|
|
#define CPU_IRQ_NUMOF (102U)
|
|
|
|
#elif defined(CPU_MODEL_STM32F429ZI)
|
|
|
|
#define CPU_IRQ_NUMOF (91U)
|
2017-05-11 13:42:43 +02:00
|
|
|
#endif
|
2015-05-27 23:08:11 +02:00
|
|
|
#define CPU_FLASH_BASE FLASH_BASE
|
2014-04-17 19:40:22 +02:00
|
|
|
/** @} */
|
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#endif /* CPU_CONF_H */
|
2014-04-17 19:40:22 +02:00
|
|
|
/** @} */
|