periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
22 #ifndef PERIPH_CONF_H
23 #define PERIPH_CONF_H
24 
25 #include "periph_cpu.h"
26 #include "cfg_clock_16_1.h"
27 #include "cfg_timer_012.h"
28 #include "cfg_rtt_default.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
38 #define UART_NUMOF (1U)
39 #define UART_IRQ_PRIO 1
40 
41 /* UART pin configuration */
42 #define UART_PIN_RX 16
43 #define UART_PIN_TX 17
44 #define UART_PIN_RTS 19
45 #define UART_PIN_CTS 18
46 
52 static const spi_conf_t spi_config[] = {
53  {
54  .dev = NRF_SPI0,
55  .sclk = 23,
56  .mosi = 22,
57  .miso = 20
58  },
59  {
60  .dev = NRF_SPI1,
61  .sclk = 16,
62  .mosi = 17,
63  .miso = 18
64  }
65 };
66 
67 #define SPI_NUMOF ARRAY_SIZE(spi_config)
68 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* PERIPH_CONF_H */
75 
cfg_clock_16_1.h
Common clock configuration for some nrf51 based boards.
spi_conf_t::dev
SPI_Type * dev
SPI device to use.
Definition: periph_cpu.h:465
cfg_timer_012.h
Shared timer peripheral configuration mapping timers 0, 1, and 2.
spi_conf_t
SPI configuration structure type.
Definition: periph_cpu.h:273