periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2018 Freie Universität Berlin
3  * 2018 Inria
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
22 #ifndef PERIPH_CONF_H
23 #define PERIPH_CONF_H
24 
25 #include "periph_conf_common.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 static const spi_conf_t spi_config[] = {
36  {
37  .dev = NRF_SPIM0,
38  .sclk = GPIO_PIN(0, 25),
39  .mosi = GPIO_PIN(0, 23),
40  .miso = GPIO_PIN(0, 24),
41  .ppi = 0,
42  }
43 };
44 #define SPI_NUMOF ARRAY_SIZE(spi_config)
45 
51 #define UART_NUMOF (1U)
52 #define UART_PIN_RX GPIO_PIN(0,8)
53 #define UART_PIN_TX GPIO_PIN(0,6)
54 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif /* PERIPH_CONF_H */
61 
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35
spi_conf_t::dev
SPI_Type * dev
SPI device to use.
Definition: periph_cpu.h:465
spi_conf_t
SPI configuration structure type.
Definition: periph_cpu.h:273