Loading...
Searching...
No Matches
periph_cpu.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Matvii Ivashchenko
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include <stdint.h>
19#include "periph_cpu_common.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#define GPIO_PORT_SHIFT (5U)
26#define GPIO_PIN_MASK (0x1fU)
27
31#define GPIO_PIN(port, pin) ((gpio_t)(((port) << GPIO_PORT_SHIFT) | (pin)))
32
39typedef struct {
40 uint32_t addr;
41 uint32_t irq;
43
47#ifndef UART_ISR_PRIO
48# define UART_ISR_PRIO (1)
49#endif
50#define PERIPH_TIMER_PROVIDES_SET
51
52#ifdef __cplusplus
53}
54#endif
55
UART device configuration.
Definition periph_cpu.h:214
IRQn_Type irq
the devices base IRQ channel
Definition periph_cpu.h:651