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 license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
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 license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
Kconfig.template.shell_log_queue_timeout license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
shell_cmds.c shell: Fix undefined macro warnings 2019-07-24 16:34:31 -04:00
shell_dummy.c shell: prompt configuration during project generation 2019-04-30 10:40:04 -04:00
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: Refactor shell_history to use less RW memory 2019-05-30 09:44:03 -04:00
shell_log_backend.c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
shell_ops.c shell: Initialize va_list variables portably. 2019-06-07 12:08:35 +02:00
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: add select command 2019-05-24 11:04:42 +02:00
shell_vt100.h shell: add Ctrl+N and Ctrl+P meta-keys 2019-06-24 07:17:53 -04:00
shell_wildcard.c
shell_wildcard.h
shell.c shell: fix race condition in shell instance initialization 2020-01-28 17:24:46 -05:00