cpu/sam0_common/include/cpu_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-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 
21 #ifndef CPU_CONF_H
22 #define CPU_CONF_H
23 
24 #include "cpu_conf_common.h"
25 #include "vendor/sam0.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #define CPU_DEFAULT_IRQ_PRIO (1U)
36 #define CPU_IRQ_NUMOF PERIPH_COUNT_IRQn
37 #define CPU_FLASH_BASE FLASH_ADDR
38 
44 /* a flashpage in RIOT is mapped to a flash row on the SAM0s */
45 #define FLASHPAGE_SIZE (256U)
46 /* one SAM0 row contains 4 SAM0 pages -> 4x the amount of RIOT flashpages */
47 #define FLASHPAGE_NUMOF (FLASH_NB_OF_PAGES / 4)
48 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /* CPU_CONF_H */
55 
Common CPU definitione for Cortex-M family based MCUs.