Mesh4all
May the mesh be with you
periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 DAI Labor Technische Universität Berlin
3  * Copyright (C) 2022 Mesh4all<contact@mesh4all.org>
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser General
6  * Public License v2.1. See the file LICENSE in the top level directory for more
7  * details.
8  */
9 
21 #ifndef PERIPH_CONF_H
22 #define PERIPH_CONF_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #include <stdint.h>
29 
30 #include "cpu.h"
31 #include "periph_cpu.h"
32 #include "periph/cpuid.h"
33 
34 #include "cfg_clk_default.h"
35 #include "cfg_timer_default.h"
36 
50 static const uart_conf_t uart_config[] = {
51  {
52  .dev = UART0_BASEADDR,
53  .rx_pin = GPIO_PIN(PORT_A, 0),
54  .tx_pin = GPIO_PIN(PORT_A, 1),
55 #ifdef MODULE_PERIPH_UART_HW_FC
56  .cts_pin = GPIO_UNDEF,
57  .rts_pin = GPIO_UNDEF,
58 #endif
59  },
60 };
61 
62 #define UART_0_ISR isr_uart0
63 #define UART_NUMOF ARRAY_SIZE(uart_config)
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif /* PERIPH_CONF_H */
static const uart_conf_t uart_config[]
List of available UART ports, pins are mapped as follows:
Definition: periph_conf.h:50