Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
cfg_timer_01.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2018 Inria
3
* SPDX-FileCopyrightText: 2019 Freie Universität Berlin
4
* SPDX-License-Identifier: LGPL-2.1-only
5
*/
6
7
#pragma once
8
19
20
#include "periph_cpu.h"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
30
static
const
timer_conf_t
timer_config[] = {
31
{
32
.dev =
NRF_TIMER0
,
33
.channels = 3,
34
.bitmode = TIMER_BITMODE_BITMODE_24Bit,
35
.irqn = TIMER0_IRQn,
36
},
37
{
38
.dev =
NRF_TIMER1
,
39
.channels = 3,
40
.bitmode = TIMER_BITMODE_BITMODE_16Bit,
41
.irqn = TIMER1_IRQn,
42
}
43
};
44
45
#define TIMER_0_ISR isr_timer0
46
#define TIMER_1_ISR isr_timer1
47
49
#define TIMER_0_MAX_VALUE 0xffffffff
51
#define TIMER_1_MAX_VALUE 0xffffffff
52
53
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
55
56
#ifdef __cplusplus
57
}
/* end extern "C" */
58
#endif
59
NRF_TIMER0
#define NRF_TIMER0
Timer 0.
Definition
periph_cpu.h:51
NRF_TIMER1
#define NRF_TIMER1
Timer 1.
Definition
periph_cpu.h:52
timer_conf_t
Timer device configuration.
Definition
periph_cpu.h:260
Generated on Thu Oct 15 2026 17:26:47 by
1.13.2