zephyr/drivers/ieee802154
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
Kconfig
Kconfig.cc13xx_cc26xx
Kconfig.cc1200
Kconfig.cc2520
Kconfig.dw1000
Kconfig.kw41z
Kconfig.mcr20a
Kconfig.nrf5 drivers: ieee802154: Fix problem with binding IRQ handlers in shim layer 2021-03-05 12:56:15 +01:00
Kconfig.rf2xx
ieee802154_cc13xx_cc26xx.c drivers: ieee802154: Convert DEVICE_AND_API_INIT to DEVICE_DEFINE 2020-12-19 20:01:06 -05:00
ieee802154_cc13xx_cc26xx.h
ieee802154_cc13xx_cc26xx_subg.c drivers: ieee802154: Convert DEVICE_AND_API_INIT to DEVICE_DEFINE 2020-12-19 20:01:06 -05:00
ieee802154_cc13xx_cc26xx_subg.h
ieee802154_cc1200.c
ieee802154_cc1200.h
ieee802154_cc1200_regs.h
ieee802154_cc1200_rf.h
ieee802154_cc2520.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
ieee802154_cc2520.h
ieee802154_cc2520_regs.h
ieee802154_dw1000.c drivers: ieee802154: Convert drivers to new DT device macros 2020-12-18 07:59:07 -06:00
ieee802154_dw1000_regs.h
ieee802154_kw41z.c
ieee802154_mcr20a.c drivers: ieee802154: Convert DEVICE_AND_API_INIT to DEVICE_DEFINE 2020-12-19 20:01:06 -05:00
ieee802154_mcr20a.h
ieee802154_mcr20a_regs.h
ieee802154_nrf5.c drivers: ieee802154: Fix problem with binding IRQ handlers in shim layer 2021-03-05 12:56:15 +01:00
ieee802154_nrf5.h drivers: ieee802154_nrf5: Fix inclusion of ieee802154_radio.h 2021-02-16 07:57:15 -06:00
ieee802154_rf2xx.c drivers: ieee802154: Convert drivers to new DT device macros 2020-12-18 07:59:07 -06:00
ieee802154_rf2xx.h
ieee802154_rf2xx_iface.c
ieee802154_rf2xx_iface.h
ieee802154_rf2xx_regs.h
ieee802154_uart_pipe.c
ieee802154_uart_pipe.h