boards/iotlab-m3/include/periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2016 Freie Universit├Ąt Berlin
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 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 static const spi_conf_t spi_config[] = {
35  {
36  .dev = SPI1,
37  .mosi_pin = GPIO_PIN(PORT_A, 7),
38  .miso_pin = GPIO_PIN(PORT_A, 6),
39  .sclk_pin = GPIO_PIN(PORT_A, 5),
40  .cs_pin = GPIO_UNDEF,
41  .rccmask = RCC_APB2ENR_SPI1EN,
42  .apbbus = APB2
43  }
44 };
45 
46 #define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
47 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif /* PERIPH_CONF_H */
54 
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Peripheral MCU configuration for the iotlab-m3 board.
#define GPIO_UNDEF
Define a custom GPIO_UNDEF value.
SPI module configuration options.
cc2538_ssi_t * dev
SSI device.