stm32l1/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 
21 #ifndef CPU_CONF_H
22 #define CPU_CONF_H
23 
24 #include "cpu_conf_common.h"
25 
49 #if defined(CPU_MODEL_STM32L151RBA)
50 #define STM32L1XX_MD (1U)
51 #elif defined(CPU_MODEL_STM32L151RC)
52 #define STM32L1XX_MDP (1U)
53 #else
54 #define STM32L1XX_XL (1U)
55 #endif
56 #include "vendor/stm32l1xx.h"
57 
58 #ifdef __cplusplus
59 extern "C" {
60 #endif
61 
66 #define CPU_DEFAULT_IRQ_PRIO (1U)
67 #if defined(CPU_MODEL_STM32L151RBA)
68 #define CPU_IRQ_NUMOF (45U)
69 #else
70 #define CPU_IRQ_NUMOF (57U)
71 #endif
72 #define CPU_FLASH_BASE FLASH_BASE
73 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* CPU_CONF_H */
80 
Common CPU definitione for Cortex-M family based MCUs.