Loading...
Searching...
No Matches
cfg_timer_default.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2014-2016 Freie Universität Berlin
3 * 2015 Zolertia SL
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
22#ifndef CFG_TIMER_DEFAULT_H
23#define CFG_TIMER_DEFAULT_H
24
25#include "periph_cpu.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
39static const timer_conf_t timer_config[] = {
40 {
41 .chn = 2,
42 .cfg = GPTMCFG_16_BIT_TIMER, /* required for XTIMER */
43 },
44 {
45 .chn = 2,
47 },
48 {
49 .chn = 1,
51 },
52 {
53 .chn = 1,
55 },
56};
57
58#define TIMER_NUMOF ARRAY_SIZE(timer_config)
59
60#define TIMER_IRQ_PRIO 1
63#ifdef __cplusplus
64} /* end extern "C" */
65#endif
66
67#endif /* CFG_TIMER_DEFAULT_H */
@ GPTMCFG_32_BIT_TIMER
32-bit timer configuration
@ GPTMCFG_16_BIT_TIMER
16-bit timer configuration
Timer device configuration.
Definition periph_cpu.h:264
uint_fast8_t chn
number of channels
Definition periph_cpu.h:311