Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
default_timer_config.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2020 Otto-von-Guericke-Universität Magdeburg
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
#include "periph_cpu_common.h"
19
#include "periph_conf.h"
/* <- Allow overwriting timer config from board */
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#ifndef TIMER_NUMOF
26
#define TIMER_NUMOF (2U)
27
#define TIMER_CHANNEL_NUMOF (2)
28
29
#define TIMER_0 MEGA_TIMER1
30
#define TIMER_0_MASK &TIMSK1
31
#define TIMER_0_FLAG &TIFR1
32
#define TIMER_0_ISRA TIMER1_COMPA_vect
33
#define TIMER_0_ISRB TIMER1_COMPB_vect
34
35
#define TIMER_1 MEGA_TIMER3
36
#define TIMER_1_MASK &TIMSK3
37
#define TIMER_1_FLAG &TIFR3
38
#define TIMER_1_ISRA TIMER3_COMPA_vect
39
#define TIMER_1_ISRB TIMER3_COMPB_vect
40
#endif
/* TIMER_NUMOF */
41
42
#ifdef __cplusplus
43
}
44
#endif
45
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1