zephyr/samples
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
..
application_development cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
basic timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
bluetooth boards: arm: nrf52840_pca10090: rename board to nrf9160dk_nrf52840 2020-03-31 15:16:08 +02:00
boards timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
cpp_synchronization cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
display timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
drivers timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
hello_world cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
mpu cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
net samples: net: gptp: Remove Kconfig MAC address for sam_e70_xplained 2020-03-31 08:08:29 -05:00
nfc/nfc_hello timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
philosophers timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
portability cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
posix cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
scheduler timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
sensor timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
shields samples: shields: Convert to new DT_INST macros 2020-03-30 17:05:30 -05:00
smp cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
subsys timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
synchronization timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
testing/integration cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
userspace cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
video cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
classic.rst
index.rst