zephyr/subsys/shell
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
..
modules shell: Fix device service module 2020-03-26 14:52:47 -04:00
CMakeLists.txt
Kconfig kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
Kconfig.backends shell: kconfig: Have SHELL_BACKEND_RTT depend on USE_SEGGER_RTT 2020-01-24 22:47:53 +01:00
Kconfig.template.shell_log_queue_size
Kconfig.template.shell_log_queue_timeout
shell_cmds.c
shell_dummy.c
shell_fprintf.c
shell_help.c global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
shell_help.h
shell_history.c
shell_log_backend.c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
shell_ops.c
shell_ops.h
shell_rtt.c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
shell_telnet_protocol.h
shell_telnet.c shell: telnet: Replace timer with a delayed work 2020-02-12 10:22:49 +02:00
shell_uart.c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
shell_utils.c shell: utils: Fix buffer overrun in shell_spaces_trim 2020-03-06 10:08:46 +02:00
shell_utils.h
shell_vt100.h
shell_wildcard.c
shell_wildcard.h
shell.c shell: fix race condition in shell instance initialization 2020-01-28 17:24:46 -05:00