driver: clock_control: Add to nrf clock control calib in progres API
It may be required to get information if NRF LF clock control calibration is in progress. Some time sensitive operations could benefit from this information. The commit adds simple function that provides the information. The function is nRF platform specific. Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
This commit is contained in:
parent
c4d884cc65
commit
fefc285f54
2 changed files with 12 additions and 0 deletions
|
|
@ -294,3 +294,8 @@ int z_nrf_clock_calibration_skips_count(void)
|
|||
|
||||
return total_skips_cnt;
|
||||
}
|
||||
|
||||
bool z_nrf_clock_calibration_is_in_progress(void)
|
||||
{
|
||||
return cal_process_in_progress ? true : false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,6 +117,13 @@ int z_nrf_clock_calibration_count(void);
|
|||
*/
|
||||
int z_nrf_clock_calibration_skips_count(void);
|
||||
|
||||
|
||||
/** @brief Returns information if LF clock calibration is in progress.
|
||||
*
|
||||
* @return True if calibration is in progress, false otherwise.
|
||||
*/
|
||||
bool z_nrf_clock_calibration_is_in_progress(void);
|
||||
|
||||
/** @brief Get onoff service for given clock subsystem.
|
||||
*
|
||||
* @param sys Subsystem.
|
||||
|
|
|
|||
Loading…
Reference in a new issue