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 
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 
49 #define TIMER_0_ISR isr_timer0
50 #define TIMER_1_ISR isr_timer1
51 
52 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
53 
55 #ifdef __cplusplus
56 } /* end extern "C" */
57 #endif
58 
59 #endif /* CFG_TIMER_01_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