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 #include "vendor/stm32f3xx.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
37 #define CPU_DEFAULT_IRQ_PRIO (1U)
38 #if defined(CPU_LINE_STM32F303xE)
39 #define CPU_IRQ_NUMOF (85U)
40 #else
41 #define CPU_IRQ_NUMOF (82U)
42 #endif
43 #define CPU_FLASH_BASE FLASH_BASE
44 
50 #define FLASHPAGE_SIZE (2048U)
51 #define FLASHPAGE_NUMOF (STM32_FLASHSIZE / FLASHPAGE_SIZE)
52 
53 /* The minimum block size which can be written is 2B. However, the erase
54  * block is always FLASHPAGE_SIZE.
55  */
56 #define FLASHPAGE_RAW_BLOCKSIZE (2U)
57 /* Writing should be always 4 bytes aligned */
58 #define FLASHPAGE_RAW_ALIGNMENT (4U)
59 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* CPU_CONF_H */
66 
Common CPU definitione for Cortex-M family based MCUs.