zephyr/boards/arm/efr32mg_sltb004a/board.h
Christian Taedcke 2872af1a93 boards: efr32mg_sltb004a: Add support for sensor ccs811
The on-board sensor has a enable pin that must be pulled
high in order to power the sensor.
Since no i2c sensor connected to ENV_I2C is supported by zephyr yet,
changed the pins of i2c1 to be connected to CCS811_I2C pins.

Signed-off-by: Christian Taedcke <christian.taedcke@lemonbeat.com>
2020-07-08 15:31:03 -05:00

17 lines
321 B
C

/*
* Copyright (c) 2020 Christian Taedcke
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __INC_BOARD_H
#define __INC_BOARD_H
/* CCS811 specific pins */
#ifdef CONFIG_CCS811
#define CCS811_PWR_ENABLE_GPIO_NAME "GPIO_F"
#define CCS811_PWR_ENABLE_GPIO_PIN 14
#endif /* CONFIG_CCS811 */
#endif /* __INC_BOARD_H */