Commit graph zephyr/drivers/sensor
Author SHA1 Message Date
Jilay Pandya
b70f8bf048 drivers: max30101 replace a bunch of BUILD_ASSERTs
use min-len/max-len for asserting the correct length of the
array, drop corresponding build asserts

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2026-06-17 08:02:10 +02:00
Armando Visconti
2b61140427 drivers: sensors: st: fix shub using 8-bit i2c_addr
Init the sensorhub targets using 8-bit i2c_addr for those drivers
when their STMEMSC API requires it.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-06-16 23:15:38 +02:00
Albert Jakieła
2c497f5705 sensor: pac194x: add support for individual channel fetch
Previously, the `pac194x_sample_fetch` function would always read data
from all enabled physical channels over the I2C bus, regardless of which
specific sensor channel was actually requested by the caller. This commit
updates the fetch routine to respect the requested channel.

Signed-off-by: Albert Jakieła <jakiela@google.com>
2026-06-13 08:34:26 +02:00
Albert Jakieła
fa95c398aa sensor: pac194x: Add microchip,refresh-mode property
Add microchip,refresh-mode property to Mictochip PAC194X/195X.
This property allows configuring the sensor's refresh behavior
directly from the devicetree.

Signed-off-by: Albert Jakieła <jakiela@google.com>
2026-06-13 08:34:26 +02:00
Alban Chauvel
0e987ec1ef drivers: sensor: max30101: limit slot values in Multi-LED mode
In Multi-LED mode, nothing prevents sending an incorrect slot to the chip.
One could unintentionally send a "reserved" slot code, which could result
in unexpected behavior. Values must be between 0 (time slot disabled)
and 3 (Green LED channel). For the MAX30102, the max value should be 2.
This fix limits the sensor binding using min/max properties and simplifies
the translate map generation by testing if the time slot is not disabled.

Signed-off-by: Alban Chauvel <a.chauvel@catie.fr>
2026-06-11 15:02:39 -04:00
Alban Chauvel
7f416f74cc drivers: sensor: max30101: fix slot handling in Multi-LED mode
The MAX30101 sensor driver does not correctly support the Multi-LED mode.
If a user sets four LEDs in the "led-slot" binding property, the fourth
measurement in the FIFO will be lost. Fix it by separating the number
of slots available in each FIFO sample (four) from the number of LED
channels available (three for the MAX30101, two for the MAX30102).

Signed-off-by: Alban Chauvel <a.chauvel@catie.fr>
2026-06-11 15:02:39 -04:00
Fabrice DJIATSA
079748ab9c drivers: sensor: st: add GPIO Kconfig selection for some sensors
Add conditional GPIO selects for ST sensor drivers when their
bindings expose *-gpios properties, including properties inherited
from included common binding files.
This aligns Kconfig GPIO dependencies with devicetree binding data.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2026-06-08 19:00:53 +02:00
Benjamin Cabé
3353896942 drivers: sensor: apds9960: move register definitions to private header
Drop all the symbols that were incorrectly part of the public header
and move them to a driver-internal header.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-06-03 08:27:19 +02:00
Dan Mangum
7daea21650 drivers: sensor: ntc_thermistor: make tdk ntcg generic
Uses generic nomenclature for TDK ntcg series NTC thermistors, which use a
naming scheme that indicates their resistance (R25) and beta (B25/85)
values. Compensation tables are identical for parts with the same
resistance and beta values.

Signed-off-by: Dan Mangum <georgedanielmangum@gmail.com>
2026-06-02 20:19:47 -04:00
Camille BAUD
16b8db7fbf drivers: bflb: Convert EFUSEs to OTP
Use new OTP API instead of syscon

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-06-02 20:19:36 -04:00
Jilay Pandya
6bf48124db drivers: pixart,pat9136 use min/max
use min/max for resolution in range [0,199]
drop the corresponding BUILD_ASSERT

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2026-06-02 20:22:38 +02:00
Jilay Pandya
242e4d6a70 drivers: nxp,mcux-qdc use min/max
use min/max instead of BUILD_ASSERT for counts-per-revolution
and filter-sample-period

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2026-06-02 20:22:38 +02:00
Jilay Pandya
d2a8f1ea09 drivers: brcm,afbr-s50 use min for odr
use min in odr and drop corresponding BUILD_ASSERT

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2026-06-02 20:22:38 +02:00
Jilay Pandya
d095fe0f8b drivers: bosch,bmp581 use min/max
replace BUILD_ASSERT for fifo-watermark with min/max in bindings
replace all enums with min/max with their corresponding ranges

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2026-06-02 20:22:38 +02:00
Jilay Pandya
d691521415 drivers: bosch,bmi08x use min/max
use min/max for fifo-watermark in bosch,bmi08x-gyro.yaml
and bosch,bmi08x-accel.yaml
drop BUILD_ASSERT in bmi08x_gyro.c

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2026-06-02 20:22:38 +02:00
Jilay Pandya
ec317572a3 drivers: adi,adxl355 use min/max instead of valid range
use min/max in bindings instead of BUILD_ASSERT for
fifo-watermark

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2026-06-02 20:22:38 +02:00
Jilay Pandya
8fdd43698f drivers: adi,adxl345 use min/max
use min/max instead of BUILD_ASSERT for fifo-watermark

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2026-06-02 20:22:38 +02:00
JuHyun Kim
d910a649ae drivers: sensor: icm45686: Change default interrupt drive
Fixed default interrupt drive from Open Drain to Push pull.
Fixes #108987

Signed-off-by: JuHyun Kim <jh.kim@tdk.com>
2026-06-01 18:05:01 -05:00
Benjamin Cabé
bef55f207d drivers: sensor: tmp108: move alert masks to driver header
TMP108/AS6212 status alert bit masks are driver-internal. Move them from
the public header into tmp108.h.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-06-01 12:42:21 -04:00
Benjamin Cabé
8b89c95ee3 drivers: sensor: ti_hdc302x: move status register macros to driver
Status register bit macros are driver-internal and only used in
ti_hdc302x.c. Remove them from the public header.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-06-01 12:42:21 -04:00
Armando Visconti
ca2992379c drivers/sensor: lsm6dsv16x: add int-gpio-config attribute in DT
Add the possibility to configure the interrupt gpio in one of the
two possiblities:

      - GPIO_INT_EDGE_TO_ACTIVE
      - GPIO_INT_LEVEL_ACTIVE

Default is GPIO_INT_EDGE_TO_ACTIVE, which matches with old fixed
configuration.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-05-31 13:41:03 +02:00
Raffael Rostagno
9b0c9a2a3a drivers: tsens: esp32: Sleep retention
Add sleep retention support for die temp driver. When peripheral
power down is enabled for light sleep, register data is lost,
so REGDMA backup is needed to mantein peripheral operational.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-05-29 22:05:37 +02:00
Sudarshan Iyengar
111a1ba43f drivers: sensor: bmi323: Add I2C bus support
Add I2C bus support to the BMI323 sensor driver. The BMI323
supports I2C communication with a dummy byte offset protocol
where 2 dummy bytes precede actual data in read operations.

Changes:
- Add bmi323_i2c.c/.h with I2C read/write and chip ID validation
- Add BMI323_BUS_I2C Kconfig option
- Update BMI323_DEVICE_BUS macro to handle I2C bus type
- Add bosch,bmi323-i2c.yaml device tree binding

The I2C implementation handles the dummy byte offset required
by the BMI323 when reading registers over I2C.

Signed-off-by: Sudarshan Iyengar <sudarshan.iyengar@alifsemi.com>
2026-05-29 22:05:08 +02:00
Sudarshan Iyengar
792718a5a3 drivers: sensor: bmi323: add RTIO async API support
Add Real-Time I/O (RTIO) asynchronous sensor API support to the
BMI323 driver. This enables non-blocking sensor reads with
kernel-managed buffering.

Features added:
- RTIO submit and decode operations for accel, gyro, and temp channels
- Q31 fixed-point format encoding for consistent sensor data scaling
- Unified sample fetch implementation shared between sync and async paths
- Decoder API with timestamped frame headers

The driver now supports both blocking (sensor_sample_fetch) and
non-blocking (sensor_read) operation modes when CONFIG_SENSOR_ASYNC_API
is enabled.

Signed-off-by: Sudarshan Iyengar <sudarshan.iyengar@alifsemi.com>
Assisted-by: GPTCodex:GPT-5.4
2026-05-29 22:05:08 +02:00
Sudarshan Iyengar
87421d3d8a drivers: sensor: bme680: Add RTIO support
Add Real-Time I/O (RTIO) support to the BME680 sensor driver to enable
asynchronous sensor operations. This implementation follows the pattern
established by other Bosch sensor drivers in Zephyr.

Changes include:
- Add bme680_async.c implementing the sensor async API submit function
  using RTIO lock free queues asynchronous read operations
- Add bme680_decoder.c implementing the sensor decoder API for
  Q31-format data conversion of temperature, pressure, humidity, and
  gas resistance channels
- Add RTIO encoded data structures (bme680_encoded_data, bme680_reading)
  to bme680.h with proper bit-packed flags for channel presence
- Update CMakeLists.txt to conditionally build async sources when
  CONFIG_SENSOR_ASYNC_API is enabled

The driver supports fetching temperature, pressure, humidity, and gas
resistance channels via the RTIO interface.

Signed-off-by: Sudarshan Iyengar <sudarshan.iyengar@alifsemi.com>
Assisted-by: Claude:claude-opus-4.6
2026-05-29 10:31:46 -05:00
Kurtis Dinelle
6b7302e454 drivers: sensor: tmp451: add TMP451 temperature sensor driver
Add support for the TI TMP451 remote and local temperature sensor.

Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Kurtis Dinelle <kurtisdinelle@gmail.com>
2026-05-27 08:35:06 +02:00
Maksim Salau
cce752f808 sensor: Add more device checks to shell-battery
The battery alias is verified to be a sensor device before use.
Also the commit fixes incorrect use of `argv[1]` instead of `dev->name`.

Signed-off-by: Maksim Salau <maksim.salau@gmail.com>
2026-05-23 17:14:36 -07:00
Aaron Kim
0d4f781476 drivers: sensor: tad2144: Add tad2144 support
Use official TDK Invensense driver for tad2144 sensor in tdk_hal module.

Signed-off-by: Aaron Kim <aaron.kim@tdk.com>
2026-05-22 21:55:54 +02:00
Nick Ward
74ff7d3913 drivers: sensor: use shell_print for command output
shell_info is intended for informational side-notes, not for printing
command result data. Use shell_print instead, consistent with other
Zephyr driver shell implementations (rtc_shell, gpio_shell, i2c_shell,
eeprom_shell).

Signed-off-by: Nick Ward <nix.ward@gmail.com>
Assisted-by: Claude:claude-sonnet-4-6
2026-05-21 17:04:13 -04:00
Ryan McClelland
78dfbf1833 drivers: sensor: bmp581: make INT pin polarity and drive type configurable
The streaming code previously hard-coded the INT pin as active-high
push-pull when writing INT_CONFIG. Add two boolean DT properties,
int-active-low and int-open-drain, and thread them through
bmp581_config so boards with active-low or open-drain INT wiring can
be supported without patching the driver.

Defaults preserve the previous hard-coded behavior (active-high,
push-pull) so existing in-tree boards do not need DT changes. Boards
with active-low INT wiring set int-active-low, which programs
BMP5_INT_POL_ACTIVE_LOW into INT_CONFIG. Note that the GPIO flags on
int-gpios must agree with the chip-side polarity setting.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-05-19 17:49:34 -04:00
Ryan McClelland
c68a25e4d5 drivers: sensor: bmp581: add PM device action support
Add a CONFIG_PM_DEVICE action handler that maps PM_DEVICE_ACTION_RESUME
to the devicetree-configured power-mode (NORMAL/FORCED/CONTINUOUS) and
PM_DEVICE_ACTION_SUSPEND to STANDBY, reusing set_power_mode() so the
mandatory STANDBY transition before entering an active mode (datasheet
section 4.3.7) is preserved. PM_DEVICE_DT_INST_DEFINE is wired into the
SENSOR_DEVICE_DT_INST_DEFINE call so the handler is registered for each
instance.

Add a bmp581_pm_busy_check() helper that returns -EBUSY when the device
is not PM_DEVICE_STATE_ACTIVE. The check is applied only to the
streaming branch of bmp581_submit(), because DRDY/FIFO interrupts only
fire while the device is in NORMAL or CONTINUOUS mode and a streaming
submission against a suspended device would otherwise wait forever for
an interrupt that cannot arrive.

Per datasheet section 4.3.1, STANDBY keeps all registers accessible for
read and write and preserves the last sample in the data registers, so
sample_fetch, channel_get, attr_set and the one-shot submit path are
deliberately left ungated. In particular IIR/FIFO/NVM writes (section
4.3.8) require STANDBY, and BMP5_ATTR_POWER_MODE is the mechanism used
to leave STANDBY, both of which would deadlock if attr_set were gated.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-05-19 17:49:34 -04:00
Ryan McClelland
3106896eab drivers: sensor: bmp581: add SPI and I3C bus support
The BMP581 driver previously only supported I2C. Add SPI and I3C
transports by extending the existing RTIO-based bus abstraction with
two new bus types (BMP581_BUS_TYPE_SPI, BMP581_BUS_TYPE_I3C),
following the pattern established by the icm45686 driver.

For SPI, the read register address is OR'd with bit 7 (BMP5_SPI_RD_MASK)
per the datasheet, and bmp581_init() performs the SPI activation dummy
read both before and after soft-reset (the device boots and reverts to
I2C/I3C mode on reset and requires a 16-SCK transaction with CSB
asserted to switch to SPI). For I3C, RTIO_IODEV_I3C_STOP/RESTART flags
are set on the read/write SQEs.

The BMP581_INIT macro now uses COND_CODE_1 to dispatch on the bus type
and instantiate the appropriate I2C/SPI/I3C iodev. Kconfig selects
I2C/SPI/I3C and the corresponding *_RTIO option conditionally based
on which buses the matching DT nodes use.

The original bosch,bmp581.yaml is split into a common binding plus
per-bus bindings (bosch,bmp581-i2c.yaml, bosch,bmp581-spi.yaml,
bosch,bmp581-i3c.yaml) that include the bus-specific yaml. Test nodes
for SPI and I3C are added to the build_all sensor test.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-05-19 17:49:34 -04:00
Fin Maaß
4d859419d9 drivers: serial: don't check return value of uart_irq_update()
Remove return value checks of uart_irq_update().
Needed for changing it's return value to void.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-05-19 17:46:51 -04:00
Jeppe Odgaard
d7a4c10df3 drivers: sensor: ti: tmp11x: do not set sample to 0 in fetch
The value is a valid temperature value and cannot be used in get to check
if fetch failed.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2026-05-19 11:57:08 +01:00
Nick Ward
b366673163 drivers: sensor: shell: return error when trigger device not in array
In the 'off' path, sensor_trigger_set clears the hardware trigger
then find_sensor_trigger_device removes the bookkeeping entry. If the
device was not in sensor_trigger_devices[] (inconsistent state),
shell_error was printed but err remained 0 and the function returned
success. Return -ENOENT so the caller sees the failure.

Signed-off-by: Nick Ward <nix.ward@gmail.com>
Assisted-by: Claude:claude-sonnet-4-6
2026-05-19 09:39:50 +02:00
Nick Ward
b712f8ad38 drivers: sensor: shell: use goto for cmd_get_sensor mutex cleanup
Replace four scattered k_mutex_unlock/return pairs with a single
goto unlock label. Each error path sets err and jumps to the label;
the lock and unlock are paired at the top and bottom of the function.
Adding a new error path now only requires goto unlock rather than a
manually-added unlock call.

The goto on sensor_read_async_mempool failure also prevents a thread
deadlock. sensor_processing_with_callback calls rtio_cqe_consume_block
which blocks with K_FOREVER waiting for a CQE. If the mempool call
fails (e.g. -ENOMEM from SQE pool exhaustion) no SQE is submitted and
no CQE ever arrives. Without the goto, the shell thread spins inside
sensor_processing_with_callback while holding cmd_get_mutex, causing
all subsequent 'sensor get' calls to fail with -EBUSY permanently.

Signed-off-by: Nick Ward <nix.ward@gmail.com>
Assisted-by: Claude:claude-sonnet-4-6
2026-05-19 09:39:50 +02:00
Nick Ward
133f9968a0 drivers: sensor: shell: propagate sensor_read_async_mempool failure
cmd_get_sensor discarded the error from sensor_read_async_mempool and
always returned 0. Return err so callers can detect a failed read.

Signed-off-by: Nick Ward <nix.ward@gmail.com>
Assisted-by: Claude:claude-sonnet-4-6
2026-05-19 09:39:50 +02:00
Nick Ward
15d36d87b6 drivers: sensor: shell: remove spurious k_mutex_unlock in attr commands
cmd_sensor_attr_set and cmd_sensor_attr_get never acquire cmd_get_mutex.

Signed-off-by: Nick Ward <nix.ward@gmail.com>
Assisted-by: Claude:claude-sonnet-4-6
2026-05-19 09:39:50 +02:00
Maureen Helm
98c20941e7 drivers: sensor: adltc2990: Add support for fetching SENSOR_CHAN_ALL
Refactors the adltc2990 sensor driver to extract sample fetching into
static functions, and uses the new functions to support fetching
individual channels or all channels at once.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-05-17 10:41:50 +02:00
Md Shofiqul Islam
5178d0acc9 drivers: sensor: max30101: add MAX30102 support
The MAX30102 is register-compatible with the MAX30101 but has only
Red and IR LED channels (no Green LED). Re-use the existing MAX30101
driver by switching DT_DRV_COMPAT to maxim_max30102 and guarding
Green LED operations with an is_max30102 flag in the config struct.

A shared MAX3010X_INIT macro with a chip argument avoids duplicating
the device instantiation code between the two variants.

Signed-off-by: Md Shofiqul Islam <shofiqtest@gmail.com>
2026-05-17 10:41:33 +02:00
Daniel Lindestad
84a7dc4df1 drivers: sensor: fdc2x1x: fix optional sd gpio checks
The sd-gpios property is optional, and GPIO_DT_SPEC_INST_GET_OR()
leaves sd_gpio.port NULL when it is absent.

The driver checked sd_gpio.port->name in the init and PM turn-off
paths, which dereferenced the missing GPIO spec before it could skip
shutdown pin setup. Check the port pointer directly instead.

Assisted-by: Codex CLI:GPT-5.5 High Reasoning
Signed-off-by: Daniel Lindestad <lindestad@proton.me>
2026-05-13 05:12:20 +02:00
Tim Pambor
8486bb8d0f drivers: sensor: stm32_vbat: Extend Vbat sensor driver to handle Vddcore
Measurement of the internal Vddcore voltage differs only slightly from
the Vbat measurement. The main difference is that the Vddcore channel
is enabled differently in the ADC peripheral.

To avoid code duplication, the existing Vbat sensor driver is extended
to also handle the Vddcore measurement.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-05-12 22:26:09 +02:00
Davide Di Lello
82741b2614 drivers: infineon: Update copyright for Infineon
Update structure of the copyright

Signed-off-by: Davide Di Lello <Davide.Dilello@Infineon.com>
2026-05-12 22:19:02 +02:00
Srinivas Edireswarapu
d1ebbfcc30 drivers: sensor: tach: xec: refactor for encoded DT properties and MEC175x
Refactor the Microchip XEC tachometer driver to use DTS-encoded
GIRQ and PCR properties instead of series-specific ifdefs,
enabling a unified driver across MEC150x, MEC172x, and MEC175x.

Fix build error from incorrect PCR devicetree configuration.
Remove duplicate include and add missing static qualifier to
tach_xec_sample_fetch().

Co-authored-by: Andy Chang <andy.chang@microchip.com>
Signed-off-by: Andy Chang <andy.chang@microchip.com>
Signed-off-by: Srinivas Edireswarapu <srinivas.edireswarapu@microchip.com>
2026-05-11 21:03:12 -05:00
William Markezana
1ca2d97d69 drivers: sensor: add TE Connectivity MS5637 sensor driver
Add a driver for the MS5637-02BA03 digital pressure & temperature
sensor from TE Connectivity (Measurement Specialties).

The driver implements the Zephyr sensor API with support for
SENSOR_CHAN_PRESS (kPa) and SENSOR_CHAN_AMBIENT_TEMP (degrees C).
Oversampling ratio (OSR) is configurable at build time via Kconfig
and at runtime via SENSOR_ATTR_OVERSAMPLING.

Includes full PROM CRC-4 validation per AN520 and second-order
temperature compensation per the MS5637 datasheet.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-05-08 15:58:49 -05:00
Zhaoxiang Jin
9bf8689eb7 drivers: nxp_pmc_tmpsns: get calibration data using NVMEM
Read the temperature sensor calibration value through the
NVMEM API instead of the legacy ROM OTP API. The calibration
data is exposed by the OCOTP node as an NVMEM cell, so the
driver no longer depends on fsl_romapi_otp.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-05-07 18:04:59 -05:00
William Markezana
d3274916ab drivers: sensor: add TE Connectivity HTU31D sensor driver
Add a driver for the HTU31D digital humidity and temperature sensor
from TE Connectivity (Measurement Specialties).

The driver implements the Zephyr sensor API with support for
SENSOR_CHAN_HUMIDITY (%) and SENSOR_CHAN_AMBIENT_TEMP (degrees C).
Measurement data is validated with CRC-8 per the datasheet.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-05-07 09:13:40 +02:00
Terry Geng
27023e0b5d drivers: sensor: hx711_spi: Fix bit sampling bug
As pointed out in #106786, when disentangling the bitstream from the chip,
for every 8 bits, instead of sampling bit 1, 3, 5, and 7, bit 0, 3, 5, and
7 are erroneously sampled. The behavior of sampling bit 0 is undefined in
the datasheet, and causes data corruption in some cases.

This fix has been tested on actual hardware and no regression is observed.

Fixes #106786

Signed-off-by: Terry Geng <terry@terriex.com>
2026-05-06 07:08:14 +02:00
Matej Neumann
9a8f11fc27 drivers: sensor: fdc1004: add fdc1004 driver
Add driver for the TI FDC1004 capacitance-to-digital converter.

Signed-off-by: Matej Neumann <email@neumma.com>
2026-05-01 11:17:46 -05:00
Henrik Lindblom
a9061573b0 drivers: sensor: clock: fix overflow when converting cycles to ns
The straightforward way to convert cycles to nanoseconds with

  x * y / z

will easily overflow the multiplication in the numerator. Rewriting the
operation as

  y * (x / z + (x % z) / z)

or NSEC_PER_SEC * (quot + (rem / cycles_per_sec)) improves the situation
and allows useful sensor timestamps for a bit longer before overflows are a
concern.

The API in sys/time_units.h handles exactly this type of numerical
manipulation for time units which might overflow. The predefined macros
only handle conversions between the various Z_HZ_* macros so a wrapper for
z_tmcvt_64 is required for the external clock case.

Signed-off-by: Henrik Lindblom <henrik.lindblom@vaisala.com>
2026-05-01 12:40:51 +01:00