Topics

RFC: API: Counter: counter_read() has no way of indicating failure

Henrik Brix Andersen
 

Hi all,

Our current counter API has a function for reading the current counter value (counter_read()) which does not allow indicating read failure in a standard way.
I have submitted an RFC for introducing a new API function to resolve this and deprecate counter_read().

See https://github.com/zephyrproject-rtos/zephyr/issues/21846 for further details. Please comment on the RFC issue if you have any input on this.

The counter API is currently marked as an unstable API (see https://github.com/zephyrproject-rtos/zephyr/projects/15).

Best regards,
Brix
--
Henrik Brix Andersen