Loading...
Searching...
No Matches
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: 2023 Hugues Larrive
5 * SPDX-License-Identifier: LGPL-2.1-only
6 */
7
8#pragma once
9
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#ifndef TIMER_NUMOF
27#define TIMER_NUMOF (1U)
28#define TIMER_CHANNEL_NUMOF (2)
29
30#define TIMER_0 MEGA_TIMER1
31#define TIMER_0_MASK &TIMSK
32#define TIMER_0_FLAG &TIFR
33#define TIMER_0_ISRA TIMER1_COMPA_vect
34#define TIMER_0_ISRB TIMER1_COMPB_vect
35#endif /* TIMER_NUMOF */
36
37#ifdef __cplusplus
38}
39#endif
40