Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
22
extern
"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
39
typedef
struct
{
40
uint32_t addr;
41
uint32_t
irq
;
42
}
uart_conf_t
;
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_conf_t
UART device configuration.
Definition
periph_cpu.h:214
uart_conf_t::irq
IRQn_Type irq
the devices base IRQ channel
Definition
periph_cpu.h:651
Generated on Wed Aug 19 2026 14:58:11 by
1.13.2