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
* 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
28
extern
"C"
{
29
#endif
30
39
static
const
timer_conf_t
timer_config[] = {
40
{
41
.
chn
= 2,
42
.cfg =
GPTMCFG_16_BIT_TIMER
,
/* required for XTIMER */
43
},
44
{
45
.chn = 2,
46
.cfg =
GPTMCFG_16_BIT_TIMER
,
47
},
48
{
49
.chn = 1,
50
.cfg =
GPTMCFG_32_BIT_TIMER
,
51
},
52
{
53
.chn = 1,
54
.cfg =
GPTMCFG_32_BIT_TIMER
,
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
@ GPTMCFG_32_BIT_TIMER
32-bit timer configuration
Definition
cc2538_gptimer.h:46
GPTMCFG_16_BIT_TIMER
@ GPTMCFG_16_BIT_TIMER
16-bit timer configuration
Definition
cc2538_gptimer.h:48
timer_conf_t
Timer device configuration.
Definition
periph_cpu.h:264
timer_conf_t::chn
uint_fast8_t chn
number of channels
Definition
periph_cpu.h:311
Generated on Sat Nov 23 2024 01:58:06 by
1.9.8