zephyr/drivers/console
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
..
CMakeLists.txt drivers/console: Removing left-over cmake directive about telnet 2020-03-16 11:29:54 -04:00
Kconfig console: kconfig: Have CONSOLE_HANDLER dep. on SERIAL_SUPPORT_INTERRUPT 2020-01-24 22:48:40 +01:00
ipm_console_receiver.c treewide: use full path to console/ipm_console.h header 2020-01-26 17:52:12 +01:00
ipm_console_sender.c treewide: use full path to console/ipm_console.h header 2020-01-26 17:52:12 +01:00
native_posix_console.c global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
ram_console.c
rtt_console.c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
uart_console.c console: uart_console: Use static for static functions 2020-03-11 09:17:38 -04:00
uart_mcumgr.c treewide: use full path to console/uart_mcumgr.h header 2020-01-26 17:52:12 +01:00
uart_pipe.c treewide: use full path to console/uart_pipe.h header 2020-01-26 17:52:12 +01:00
xtensa_sim_console.c console: xtensa_sim_console: Cleanup and use static keyword 2020-03-11 09:17:38 -04:00