drivers: sensor: use unified kernel API

Change-Id: I5d51e65105f9dee3d5eb49c60b9e5636ebd14df6
Signed-off-by: Baohong Liu <baohong.liu@intel.com>
This commit is contained in:
Baohong Liu 2016-11-30 15:14:07 -08:00 committed by Anas Nashif
commit 313700e26f
11 changed files with 16 additions and 16 deletions

View file

@ -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);