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 
34 static 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 
59 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
60 
62 #ifdef __cplusplus
63 } /* end extern "C" */
64 #endif
65 
66 #endif /* CFG_TIMER_012_H */
timer_conf_t
Timer configuration.
Definition: periph_cpu.h:288
timer_conf_t::dev
uint32_t dev
Address of timer base.
Definition: periph_cpu.h:112