Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
periph_cpu.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
17
18
#include "periph_cpu_common.h"
19
#include "
macros/units.h
"
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
28
#define CLOCK_CORECLOCK MHZ(64)
29
38
#ifdef NRF_TRUSTZONE_NONSECURE
39
# define NRF_P0 NRF_P0_NS
40
# define NRF_PWM0 NRF_PWM0_NS
41
# define NRF_SPIM2 NRF_SPIM2_NS
42
# define NRF_TIMER0 NRF_TIMER0_NS
43
# define NRF_TIMER1 NRF_TIMER1_NS
44
# define NRF_TWIM3 NRF_TWIM3_NS
45
# define NRF_UARTE0 NRF_UARTE0_NS
46
# define NRF_UARTE1 NRF_UARTE1_NS
47
#else
48
# define NRF_P0 NRF_P0_S
49
# define NRF_PWM0 NRF_PWM0_S
50
# define NRF_SPIM2 NRF_SPIM2_S
51
# define NRF_TIMER0 NRF_TIMER0_S
52
# define NRF_TIMER1 NRF_TIMER1_S
53
# define NRF_TWIM3 NRF_TWIM3_S
54
# define NRF_UARTE0 NRF_UARTE0_S
55
# define NRF_UARTE1 NRF_UARTE1_S
56
#endif
58
62
#define PERIPH_CLOCK MHZ(16)
63
64
#ifdef __cplusplus
65
}
66
#endif
67
units.h
Unit helper macros.
Generated on Thu Oct 15 2026 17:26:47 by
1.13.2