zephyr/drivers
Paul Sokolovsky b7623a85b0 sensors: Redefine SENSOR_CHAN_HUMIDITY in percents, not milli-percents.
Based on the discussion in #5693, the reason why humidity was defined
in milli-percent was likely following Linux which defines it as such
in its sensor subsystem:
http://elixir.free-electrons.com/linux/latest/source/Documentation/ABI/testing/sysfs-bus-iio#L263

However, Linux defines temperature in milli-degrees either, but
Zephyr uses degrees (similarly for most other quantities). Typical
sensor resolution/precision for humidity is also on the order of 1%.

One of the existing drivers, th02.c, already returned values in
percents, and few apps showed it without conversion and/or units,
leading to confusing output to user like "54500".

So, switching units to percents, and update all the drivers and
sample apps.

For few drivers, there was also optimized conversion arithmetics
to avoid u64_t operations. (There're probably more places to
optimize it, and temperature conversion could use such optimization
too, but that's left for another patch.)

Fixes: #5693

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2018-02-05 14:10:39 +01:00
..
adc drivers: ti_adc108s102: remove newline from syslog messages 2018-01-09 10:59:41 -05:00
aio kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
bluetooth dts: add spi device support for SPI bluetooth modules 2018-01-22 18:08:51 -06:00
clock_control drivers: clock_control: simplify CLOCK_STM32_PLL_PREDIV1 config 2018-01-25 15:13:53 -06:00
console native: added stdin handling for shell 2018-02-02 07:48:46 -08:00
counter kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
crypto kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
display kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
dma kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
entropy drivers: entropy: stm32: use Kconfig to select HAL/LL sources 2018-01-23 08:46:16 -06:00
ethernet drivers: ethernet: eth_stm32_hal: use Kconfig to select HAL/LL sources 2018-01-23 08:46:16 -06:00
flash drivers: flash: Implement flash page layout api in mcux driver 2018-01-31 16:43:40 -06:00
gpio lpc: Add gpio mcux driver for lpc 2018-01-23 09:18:32 -06:00
grove kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
i2c drivers: i2c: stm32: use Kconfig to select HAL/LL sources 2018-01-23 08:46:16 -06:00
i2s drivers: Add Atmel SAM I2S (SSC) driver 2017-11-30 10:30:33 -05:00
ieee802154 drivers: cc2520: Change debug information 2018-02-02 16:50:07 +02:00
interrupt_controller drivers: ioapic: remove pre DTS kconfigs 2018-01-29 10:38:32 -06:00
ipm kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
led_strip kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
net drivers: net: loopback: Simulate real hw device 2017-11-15 12:27:14 +02:00
pci drivers: pci: when enumerating, only print the device info 2018-02-01 02:19:45 -05:00
pinmux drivers: spi_ll_stm32: Enable SPI driver for F1 family 2018-02-01 08:19:49 -06:00
pwm pwm: nrf5_sw: don't disable timer if another channel is still active 2018-01-31 19:51:12 -05:00
rtc kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
sensor sensors: Redefine SENSOR_CHAN_HUMIDITY in percents, not milli-percents. 2018-02-05 14:10:39 +01:00
serial drivers: serial: uart_stm32: fix call to LL_USART_SetBaudRate 2018-02-02 08:22:27 -06:00
spi drivers: spi_ll_stm32: Protect against null TX/RX buffer 2018-02-01 08:19:49 -06:00
timer timer: Corrected types in nRF system timer functions 2018-02-02 15:28:32 +01:00
usb usb: stm32: Introduce transfer method 2018-01-29 11:26:48 -06:00
watchdog watchdog: add a watchdog driver for the SAM0 family. 2018-01-04 13:18:25 -05:00
CMakeLists.txt irq: move shared irq support under drivers/interrupt_controller 2018-01-23 13:37:01 -06:00
Kconfig irq: move shared irq support under drivers/interrupt_controller 2018-01-23 13:37:01 -06:00