2872af1a93
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>
17 lines
321 B
C
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 */
|