zephyr/subsys/usb/class
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
..
audio usb: audio: Convert drivers to new DT device macros 2020-12-18 07:50:49 -06:00
dfu usb: dfu: add separate pid for dfu mode 2020-12-20 13:04:45 -05:00
hid usb: hid: remove usb_hid_descriptor from public header 2021-02-28 16:50:24 -05:00
netusb usb: netusb: make ECM MAC address user-configurable 2020-10-17 16:36:52 +03:00
bluetooth.c usb: bluetooth: fix OUT buffer handling 2021-02-14 16:38:56 -05:00
bt_h4.c usb: hci: Remove handling of unused DC statuses. 2020-10-20 10:04:32 -05:00
cdc_acm.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
CMakeLists.txt usb: move USB MSC configuration to its own Kconfig file 2021-02-19 14:39:26 -05:00
Kconfig usb: move USB Loopback class configuration to its own Kconfig 2021-02-19 14:39:26 -05:00
Kconfig.bt usb: move USB Bluetooth classes configuration to its own Kconfig 2021-02-19 14:39:26 -05:00
Kconfig.cdc usb: move CDC ACM configuration to to its own Kconfig file 2021-02-19 14:39:26 -05:00
Kconfig.msc usb: mass storage: add missing prompt to Kconfig 2021-03-01 09:27:57 -05:00
Kconfig.template.composite_device_number kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.test usb: move USB Loopback class configuration to its own Kconfig 2021-02-19 14:39:26 -05:00
loopback.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
msc.c usb: move USB MSC configuration to its own Kconfig file 2021-02-19 14:39:26 -05:00