cpu/stm32f3/include/cpu_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
22 #ifndef CPU_CONF_H
23 #define CPU_CONF_H
24 
25 #include "cpu_conf_common.h"
26 
27 #if defined(CPU_MODEL_STM32F303VC)
28 #include "vendor/stm32f303xc.h"
29 #elif defined(CPU_MODEL_STM32F334R8)
30 #include "vendor/stm32f334x8.h"
31 #elif defined(CPU_MODEL_STM32F303RE) || defined(CPU_MODEL_STM32F303ZE)
32 #include "vendor/stm32f303xe.h"
33 #elif defined(CPU_MODEL_STM32F303K8)
34 #include "vendor/stm32f303x8.h"
35 #elif defined(CPU_MODEL_STM32F302R8)
36 #include "vendor/stm32f302x8.h"
37 #endif
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
46 #define CPU_DEFAULT_IRQ_PRIO (1U)
47 #if defined(CPU_MODEL_STM32F303RE) || defined (CPU_MODEL_STM32F303ZE)
48 #define CPU_IRQ_NUMOF (85U)
49 #else
50 #define CPU_IRQ_NUMOF (82U)
51 #endif
52 #define CPU_FLASH_BASE FLASH_BASE
53 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif /* CPU_CONF_H */
61 
Common CPU definitione for Cortex-M family based MCUs.