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 drivers: audio: mpxxdtyy: Convert to new DT_INST macros 2020-03-26 11:55:52 -05:00
bluetooth drivers: bluetooth: hci: spi: Convert to new DT_INST macros 2020-03-30 14:49:27 -05:00
can net: Enable PM settings on network devices 2020-03-27 14:48:30 +02:00
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 global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT() 2020-03-31 07:18:06 +02:00
crypto drivers: stm32: Convert STM32 drivers to new DT_INST macros 2020-03-26 12:22:12 -05:00
debug tracing: cleanup and split segger/rtt configuration options 2020-02-07 15:58:05 -05:00
display timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
dma drivers: dma: sam0: fix macro definition 2020-03-30 08:32:17 -05:00
eeprom global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT() 2020-03-31 07:18:06 +02:00
entropy global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT() 2020-03-31 07:18:06 +02:00
espi timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
ethernet drivers: ethernet: sam_gmac: Convert to new DT_INST macros 2020-03-31 08:08:29 -05:00
flash timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
gpio drivers: gpio: Fix mcux lpc driver interrupts for port 1 2020-03-31 14:05:16 +02:00
hwinfo drivers: litex: Convert litex drivers to new DT_INST macros 2020-03-30 12:49:43 -05:00
i2c drivers: cc13xx_cc26xx: guard references to sleep states 2020-03-31 07:38:31 -05:00
i2s timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
ieee802154 drivers: ieee802154: Add a missing include 2020-03-31 07:18:06 +02:00
interrupt_controller drivers: intc: intc_shared_irq: Convert to new DT_INST macros 2020-03-30 14:39:56 -05:00
ipm drivers: ipm: fix build issue from DT macro conversion 2020-03-27 11:41:16 -05:00
kscan drivers: microchip: Convert microchip drivers to new DT_INST macros 2020-03-26 16:31:52 -05:00
led timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
led_strip drivers: led_strip: ws2812_gpio: Fixup one missed DT_INST conversion 2020-03-30 14:49:58 -05:00
lora drivers: lora: sx1276: Convert to new DT_INST macros 2020-03-30 14:48:46 -05:00
modem drivers: modem: wncm14a2a: Convert to new DT_INST macros 2020-03-30 14:38:58 -05:00
net net: Enable PM settings on network devices 2020-03-27 14:48:30 +02:00
neural_net kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
pcie global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
peci drivers: microchip: Convert microchip drivers to new DT_INST macros 2020-03-26 16:31:52 -05:00
pinmux drivers: pinmux: stm32: add pin for UART5 on H7 series 2020-03-30 12:58:10 -05:00
ps2 drivers: microchip: Convert microchip drivers to new DT_INST macros 2020-03-26 16:31:52 -05:00
ptp_clock kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
pwm drivers: litex: Convert litex drivers to new DT_INST macros 2020-03-30 12:49:43 -05:00
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 drivers: cc13xx_cc26xx: guard references to sleep states 2020-03-31 07:38:31 -05:00
timer global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT() 2020-03-31 07:18:06 +02:00
usb drivers: usb: usb_dw: Convert to new DT_INST macros 2020-03-30 08:29:30 -05:00
video drivers: video: mt9m114: Convert to new DT_INST macros 2020-03-27 11:06:06 -05:00
watchdog drivers: atmel sam0: Convert atmel sam0 drivers to new DT_INST macros 2020-03-27 11:02:57 -05:00
wifi drivers: wifi: winc1500: Convert to new DT_INST macros 2020-03-30 13:15:43 -05:00
CMakeLists.txt drivers: peci: Add Kconfig for PECI driver 2020-03-13 18:53:04 +02:00
Kconfig drivers: peci: Add Kconfig for PECI driver 2020-03-13 18:53:04 +02:00