/* * 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. */ /** * @ingroup boards_iotlab-m3 * @{ * * @file * @brief Peripheral MCU configuration for the iotlab-m3 board * * @author Thomas Eichinger * @author Hauke Petersen */ #ifndef PERIPH_CONF_H_ #define PERIPH_CONF_H_ #include "periph_cpu.h" #include "periph_conf_common.h" #ifdef __cplusplus extern "C" { #endif /** * @brief SPI configuration * @{ */ #define SPI_NUMOF (1U) #define SPI_0_EN 1 /* SPI 0 device configuration */ #define SPI_0_DEV SPI2 #define SPI_0_CLKEN() (periph_clk_en(APB1, RCC_APB1ENR_SPI2EN)) #define SPI_0_CLKDIS() (periph_clk_dis(APB1, RCC_APB1ENR_SPI2EN)) #define SPI_0_BUS_DIV 1 /* 1 -> SPI runs with full CPU clock, 0 -> half CPU clock */ /* SPI 0 pin configuration */ #define SPI_0_CLK_PIN GPIO_PIN(PORT_B,13) #define SPI_0_MISO_PIN GPIO_PIN(PORT_B,14) #define SPI_0_MOSI_PIN GPIO_PIN(PORT_B,15) /** @} */ #ifdef __cplusplus } #endif #endif /* PERIPH_CONF_H_ */ /** @} */