2017-03-29 14:09:54 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2017 Freie Universität Berlin
|
2017-03-31 18:10:50 +02:00
|
|
|
* 2017 Inria
|
2017-03-29 14:09:54 +02:00
|
|
|
*
|
|
|
|
* 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_stm32l4 STM32L4
|
|
|
|
* @brief STM32L4 specific code
|
|
|
|
* @ingroup cpu
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Implementation specific CPU configuration options
|
|
|
|
*
|
|
|
|
* @author Hauke Petersen <hauke.pertersen@fu-berlin.de>
|
2017-03-31 18:10:50 +02:00
|
|
|
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
|
2017-03-29 14:09:54 +02:00
|
|
|
*/
|
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#ifndef CPU_CONF_H
|
|
|
|
#define CPU_CONF_H
|
2017-03-29 14:09:54 +02:00
|
|
|
|
|
|
|
#include "cpu_conf_common.h"
|
|
|
|
|
2017-05-20 17:40:25 +02:00
|
|
|
#if defined(CPU_MODEL_STM32L496ZG)
|
|
|
|
#include "vendor/stm32l496xx.h"
|
|
|
|
#elif defined(CPU_MODEL_STM32L476RG)
|
2017-03-29 14:09:54 +02:00
|
|
|
#include "vendor/stm32l476xx.h"
|
2017-09-08 12:52:48 +02:00
|
|
|
#elif defined(CPU_MODEL_STM32L475VG)
|
|
|
|
#include "vendor/stm32l475xx.h"
|
2017-03-31 18:10:50 +02:00
|
|
|
#elif defined(CPU_MODEL_STM32L432KC)
|
|
|
|
#include "vendor/stm32l432xx.h"
|
2017-08-18 00:32:16 +02:00
|
|
|
#elif defined(CPU_MODEL_STM32L433RC)
|
|
|
|
#include "vendor/stm32l433xx.h"
|
2018-03-05 18:34:16 +01:00
|
|
|
#elif defined(CPU_MODEL_STM32L452RE)
|
|
|
|
#include "vendor/stm32l452xx.h"
|
2017-03-29 14:09:54 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief ARM Cortex-M specific CPU configuration
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define CPU_DEFAULT_IRQ_PRIO (1U)
|
2017-08-18 00:32:16 +02:00
|
|
|
#if defined(CPU_MODEL_STM32L432KC) || defined(CPU_MODEL_STM32L433RC)
|
2017-08-20 01:00:00 +02:00
|
|
|
#define CPU_IRQ_NUMOF (83U)
|
2017-05-20 17:40:25 +02:00
|
|
|
#elif defined(CPU_MODEL_STM32L496ZG)
|
|
|
|
#define CPU_IRQ_NUMOF (91U)
|
2017-03-31 18:10:50 +02:00
|
|
|
#else
|
2017-08-20 01:00:00 +02:00
|
|
|
#define CPU_IRQ_NUMOF (82U)
|
2017-03-31 18:10:50 +02:00
|
|
|
#endif
|
2017-03-29 14:09:54 +02:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#endif /* CPU_CONF_H */
|
2017-03-29 14:09:54 +02:00
|
|
|
/** @} */
|