Loading...
Searching...
No Matches
cfg_timer_a_smclk_b_aclk.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Otto-von-Guericke-Universität Magdeburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#include "periph_cpu.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
32static const timer_conf_t timer_conf[] = {
33 {
34 .timer = &TIMER_A,
35 .irq_flags = &TIMER_A_IRQFLAGS,
37 },
38 {
39 .timer = &TIMER_B,
40 .irq_flags = &TIMER_B_IRQFLAGS,
42 }
43};
44#define TIMER_NUMOF ARRAY_SIZE(timer_conf)
45
46#define TIMER0_ISR_CC0 (TIMERA0_VECTOR)
47#define TIMER0_ISR_CCX (TIMERA1_VECTOR)
48#define TIMER1_ISR_CC0 (TIMERB0_VECTOR)
49#define TIMER1_ISR_CCX (TIMERB1_VECTOR)
51
52#ifdef __cplusplus
53}
54#endif
55
static const timer_conf_t timer_conf[]
Timer configuration.
msp430_timer_t TIMER_A
Register map of the timer A control registers.
msp430_timer_t TIMER_B
Register map of the timer B control registers.
REG16 TIMER_B_IRQFLAGS
IRQ flags for TIMER_B.
REG16 TIMER_A_IRQFLAGS
IRQ flags for TIMER_A.
@ TIMER_CLOCK_SOURCE_AUXILIARY_CLOCK
Auxiliary clock as clock source.
@ TIMER_CLOCK_SOURCE_SUBMAIN_CLOCK
Sub-system master clock as clock source.
Timer device configuration.
Definition periph_cpu.h:260