2016-03-18 18:33:53 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-03-07 10:28:23 +01:00
|
|
|
* @ingroup boards_iotlab-a8-m3
|
2016-03-18 18:33:53 +01:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
2018-03-07 10:28:23 +01:00
|
|
|
* @brief Peripheral MCU configuration for the iotlab-a8-m3 board
|
2016-03-18 18:33:53 +01:00
|
|
|
*
|
|
|
|
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
*/
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#ifndef PERIPH_CONF_H
|
|
|
|
#define PERIPH_CONF_H
|
2016-03-18 18:33:53 +01:00
|
|
|
|
|
|
|
#include "periph_cpu.h"
|
|
|
|
#include "periph_conf_common.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2017-01-26 18:14:32 +01:00
|
|
|
* @name SPI configuration
|
2016-03-18 18:33:53 +01:00
|
|
|
* @{
|
|
|
|
*/
|
2016-11-08 18:28:32 +01:00
|
|
|
static const spi_conf_t spi_config[] = {
|
|
|
|
{
|
|
|
|
.dev = SPI2,
|
|
|
|
.mosi_pin = GPIO_PIN(PORT_B, 15),
|
|
|
|
.miso_pin = GPIO_PIN(PORT_B, 14),
|
|
|
|
.sclk_pin = GPIO_PIN(PORT_B, 13),
|
2022-01-04 12:31:20 +01:00
|
|
|
.cs_pin = SPI_CS_UNDEF,
|
2016-11-08 18:28:32 +01:00
|
|
|
.rccmask = RCC_APB1ENR_SPI2EN,
|
|
|
|
.apbbus = APB1
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2019-07-18 15:14:29 +02:00
|
|
|
#define SPI_NUMOF ARRAY_SIZE(spi_config)
|
2016-03-18 18:33:53 +01:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#endif /* PERIPH_CONF_H */
|
2016-03-18 18:33:53 +01:00
|
|
|
/** @} */
|