cpu/nrf51/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 
19 #ifndef CPU_CONF_H
20 #define CPU_CONF_H
21 
22 #include "cpu_conf_common.h"
23 #include "vendor/nrf51.h"
24 #include "vendor/nrf51_bitfields.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 #define CPU_DEFAULT_IRQ_PRIO (1U)
35 #define CPU_IRQ_NUMOF (26U)
36 #define CPU_FLASH_BASE (0x00000000)
37 
43 #define FLASHPAGE_SIZE (1024U)
44 
45 #if defined(CPU_MODEL_NRF51X22XXAA)
46 #define FLASHPAGE_NUMOF (256U)
47 #elif defined(CPU_MODEL_NRF51X22XXAB)
48 #define FLASHPAGE_NUMOF (128U)
49 #endif
50 
57 #ifndef GNRC_PKTBUF_SIZE
58 #define GNRC_PKTBUF_SIZE (2048)
59 #endif
60 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif /* CPU_CONF_H */
67 
Common CPU definitione for Cortex-M family based MCUs.