Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
periph_conf.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
21
22
#include "periph_cpu.h"
23
#include "periph_conf_common.h"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
33
static
const
uart_conf_t
uart_config[] = {
34
{
35
.dev =
NRF_UARTE0
,
36
.rx_pin =
GPIO_PIN
(0, 8),
37
.tx_pin =
GPIO_PIN
(0, 6),
38
#ifdef MODULE_PERIPH_UART_HW_FC
39
.rts_pin =
GPIO_UNDEF
,
40
.cts_pin =
GPIO_UNDEF
,
41
#endif
42
.irqn = UARTE0_UART0_IRQn,
43
},
44
{
45
.dev =
NRF_UARTE1
,
46
.rx_pin =
GPIO_PIN
(1, 4),
47
.tx_pin =
GPIO_PIN
(1, 5),
48
#ifdef MODULE_PERIPH_UART_HW_FC
49
.rts_pin =
GPIO_PIN
(1, 7),
50
.cts_pin =
GPIO_PIN
(1, 6),
51
#endif
52
.irqn = UARTE1_IRQn,
53
},
54
};
55
56
#define UART_0_ISR (isr_uart0)
57
#define UART_1_ISR (isr_uarte1)
58
59
#define UART_NUMOF ARRAY_SIZE(uart_config)
61
62
#ifdef __cplusplus
63
}
64
#endif
65
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition
periph_cpu.h:42
GPIO_UNDEF
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Definition
periph_cpu_common.h:50
NRF_UARTE0
#define NRF_UARTE0
UART 0.
Definition
periph_cpu.h:54
NRF_UARTE1
#define NRF_UARTE1
UART 1.
Definition
periph_cpu.h:55
uart_conf_t
UART device configuration.
Definition
periph_cpu.h:214
Generated on Thu Oct 15 2026 17:26:47 by
1.13.2