Skip to content

Commit

Permalink
Merge pull request #8708 from aabadie/boards/params/iotlab
Browse files Browse the repository at this point in the history
boards/iotlab*: fix driver params usage
  • Loading branch information
miri64 committed Mar 8, 2018
2 parents 6284766 + 79ab920 commit 6ca74fa
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 274 deletions.
14 changes: 7 additions & 7 deletions boards/common/iotlab/include/board_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ extern "C" {
/** @} */

/**
* @brief Define the interface to the AT86RF231 radio
* @name Define the interface to the AT86RF231 radio
*
* {spi bus, spi speed, cs pin, int pin, reset pin, sleep pin}
* @{
*/
#define AT86RF2XX_PARAMS_BOARD {.spi = SPI_DEV(0), \
.spi_clk = SPI_CLK_5MHZ, \
.cs_pin = GPIO_PIN(PORT_A, 4), \
.int_pin = GPIO_PIN(PORT_C, 4), \
.sleep_pin = GPIO_PIN(PORT_A, 2), \
.reset_pin = GPIO_PIN(PORT_C, 1)}
#define AT86RF2XX_PARAM_CS GPIO_PIN(PORT_A, 4)
#define AT86RF2XX_PARAM_INT GPIO_PIN(PORT_C, 4)
#define AT86RF2XX_PARAM_SLEEP GPIO_PIN(PORT_A, 2)
#define AT86RF2XX_PARAM_RESET GPIO_PIN(PORT_C, 1)
/** @} */

/**
* @name LED pin definitions and handlers
Expand Down
59 changes: 0 additions & 59 deletions boards/common/iotlab/include/l3g4200d_params.h

This file was deleted.

62 changes: 0 additions & 62 deletions boards/common/iotlab/include/lsm303dlhc_params.h

This file was deleted.

14 changes: 4 additions & 10 deletions boards/iotlab-a8-m3/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,16 @@ extern "C" {
* @name Define the interface for the L3G4200D gyroscope
* @{
*/
#define L3G4200D_I2C I2C_0
#define L3G4200D_ADDR 0x68
#define L3G4200D_DRDY GPIO_PIN(PORT_C,9)
#define L3G4200D_INT GPIO_PIN(PORT_C,6)
#define L3G4200D_PARAM_INT2 GPIO_PIN(PORT_C, 9)
#define L3G4200D_PARAM_INT1 GPIO_PIN(PORT_C, 6)
/** @} */

/**
* @name Define the interface to the LSM303DLHC accelerometer and magnetometer
* @{
*/
#define LSM303DLHC_I2C I2C_0
#define LSM303DLHC_ACC_ADDR (0x19)
#define LSM303DLHC_MAG_ADDR (0x1e)
#define LSM303DLHC_INT1 GPIO_PIN(PORT_B,12)
#define LSM303DLHC_INT2 GPIO_PIN(PORT_B,2)
#define LSM303DLHC_DRDY GPIO_PIN(PORT_A,11)
#define LSM303DLHC_PARAM_ACC_PIN GPIO_PIN(PORT_B, 12)
#define LSM303DLHC_PARAM_MAG_PIN GPIO_PIN(PORT_A, 11)
/** @} */

#ifdef __cplusplus
Expand Down
31 changes: 8 additions & 23 deletions boards/iotlab-m3/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,47 +39,32 @@ extern "C" {
* @{
*/
#define EXTFLASH_SPI SPI_DEV(1)
#define EXTFLASH_CS GPIO_PIN(PORT_A,11)
#define EXTFLASH_WRITE GPIO_PIN(PORT_C,6)
#define EXTFLASH_HOLD GPIO_PIN(PORT_C,9)
/** @} */

/**
* @name Define the interface to the ISL29020 light sensor
* @{
*/
#define ISL29020_I2C I2C_0
#define ISL29020_ADDR 0x44
#define EXTFLASH_CS GPIO_PIN(PORT_A, 11)
#define EXTFLASH_WRITE GPIO_PIN(PORT_C, 6)
#define EXTFLASH_HOLD GPIO_PIN(PORT_C, 9)
/** @} */

/**
* @name Define the interface to the LPS331AP pressure sensor
* @{
*/
#define LPS331AP_I2C I2C_0
#define LPS331AP_ADDR 0x5c
#define LPS331AP_PARAM_ADDR (0x5C)
/** @} */

/**
* @name Define the interface for the L3G4200D gyroscope
* @{
*/
#define L3G4200D_I2C I2C_0
#define L3G4200D_ADDR 0x68
#define L3G4200D_DRDY GPIO_PIN(PORT_C,0)
#define L3G4200D_INT GPIO_PIN(PORT_C,5)
#define L3G4200D_PARAM_INT2 GPIO_PIN(PORT_C, 0)
#define L3G4200D_PARAM_INT1 GPIO_PIN(PORT_C, 5)
/** @} */

/**
* @name Define the interface to the LSM303DLHC accelerometer and magnetometer
* @{
*/
#define LSM303DLHC_I2C I2C_0
#define LSM303DLHC_ACC_ADDR (0x19)
#define LSM303DLHC_MAG_ADDR (0x1e)
#define LSM303DLHC_INT1 GPIO_PIN(PORT_B,12)
#define LSM303DLHC_INT2 GPIO_PIN(PORT_B,1)
#define LSM303DLHC_DRDY GPIO_PIN(PORT_B,2)
#define LSM303DLHC_PARAM_ACC_PIN GPIO_PIN(PORT_B, 12)
#define LSM303DLHC_PARAM_MAG_PIN GPIO_PIN(PORT_B, 2)
/** @} */

#ifdef __cplusplus
Expand Down
57 changes: 0 additions & 57 deletions boards/iotlab-m3/include/isl29020_params.h

This file was deleted.

56 changes: 0 additions & 56 deletions boards/iotlab-m3/include/lps331ap_params.h

This file was deleted.

0 comments on commit 6ca74fa

Please sign in to comment.