Loading...
Searching...
No Matches
cpu_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "cpu_conf_common.h"
19#include "vendor/nrf51.h"
20#include "vendor/nrf51_bitfields.h"
21#include "vendor/nrf51822_peripherals.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#define CPU_DEFAULT_IRQ_PRIO (1U)
32#define CPU_IRQ_NUMOF (26U)
33#define CPU_FLASH_BASE (0x00000000)
35
40#define FLASHPAGE_SIZE (1024U)
41
42#if defined(CPU_MODEL_NRF51X22XXAA) || defined(CPU_MODEL_NRF51X22XXAC)
43#define FLASHPAGE_NUMOF (256U)
44#elif defined(CPU_MODEL_NRF51X22XXAB)
45#define FLASHPAGE_NUMOF (128U)
46#endif
47/* The minimum block size which can be written is 4B. However, the erase
48 * block is always FLASHPAGE_SIZE.
49 */
50#define FLASHPAGE_WRITE_BLOCK_SIZE (4U)
51/* Writing should be always 4 bytes aligned */
52#define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (4U)
54
60#ifndef CONFIG_GNRC_PKTBUF_SIZE
61#define CONFIG_GNRC_PKTBUF_SIZE (2048)
62#endif
64
69#define PWM_GPIOTE_CH (2U)
70#define PWM_PPI_A (0U)
71#define PWM_PPI_B (1U)
73
74#ifdef __cplusplus
75}
76#endif
77