Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 6 additions & 54 deletions boards/pba-d-01-kw2x/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
60 changes: 0 additions & 60 deletions boards/pba-d-01-kw2x/include/mag3110_params.h

This file was deleted.

61 changes: 0 additions & 61 deletions boards/pba-d-01-kw2x/include/mma8x5x_params.h

This file was deleted.