2014-06-11 14:59:24 +02:00
|
|
|
/*
|
2016-11-08 18:28:32 +01:00
|
|
|
* Copyright (C) 2014-2016 Freie Universität Berlin
|
2014-06-11 14:59:24 +02:00
|
|
|
*
|
2016-11-08 18:28:32 +01:00
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
2014-06-11 14:59:24 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2015-08-19 20:59:06 +02:00
|
|
|
* @ingroup boards_iotlab-m3
|
2014-06-11 14:59:24 +02:00
|
|
|
* @{
|
|
|
|
*
|
2014-10-21 16:52:30 +02:00
|
|
|
* @file
|
2015-08-19 20:59:06 +02:00
|
|
|
* @brief Peripheral MCU configuration for the iotlab-m3 board
|
2014-06-11 14:59:24 +02:00
|
|
|
*
|
|
|
|
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
|
2014-09-29 18:09:18 +02:00
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
2014-06-11 14:59:24 +02:00
|
|
|
*/
|
2014-09-29 18:09:18 +02:00
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#ifndef PERIPH_CONF_H
|
|
|
|
#define PERIPH_CONF_H
|
2014-06-11 14:59:24 +02:00
|
|
|
|
2016-03-01 13:59:13 +01:00
|
|
|
#include "periph_cpu.h"
|
2016-03-18 18:33:53 +01:00
|
|
|
#include "periph_conf_common.h"
|
2016-03-01 13:59:13 +01:00
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-06-11 14:59:24 +02:00
|
|
|
/**
|
2017-01-26 18:14:32 +01:00
|
|
|
* @name SPI configuration
|
2014-09-29 18:09:18 +02:00
|
|
|
* @{
|
2014-06-11 14:59:24 +02:00
|
|
|
*/
|
2016-11-08 18:28:32 +01:00
|
|
|
static const spi_conf_t spi_config[] = {
|
|
|
|
{
|
|
|
|
.dev = SPI1,
|
|
|
|
.mosi_pin = GPIO_PIN(PORT_A, 7),
|
|
|
|
.miso_pin = GPIO_PIN(PORT_A, 6),
|
|
|
|
.sclk_pin = GPIO_PIN(PORT_A, 5),
|
|
|
|
.cs_pin = GPIO_UNDEF,
|
|
|
|
.rccmask = RCC_APB2ENR_SPI1EN,
|
|
|
|
.apbbus = APB2
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
|
2014-09-29 18:09:18 +02:00
|
|
|
/** @} */
|
2014-06-11 14:59:24 +02:00
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#endif /* PERIPH_CONF_H */
|
2014-06-11 14:59:24 +02:00
|
|
|
/** @} */
|