Skip to content

Commit

Permalink
Merge pull request #14384 from basilfx/feature/silabs_cleanup
Browse files Browse the repository at this point in the history
boards/sltb001a+slstk3402a: minor updates to headers
  • Loading branch information
leandrolanzieri authored Jun 29, 2020
2 parents f372beb + f72f276 commit ef4835a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
3 changes: 0 additions & 3 deletions boards/slstk3402a/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ extern "C" {
* Connection to the on-board temperature/humidity sensor (Si7021).
* @{
*/
#ifndef SI7021_ENABLED
#define SI7021_ENABLED (1)
#endif
#define SI7021_I2C I2C_DEV(0)
#define SI7021_EN_PIN GPIO_PIN(PB, 10)

Expand Down
2 changes: 1 addition & 1 deletion boards/sltb001a/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void board_init(void)
pic_write(ICM20648_PIC_ADDR, 1 << ICM20648_PIC_EN_BIT);
#endif

#if defined(MODULE_BMP280) || defined(MODULE_SI7021) || SI1133_ENABLED || SI7210A_ENABLED
#if defined(MODULE_BMP280) || defined(MODULE_SI7021) || SI1133_ENABLED || SI7210_ENABLED
/* enable the environmental sensors */
pic_write(ENV_SENSE_PIC_ADDR, 1 << ENV_SENSE_PIC_BIT);
#endif
Expand Down
12 changes: 6 additions & 6 deletions boards/sltb001a/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extern "C" {
/**
* @name Environmental sensors configuration
*
* Pin for enabling environmental sensors (BMP280, Si1133, Si7021, Si7210A).
* Pin for enabling environmental sensors (BMP280, Si1133, Si7021, Si7210).
* @{
*/
#define ENV_SENSE_PIC_ADDR (0x01)
Expand Down Expand Up @@ -180,14 +180,14 @@ extern "C" {
/**
* @name Hall-effect sensor configuration
*
* Connection to the on-board hall-effect sensor (Si7210A). Available on Rev. A02
* boards only.
* Connection to the on-board hall-effect sensor (Si7210). Available on
* Rev. A02 boards only.
* @{
*/
#ifndef SI7210A_ENABLED
#define SI7210A_ENABLED (0)
#ifndef SI7210_ENABLED
#define SI7210_ENABLED (0)
#endif
#define SI7210A_I2C I2C_DEV(0)
#define SI7210_I2C I2C_DEV(0)
/** @} */

/**
Expand Down

0 comments on commit ef4835a

Please sign in to comment.