mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-28 18:48:48 +00:00
Convert code to use u{8,16,32,64}_t and s{8,16,32,64}_t instead of C99 integer types. Jira: ZEP-2051 Change-Id: I08f51e2bfd475f6245771c1bd2df7ffc744c48c4 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
32 lines
609 B
C
32 lines
609 B
C
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _SENSOR_HDC1008
|
|
#define _SENSOR_HDC1008
|
|
|
|
#include <kernel.h>
|
|
|
|
#define HDC1008_I2C_ADDRESS 0x40
|
|
|
|
#define HDC1008_REG_TEMP 0x0
|
|
#define HDC1008_REG_HUMIDITY 0x1
|
|
#define HDC1000_MANUFID 0xFE
|
|
#define HDC1000_DEVICEID 0xFF
|
|
|
|
struct hdc1008_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;
|
|
};
|
|
|
|
#define SYS_LOG_DOMAIN "HDC1008"
|
|
#define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
|
|
#include <logging/sys_log.h>
|
|
#endif
|