zephyr/drivers/console
James Harris b10428163a kernel: sem: add K_SEM_MAX_LIMIT
Currently there is no way to distinguish between a caller
explicitly asking for a semaphore with a limit that
happens to be `UINT_MAX` and a semaphore that just
has a limit "as large as possible".

Add `K_SEM_MAX_LIMIT`, currently defined to `UINT_MAX`, and akin
to `K_FOREVER` versus just passing some very large wait time.

In addition, the `k_sem_*` APIs were type-confused, where
the internal data structure was `uint32_t`, but the APIs took
and returned `unsigned int`. This changes the underlying data
structure to also use `unsigned int`, as changing the APIs
would be a (potentially) breaking change.

These changes are backwards-compatible, but it is strongly suggested
to take a quick scan for `k_sem_init` and `K_SEM_DEFINE` calls with
`UINT_MAX` (or `UINT32_MAX`) and replace them with `K_SEM_MAX_LIMIT`
where appropriate.

Signed-off-by: James Harris <james.harris@intel.com>
2021-03-05 08:13:53 -06:00
..
CMakeLists.txt console: ipm_console: Add console over IPM 2020-09-04 07:55:52 -04:00
Kconfig console: semihosting: add Aarch64 support 2021-02-24 08:01:18 -05:00
Kconfig.gsm_mux drivers: gsm_mux: Support GSM 07.10 muxing protocol 2020-04-17 10:15:54 +03:00
gsm_mux.c drivers: modem: gsm_ppp: Enable start/stop 2020-10-19 18:29:02 +02:00
gsm_mux.h drivers: modem: gsm_ppp: Enable start/stop 2020-10-19 18:29:02 +02:00
ipm_console.c device: Fixing new left over device instance made constant 2020-09-15 09:18:43 -05:00
ipm_console_receiver.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
ipm_console_sender.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
native_posix_console.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ram_console.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
rtt_console.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
semihost_console.c console: semihosting: add Aarch64 support 2021-02-24 08:01:18 -05:00
uart_console.c drivers: console: Fix path to mcumgr header 2020-11-27 18:18:50 +01:00
uart_mcumgr.c misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
uart_mux.c drivers: console: Convert DEVICE_AND_API_INIT to DEVICE_DEFINE 2020-12-18 13:25:22 -06:00
uart_mux_internal.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
uart_pipe.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
xtensa_sim_console.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00