Loading...
Searching...
No Matches
timer_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Tom Hert <git@annsann.eu>
3 * SPDX-FileCopyrightText: 2026 HAW Hamburg
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
18
19#include <stdint.h>
20
21#include "RP2350.h"
22
24#define TIMER_CHANNEL_NUMOF 4u
25
27#define TIMER_0_ISRA isr_timer0_0
29#define TIMER_0_ISRB isr_timer0_1
31#define TIMER_0_ISRC isr_timer0_2
33#define TIMER_0_ISRD isr_timer0_3
34
36#define TIMER_1_ISRA isr_timer1_0
38#define TIMER_1_ISRB isr_timer1_1
40#define TIMER_1_ISRC isr_timer1_2
42#define TIMER_1_ISRD isr_timer1_3
43
47#define PERIPH_TIMER_PROVIDES_SET
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52
56typedef struct {
57 TIMER0_Type *dev;
59 uint8_t ch_numof;
61
62#ifdef __cplusplus
63}
64#endif
65
enum IRQn IRQn_Type
Interrupt Number Definition.
Timer device configuration.
Definition periph_cpu.h:260
IRQn_Type irqn_base
IRQ number of alarm 0.
Definition timer_conf.h:58
TC0_t * dev
Pointer to the used as Timer device.
Definition periph_cpu.h:261
uint8_t ch_numof
Number of alarm channels to use.
Definition timer_conf.h:59