drivers: sensor: use unified kernel API
Change-Id: I5d51e65105f9dee3d5eb49c60b9e5636ebd14df6 Signed-off-by: Baohong Liu <baohong.liu@intel.com>
This commit is contained in:
parent
fc5475fc46
commit
313700e26f
11 changed files with 16 additions and 16 deletions
|
@ -73,7 +73,7 @@ static int dht_sample_fetch(struct device *dev, enum sensor_channel chan)
|
|||
/* send start signal */
|
||||
gpio_pin_write(drv_data->gpio, CONFIG_DHT_GPIO_PIN_NUM, 0);
|
||||
|
||||
sys_thread_busy_wait(DHT_START_SIGNAL_DURATION);
|
||||
k_busy_wait(DHT_START_SIGNAL_DURATION);
|
||||
|
||||
gpio_pin_write(drv_data->gpio, CONFIG_DHT_GPIO_PIN_NUM, 1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue