Loading...
Searching...
No Matches
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
20
21#include "periph_cpu.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
35static const timer_conf_t timer_config[] = {
36 {
37 .chn = 2,
38 .cfg = GPTMCFG_16_BIT_TIMER, /* required for XTIMER */
39 },
40 {
41 .chn = 2,
43 },
44 {
45 .chn = 1,
47 },
48 {
49 .chn = 1,
51 },
52};
53
54#define TIMER_NUMOF ARRAY_SIZE(timer_config)
55
56#define TIMER_IRQ_PRIO 1
58
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
Timer device configuration.
Definition periph_cpu.h:260