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: 2015 HAW Hamburg
3
* SPDX-FileCopyrightText: 2016 Freie Universität Berlin
4
* SPDX-FileCopyrightText: 2016 INRIA
5
* SPDX-License-Identifier: LGPL-2.1-only
6
*/
7
8
#pragma once
9
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
#ifndef TIMER_NUMOF
27
#define TIMER_NUMOF (2U)
28
#define TIMER_CHANNEL_NUMOF (3)
29
30
#define TIMER_0 MEGA_TIMER1
31
#define TIMER_0_MASK &TIMSK1
32
#define TIMER_0_FLAG &TIFR1
33
#define TIMER_0_ISRA TIMER1_COMPA_vect
34
#define TIMER_0_ISRB TIMER1_COMPB_vect
35
#define TIMER_0_ISRC TIMER1_COMPC_vect
36
37
#define TIMER_1 MEGA_TIMER4
38
#define TIMER_1_MASK &TIMSK4
39
#define TIMER_1_FLAG &TIFR4
40
#define TIMER_1_ISRA TIMER4_COMPA_vect
41
#define TIMER_1_ISRB TIMER4_COMPB_vect
42
#define TIMER_1_ISRC TIMER4_COMPC_vect
43
#endif
/* TIMER_NUMOF */
44
45
#ifdef __cplusplus
46
}
47
#endif
48
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1