mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
05f114d0af
- most were trivial - missing group close or open - extra space - no doxygen comment - name commad might open an implicit group this hould also be implicit cosed but does not happen somtimes - crazy: internal declared groups have to be closed internal
61 lines
1.2 KiB
C
61 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2018 Inria
|
|
* 2019 Freie Universität Berlin
|
|
*
|
|
* 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 boards_common_nrf51
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Shared timer peripheral configuration mapping timers 0 and 1
|
|
*
|
|
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
*/
|
|
|
|
#ifndef CFG_TIMER_01_H
|
|
#define CFG_TIMER_01_H
|
|
|
|
#include "periph_cpu.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @name Timer configuration
|
|
* @{
|
|
*/
|
|
static const timer_conf_t timer_config[] = {
|
|
{
|
|
.dev = NRF_TIMER0,
|
|
.channels = 3,
|
|
.bitmode = TIMER_BITMODE_BITMODE_24Bit,
|
|
.irqn = TIMER0_IRQn,
|
|
},
|
|
{
|
|
.dev = NRF_TIMER1,
|
|
.channels = 3,
|
|
.bitmode = TIMER_BITMODE_BITMODE_16Bit,
|
|
.irqn = TIMER1_IRQn,
|
|
}
|
|
};
|
|
|
|
#define TIMER_0_ISR isr_timer0
|
|
#define TIMER_1_ISR isr_timer1
|
|
|
|
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
|
|
/** @} */
|
|
|
|
#ifdef __cplusplus
|
|
} /* end extern "C" */
|
|
#endif
|
|
|
|
#endif /* CFG_TIMER_01_H */
|
|
/** @} */
|