Loading...
Searching...
No Matches
cfg_timer_tim5.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Inria
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
20
21#include "periph_cpu.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31static const timer_conf_t timer_config[] = {
32 {
33 .dev = TIM5,
34 .max = 0xffffffff,
35#if defined(RCC_APB1ENR1_TIM5EN)
36 .rcc_mask = RCC_APB1ENR1_TIM5EN,
37#else
38 .rcc_mask = RCC_APB1ENR_TIM5EN,
39#endif
40 .bus = APB1,
41 .irqn = TIM5_IRQn
42 }
43};
44
45#define TIMER_0_ISR isr_tim5
46
47#define TIMER_NUMOF ARRAY_SIZE(timer_config)
49
50#ifdef __cplusplus
51}
52#endif
53
@ APB1
Advanced Peripheral Bus 1.
Definition periph_cpu.h:78
Timer device configuration.
Definition periph_cpu.h:263