Loading...
Searching...
No Matches
cfg_timer_012.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Inria
3 * 2019 Freie Universität Berlin
4 *
5 * This file is subject to the terms and conditions of the GNU Lesser
6 * General Public License v2.1. See the file LICENSE in the top level
7 * directory for more details.
8 */
9
21#ifndef CFG_TIMER_012_H
22#define CFG_TIMER_012_H
23
24#include "periph_cpu.h"
25
26#ifdef __cplusplus
27 extern "C" {
28#endif
29
34static const timer_conf_t timer_config[] = {
35 {
36 .dev = NRF_TIMER0,
37 .channels = 3,
38 .bitmode = TIMER_BITMODE_BITMODE_24Bit,
39 .irqn = TIMER0_IRQn,
40 },
41 {
42 .dev = NRF_TIMER1,
43 .channels = 3,
44 .bitmode = TIMER_BITMODE_BITMODE_16Bit,
45 .irqn = TIMER1_IRQn,
46 },
47 {
48 .dev = NRF_TIMER2,
49 .channels = 3,
50 .bitmode = TIMER_BITMODE_BITMODE_16Bit,
51 .irqn = TIMER2_IRQn,
52 }
53};
54
55#define TIMER_0_ISR isr_timer0
56#define TIMER_1_ISR isr_timer1
57#define TIMER_2_ISR isr_timer2
58
60#define TIMER_0_MAX_VALUE 0xffffffff
62#define TIMER_1_MAX_VALUE 0xffffffff
64#define TIMER_2_MAX_VALUE 0xffffffff
65
66#define TIMER_NUMOF ARRAY_SIZE(timer_config)
69#ifdef __cplusplus
70} /* end extern "C" */
71#endif
72
73#endif /* CFG_TIMER_012_H */
Timer device configuration.
Definition periph_cpu.h:264
TC0_t * dev
Pointer to the used as Timer device.
Definition periph_cpu.h:265