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

Merge pull request #14384 from basilfx/feature/silabs_cleanup

boards/sltb001a+slstk3402a: minor updates to headers
This commit is contained in:
Leandro Lanzieri 2020-06-29 08:45:21 +02:00 committed by GitHub
commit ef4835a092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 10 deletions

View File

@ -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)

View File

@ -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

View File

@ -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)
@ -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)
/** @} */
/**