Loading...
Searching...
No Matches
cfg_timer_01.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_01_H
22#define CFG_TIMER_01_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
49#define TIMER_0_ISR isr_timer0
50#define TIMER_1_ISR isr_timer1
51
53#define TIMER_0_MAX_VALUE 0xffffffff
55#define TIMER_1_MAX_VALUE 0xffffffff
56
57#define TIMER_NUMOF ARRAY_SIZE(timer_config)
60#ifdef __cplusplus
61} /* end extern "C" */
62#endif
63
64#endif /* CFG_TIMER_01_H */
Timer device configuration.
Definition periph_cpu.h:264
TC0_t * dev
Pointer to the used as Timer device.
Definition periph_cpu.h:265