1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/pba-d-01-kw2x: fix driver params usage

This commit is contained in:
Alexandre Abadie 2018-02-28 18:29:33 +01:00
parent 2e066e8693
commit c4769f1cc4
3 changed files with 6 additions and 175 deletions

View File

@ -78,63 +78,15 @@ 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
#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)
/** @}*/
/**
* @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)
/** @} */
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/

View File

@ -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 <s@mlng.net>
*/
#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 */
/** @} */

View File

@ -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 <mail@cgundogan.de>
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#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 */
/** @} */