forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sensors: renamed hdc1008 driver into ti_hdc
Hdc1008 driver is renamed into ti_hdc to prepare it to support all available Texas Instruments HDC sensors (e.g. hdc1080, hdc2080). Signed-off-by: Nikos Oikonomou <[email protected]>
- Loading branch information
1 parent
8e2b9b4
commit 4a38cae
Showing
13 changed files
with
91 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Kconfig - TI_HDC temperature and humidity sensor configuration options | ||
|
||
# | ||
# Copyright (c) 2016 Intel Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
menuconfig TI_HDC | ||
bool "Texas Instruments Temperature and Humidity Sensor (e.g. HDC1008)" | ||
depends on I2C && HAS_DTS_I2C && GPIO && HAS_DTS_GPIO | ||
help | ||
Enable driver for TI temperature and humidity sensors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2016 Intel Corporation | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#ifndef ZEPHYR_DRIVERS_SENSOR_TI_HDC_TI_HDC_H_ | ||
#define ZEPHYR_DRIVERS_SENSOR_TI_HDC_TI_HDC_H_ | ||
|
||
#include <kernel.h> | ||
|
||
#define TI_HDC_I2C_ADDRESS 0x40 | ||
|
||
#define TI_HDC_REG_TEMP 0x0 | ||
#define TI_HDC_REG_HUMIDITY 0x1 | ||
#define TI_HDC_REG_MANUFID 0xFE | ||
#define TI_HDC_REG_DEVICEID 0xFF | ||
|
||
#define TI_HDC_MANUFID 0x5449 | ||
#define TI_HDC_DEVICEID 0x1000 | ||
|
||
struct ti_hdc_data { | ||
struct device *i2c; | ||
struct device *gpio; | ||
struct gpio_callback gpio_cb; | ||
u16_t t_sample; | ||
u16_t rh_sample; | ||
struct k_sem data_sem; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters