zephyr/drivers/sensor
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
..
adt7420 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
adxl345
adxl362 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
adxl372 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
ak8975
amg88xx kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
ams_iAQcore
apds9960 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
bma280 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
bmc150_magn kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
bme280 drivers: bme280: clean up array usage 2021-02-23 10:34:19 -05:00
bme680
bmg160 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
bmi160 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
bmi270 driver: sensor: bmi270 Added support 2021-02-22 17:58:00 -05:00
bmm150
bq274xx
ccs811 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
dht
dps310 drivers: sensor: dps310 fix out of bounds write 2021-02-09 10:44:43 -05:00
ens210
fxas21002 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
fxos8700 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
grove sensors: grove: temp: Convert to use DEVICE_DT_GET 2021-03-02 11:28:30 -06:00
hmc5883l kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
hp206c
hts221 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
icm42605 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
iis2dh kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
iis2dlpc kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
iis2iclx kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
iis2mdc kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
iis3dhhc kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
isl29035 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
ism330dhcx kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
lis2dh kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
lis2ds12 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
lis2dw12 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
lis2mdl kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
lis3mdl kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
lps22hb
lps22hh kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
lps25hb
lsm6ds0
lsm6dsl kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
lsm6dso kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
lsm9ds0_gyro kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
lsm9ds0_mfd
lsm303dlhc_magn
max6675 drivers: sensor: add support for MAX6675 2021-02-17 14:33:29 +01:00
max17055 max17055: Fix current conversion from MAX17055 unit to milliamps 2021-01-30 10:45:39 -05:00
max30101
max44009
mchp_tach_xec
mcp9808 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
mcux_acmp drivers: sensor: mcux_acmp: fix expansion-to-defined warning 2021-02-19 13:15:47 -05:00
mpr
mpu6050 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
ms5607
ms5837
nrf5 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
nuvoton_tach_npcx driver: sensor: npcx: add tachometer sensor support. 2021-02-22 17:56:19 -05:00
nxp_kinetis_temp sensors: nxp_kinetis_temp: Convert to use DEVICE_DT_GET 2021-03-02 11:28:30 -06:00
opt3001
pms7003
qdec_nrfx drivers: sensor: nrf: fix dependencies for QDEC_NRFX 2021-02-17 22:34:20 +03:00
sht3xd kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
si7006
si7055
si7060
sm351lt kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
stts751 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
sx9500 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
th02
ti_hdc kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
tmp007 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
tmp112
tmp116
vcnl4040 kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
vl53l0x
wsen_itds
CMakeLists.txt driver: sensor: bmi270 Added support 2021-02-22 17:58:00 -05:00
Kconfig shell: add an option for minimal default configuration 2021-02-27 10:26:33 +01:00
sensor_handlers.c
sensor_shell.c
shell_battery.c sensor: shell: add missing va_ends 2021-01-18 19:08:04 +01:00