RFC: API Change: clock_control #22424
Labels
area: Clock Control
Breaking API Change
Breaking changes to stable, public APIs
Release Notes
To be mentioned in the release notes
RFC
Request For Comments: want input from the community
Problem description
Clock control API has
clock_control_async_on()
call which starts clock asynchronously and results in callback being called on clock being started.clock_control_async_on()
call has as one of the argumentsclock_control_subsys_t sys
which is an opaque data representing clock subsystem. Currently, callback function prototype is missing that argument:Proposed change
Add
clock_control_subsys_t sys
to callback arguments.Impact
Clock control is mainly used internally by other drivers or modules.
clock_control_async_on()
andclock_control_cb_t
is only used in nordic clock control driver (nrf_power_clock.c
) so scope of change is limited.The text was updated successfully, but these errors were encountered: