zephyr/drivers
Andy Ross 32bb2395c2 timeout: Fix up API usage
Kernel timeouts have always been a 32 bit integer despite the
existence of generation macros, and existing code has been
inconsistent about using them.  Upcoming commits are going to make the
timeout arguments opaque, so fix things up to be rigorously correct.
Changes include:

+ Adding a K_TIMEOUT_EQ() macro for code that needs to compare timeout
  values for equality (e.g. with K_FOREVER or K_NO_WAIT).

+ Adding a k_msleep() synonym for k_sleep() which can continue to take
  integral arguments as k_sleep() moves away to timeout arguments.

+ Pervasively using the K_MSEC(), K_SECONDS(), et. al. macros to
  generate timeout arguments.

+ Removing the usage of K_NO_WAIT as the final argument to
  K_THREAD_DEFINE().  This is just a count of milliseconds and we need
  to use a zero.

This patch include no logic changes and should not affect generated
code at all.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2020-03-31 19:40:47 -04:00
..
adc timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
audio
bluetooth
can
clock_control timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
console timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
counter
crypto
debug
display timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
dma
eeprom
entropy
espi timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
ethernet
flash timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
gpio
hwinfo
i2c
i2s timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
ieee802154
interrupt_controller
ipm
kscan
led timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
led_strip
lora
modem
net
neural_net
pcie
peci
pinmux
ps2
ptp_clock
pwm
sensor timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
serial timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
spi
timer
usb
video
watchdog
wifi
CMakeLists.txt
Kconfig