Loading...
Searching...
No Matches
cpu_conf.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 Mesotic SAS
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
23
24#include "vendor/nrf9160.h"
25#include "vendor/nrf9160_bitfields.h"
26#include "vendor/nrf9160_peripherals.h"
27
28#include "cpu_conf_common.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
38#define CPU_DEFAULT_IRQ_PRIO (1U)
39#define CPU_FLASH_BASE (0x00000000)
40
41#define CPU_IRQ_NUMOF (65U)
43
48#define FLASHPAGE_SIZE (4096U)
49#define FLASHPAGE_NUMOF (256U)
50
51/* The minimum block size which can be written is 4B. However, the erase
52 * block is always FLASHPAGE_SIZE.
53 */
54#define FLASHPAGE_WRITE_BLOCK_SIZE (4U)
55/* Writing should be always 4 bytes aligned */
56#define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (4U)
58
59#ifdef __cplusplus
60}
61#endif
62