Loading...
Searching...
No Matches
cpu_conf.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015-2017 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
25#include "em_device.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
35#define CPU_DEFAULT_IRQ_PRIO (1U)
36#define CPU_IRQ_NUMOF (EXT_IRQ_COUNT + 1)
37#define CPU_FLASH_BASE (FLASH_BASE)
44#define FLASHPAGE_SIZE (FLASH_PAGE_SIZE)
45#define FLASHPAGE_NUMOF (FLASH_SIZE / FLASH_PAGE_SIZE)
46/* The minimum block size which can be written is 4B. However, the erase
47 * block is always FLASHPAGE_SIZE.
48 */
49#define FLASHPAGE_WRITE_BLOCK_SIZE (4U)
50/* Writing should be always 4 bytes aligned */
51#define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (4U)
58#ifdef BITBAND_RAM_BASE
59#define CPU_HAS_BITBAND 1
60#endif
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* CPU_CONF_H */