diff --git a/boards/pba-d-01-kw2x/include/board.h b/boards/pba-d-01-kw2x/include/board.h index 6cbee46b8c2c..30e084c2f3f5 100644 --- a/boards/pba-d-01-kw2x/include/board.h +++ b/boards/pba-d-01-kw2x/include/board.h @@ -78,62 +78,14 @@ extern "C" * @name KW2XRF configuration * * {spi bus, cs pin, int pin, spi speed,} - */ -#define KW2XRF_PARAMS_BOARD {.spi = SPI_DEV(1), \ - .spi_clk = SPI_CLK_10MHZ, \ - .cs_pin = GPIO_PIN(KW2XDRF_PORT, KW2XDRF_PCS0_PIN), \ - .int_pin = GPIO_PIN(KW2XDRF_PORT, KW2XDRF_IRQ_PIN) } -#define KW2XRF_SHARED_SPI 0 -/** @}*/ - -/** - * @name Define the interface for the HDC1000 humidity sensor - * @{ - */ -#define HDC1000_I2C (I2C_DEV(0)) -#define HDC1000_ADDR (0x43) -/** @} */ - -/** - * @name Define the interface for the MAG3110 magnetometer sensor - * @{ - */ -#define MAG3110_I2C (I2C_DEV(0)) -#define MAG3110_ADDR (0x0E) -/** @} */ - -/** - * @name Define the interface for the MMA8652 tri-axis accelerometer sensor * @{ */ -#define MMA8652_I2C (I2C_DEV(0)) -#define MMA8652_ADDR (0x1D) -/** @} */ - -/** - * @name Define the interface for the MPL3115A2 pressure sensor - * @{ - */ -#define MPL3115A2_I2C (I2C_DEV(0)) -#define MPL3115A2_ADDR (0x60) -/** @} */ - -/** - * @name Define the interface for the TCS3772 light sensor - * @{ - */ -#define TCS37727_PARAMS { .i2c = I2C_DEV(0), \ - .addr = 0x29, \ - .atime = TCS37727_PARAM_ATIME } -/** @} */ - -/** - * @name Define the interface for the TMP006 IR-Termopile sensor - * @{ - */ -#define TMP006_I2C (I2C_DEV(0)) -#define TMP006_ADDR (0x41) -/** @} */ +#define KW2XRF_PARAM_SPI SPI_DEV(1) +#define KW2XRF_PARAM_SPI_CLK (SPI_CLK_10MHZ) +#define KW2XRF_PARAM_CS GPIO_PIN(KW2XDRF_PORT, KW2XDRF_PCS0_PIN) +#define KW2XRF_PARAM_INT GPIO_PIN(KW2XDRF_PORT, KW2XDRF_IRQ_PIN) +#define KW2XRF_SHARED_SPI (0) +/** @}*/ /** * @brief Initialize board specific hardware, including clock, LEDs and std-IO diff --git a/boards/pba-d-01-kw2x/include/mag3110_params.h b/boards/pba-d-01-kw2x/include/mag3110_params.h deleted file mode 100644 index d85c9c3d8ea5..000000000000 --- a/boards/pba-d-01-kw2x/include/mag3110_params.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2017 HAW Hamburg - * - * 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_pba-d-01-kw2x - * @{ - * - * @file - * @brief MAG3110 board specific configuration - * - * @author Sebastian Meiling - */ - -#ifndef MAG3110_PARAMS_H -#define MAG3110_PARAMS_H - -#include "board.h" -#include "saul_reg.h" -#include "mag3110.h" -#include "mag3110_reg.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @brief MAG3310 configuration - */ -static const mag3110_params_t mag3110_params[] = -{ - { - .i2c = MAG3110_I2C, - .addr = MAG3110_ADDR, - .type = MAG3110_ID, - .dros = MAG3110_DROS_DEFAULT, - .offset = { 0, 0, 0 } - } -}; - -/** - * @brief Additional meta information to keep in the SAUL registry - */ -static const saul_reg_info_t mag3110_saul_info[] = -{ - { - .name = "mag3110" - } -}; - -#ifdef __cplusplus -} -#endif - -#endif /* MAG3110_PARAMS_H */ -/** @} */ diff --git a/boards/pba-d-01-kw2x/include/mma8x5x_params.h b/boards/pba-d-01-kw2x/include/mma8x5x_params.h deleted file mode 100644 index 9e84326f0f43..000000000000 --- a/boards/pba-d-01-kw2x/include/mma8x5x_params.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2016 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_pba-d-01-kw2x - * @{ - * - * @file - * @brief MMA8x5x board specific configuration - * - * @author Cenk Gündoğan - * @author Hauke Petersen - */ - -#ifndef MMA8X5X_PARAMS_H -#define MMA8X5X_PARAMS_H - -#include "board.h" -#include "saul_reg.h" -#include "mma8x5x.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @brief MMA852 configuration - */ -static const mma8x5x_params_t mma8x5x_params[] = -{ - { - .i2c = MMA8652_I2C, - .addr = MMA8652_ADDR, - .type = MMA8X5X_TYPE_MMA8652, - .rate = MMA8X5X_RATE_200HZ, - .range = MMA8X5X_RANGE_2G, - .offset = { 0, 0, 0 } - } -}; - -/** - * @brief Additional meta information to keep in the SAUL registry - */ -static const saul_reg_info_t mma8x5x_saul_info[] = -{ - { - .name = "mma8652" - } -}; - -#ifdef __cplusplus -} -#endif - -#endif /* MMA8X5X_PARAMS_H */ -/** @} */