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: 2017 Thomas Perrot <thomas.perrot@tupi.fr>
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
23
#ifndef TIMER_NUMOF
24
#define TIMER_NUMOF (2U)
25
#define TIMER_CHANNEL_NUMOF (3)
26
27
#define TIMER_0 MEGA_TIMER1
28
#define TIMER_0_MASK &TIMSK1
29
#define TIMER_0_FLAG &TIFR1
30
#define TIMER_0_ISRA TIMER1_COMPA_vect
31
#define TIMER_0_ISRB TIMER1_COMPB_vect
32
#define TIMER_0_ISRC TIMER1_COMPC_vect
33
34
#define TIMER_1 MEGA_TIMER3
35
#define TIMER_1_MASK &TIMSK3
36
#define TIMER_1_FLAG &TIFR3
37
#define TIMER_1_ISRA TIMER3_COMPA_vect
38
#define TIMER_1_ISRB TIMER3_COMPB_vect
39
#define TIMER_1_ISRC TIMER3_COMPC_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