The friendly Operating System for the Internet of Things
cpu/nrf52/include/cpu_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef CPU_CONF_H
21 #define CPU_CONF_H
22 
23 #include "cpu_conf_common.h"
24 #include "vendor/nrf52.h"
25 #include "vendor/nrf52_bitfields.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #define CPU_DEFAULT_IRQ_PRIO (2U)
36 #define CPU_IRQ_NUMOF (38U)
37 #define CPU_FLASH_BASE (0x00000000)
38 
44 #define FLASHPAGE_SIZE (4096U)
45 
46 #if defined(CPU_MODEL_NRF52XXAA)
47 #define FLASHPAGE_NUMOF (128U)
48 #endif
49 
55 #ifdef SOFTDEVICE_PRESENT
56 #ifndef DONT_OVERRIDE_NVIC
57 #include "nrf_soc.h"
58 #undef NVIC_SetPriority
59 #define NVIC_SetPriority sd_nvic_SetPriority
60 #endif /* DONT_OVERRIDE_NVIC */
61 #endif /* SOFTDEVICE_PRESENT */
62 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif /* CPU_CONF_H */
69 
Common CPU definitione for Cortex-M family based MCUs.