Loading...
Searching...
No Matches
cpu_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Mesotic SAS
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#include "vendor/nrf9160.h"
20#include "vendor/nrf9160_bitfields.h"
21#include "vendor/nrf9160_peripherals.h"
22
23#include "cpu_conf_common.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#define CPU_DEFAULT_IRQ_PRIO (1U)
34#define CPU_FLASH_BASE (0x00000000)
35
36#define CPU_IRQ_NUMOF (65U)
38
43#define FLASHPAGE_SIZE (4096U)
44#define FLASHPAGE_NUMOF (256U)
45
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)
53
54#ifdef __cplusplus
55}
56#endif
57