Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
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
58
59
#ifdef __cplusplus
60
}
/* end extern "C" */
61
#endif
62
GPTMCFG_32_BIT_TIMER
@ GPTMCFG_32_BIT_TIMER
32-bit timer configuration
Definition
cc2538_gptimer.h:42
GPTMCFG_16_BIT_TIMER
@ GPTMCFG_16_BIT_TIMER
16-bit timer configuration
Definition
cc2538_gptimer.h:44
timer_conf_t
Timer device configuration.
Definition
periph_cpu.h:260
Generated on Mon Sep 15 2025 13:46:10 by
1.13.2