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
9#pragma once
10
21
22#include "cpu_conf_common.h"
23
24#include "em_device.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#define CPU_DEFAULT_IRQ_PRIO (1U)
35#define CPU_IRQ_NUMOF (EXT_IRQ_COUNT + 1)
36#define CPU_FLASH_BASE (FLASH_BASE)
38
43#define FLASHPAGE_SIZE (FLASH_PAGE_SIZE)
44#define FLASHPAGE_NUMOF (FLASH_SIZE / FLASH_PAGE_SIZE)
45/* The minimum block size which can be written is 4B. However, the erase
46 * block is always FLASHPAGE_SIZE.
47 */
48#define FLASHPAGE_WRITE_BLOCK_SIZE (4U)
49/* Writing should be always 4 bytes aligned */
50#define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (4U)
52
57#ifdef BITBAND_RAM_BASE
58#define CPU_HAS_BITBAND 1
59#endif
61
62#ifdef __cplusplus
63}
64#endif
65