zephyr/subsys/usb
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
..
class kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
bos.c usb: fix BOS descriptor registration 2021-02-02 21:29:23 -05:00
CMakeLists.txt usb: add optional work queue 2020-09-16 13:32:22 -05:00
Kconfig usb: drivers: Fix ZLP handling for Nordic driver. 2020-11-17 18:06:26 +01:00
os_desc.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
os_desc.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
usb_descriptor.c code-guideline: Fixing code violation 10.4 Rule 2020-10-01 17:13:29 -04:00
usb_descriptor.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
usb_device.c usb: drivers: Fix ZLP handling for Nordic driver. 2020-11-17 18:06:26 +01:00
usb_transfer.c usb: fix possible deadlock in usb_transfer_sync() 2021-01-26 07:21:13 -05:00
usb_transfer.h usb: fix header language linkage 2020-09-16 13:32:22 -05:00
usb_work_q.c usb: add optional work queue 2020-09-16 13:32:22 -05:00
usb_work_q.h usb: add optional work queue 2020-09-16 13:32:22 -05:00