1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/atmega8/include/default_timer_config.h
2023-06-22 11:25:17 +02:00

47 lines
1.1 KiB
C

/*
* Copyright (C) 2015 HAW Hamburg
* 2016 Freie Universität Berlin
* 2023 Hugues Larrive
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup cpu_atmega8
* @{
*
* @file
* @brief Default timer configuration
*
* @author René Herthel <rene-herthel@outlook.de>
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
* @author Hugues Larrive <hugues.larrive@pm.me>
*/
#ifndef DEFAULT_TIMER_CONFIG_H
#define DEFAULT_TIMER_CONFIG_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef TIMER_NUMOF
#define TIMER_NUMOF (1U)
#define TIMER_CHANNEL_NUMOF (2)
#define TIMER_0 MEGA_TIMER1
#define TIMER_0_MASK &TIMSK
#define TIMER_0_FLAG &TIFR
#define TIMER_0_ISRA TIMER1_COMPA_vect
#define TIMER_0_ISRB TIMER1_COMPB_vect
#endif /* TIMER_NUMOF */
#ifdef __cplusplus
}
#endif
#endif /* DEFAULT_TIMER_CONFIG_H */
/** @} */