cfg_timer_default.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2014-2016 Freie Universität Berlin
3  * SPDX-FileCopyrightText: 2015 Zolertia SL
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
21 #include "periph_cpu.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
35 static const timer_conf_t timer_config[] = {
36  {
37  .chn = 2,
38  .cfg = GPTMCFG_16_BIT_TIMER, /* required for XTIMER */
39  },
40  {
41  .chn = 2,
42  .cfg = GPTMCFG_16_BIT_TIMER,
43  },
44  {
45  .chn = 1,
46  .cfg = GPTMCFG_32_BIT_TIMER,
47  },
48  {
49  .chn = 1,
50  .cfg = GPTMCFG_32_BIT_TIMER,
51  },
52 };
53 
54 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
55 
56 #define TIMER_IRQ_PRIO 1
59 #ifdef __cplusplus
60 } /* end extern "C" */
61 #endif
62 
@ GPTMCFG_32_BIT_TIMER
32-bit timer configuration
@ GPTMCFG_16_BIT_TIMER
16-bit timer configuration
static const timer_conf_t timer_config[]
Configuration of the exposed timers.
Timer device configuration.
Definition: periph_cpu.h:263
uint_fast8_t chn
number of channels
Definition: periph_cpu.h:310