boards/airfy-beacon/include/periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Christian Mehlis <mehlis@inf.fu-berlin.de>
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 
20 #ifndef PERIPH_CONF_H
21 #define PERIPH_CONF_H
22 
23 #include "periph_cpu.h"
24 #include "periph_conf_common.h"
25 #include "cfg_clock_16_1.h"
26 
27 #ifdef __cplusplus
28  extern "C" {
29 #endif
30 
37 #define UART_NUMOF (1U)
38 #define UART_PIN_RX 17
39 #define UART_PIN_TX 18
40 
46 static const spi_conf_t spi_config[] = {
47  {
48  .dev = NRF_SPI0,
49  .sclk = 15,
50  .mosi = 13,
51  .miso = 14
52  }
53 };
54 
55 #define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
56 
62 static const i2c_conf_t i2c_config[] = {
63  {
64  .dev = NRF_TWI0,
65  .pin_scl = 7,
66  .pin_sda = 8,
67  .ppi = 0,
68  .speed = I2C_SPEED_NORMAL,
69  },
70  {
71  .dev = NRF_TWI1,
72  .pin_scl = 9,
73  .pin_sda = 10,
74  .ppi = 1,
75  .speed = I2C_SPEED_NORMAL,
76  }
77 };
78 
79 #define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0]))
80 
88 #define ADC_CONFIG {3, 4, 5, 6}
89 #define ADC_NUMOF (4)
90 
92 #ifdef __cplusplus
93 } /* end extern "C" */
94 #endif
95 
96 #endif /* PERIPH_CONF_H */
I2C configuration options.
SPI_Type * dev
SPI device to use.
Common clock configuration for some nrf51 based boards.
I2C_TypeDef * dev
USART device used.
SPI module configuration options.
normal mode: ~100kbit/s