zephyr/drivers/clock_control/nrf_clock_calibration.h
Gerard Marull-Paretas fb60aab245 drivers: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all drivers to the new
prefix <zephyr/...>. Note that the conversion has been scripted, refer
to #45388 for more details.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-05-06 19:58:21 +02:00

45 lines
950 B
C

/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_DRIVERS_CLOCK_CONTROL_NRF_CLOCK_CALIBRATION_H_
#define ZEPHYR_DRIVERS_CLOCK_CONTROL_NRF_CLOCK_CALIBRATION_H_
#include <zephyr/sys/onoff.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Initialize LFCLK RC calibration.
*
* @param mgrs Pointer to array of onoff managers for HF and LF clocks.
*/
void z_nrf_clock_calibration_init(struct onoff_manager *mgrs);
/**
* @brief Calibration done handler
*
* Must be called from clock event handler.
*/
void z_nrf_clock_calibration_done_handler(void);
/**
* @brief Notify calibration module about LF clock start
*/
void z_nrf_clock_calibration_lfclk_started(void);
/**
* @brief Notify calibration module about LF clock stop
*/
void z_nrf_clock_calibration_lfclk_stopped(void);
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_DRIVERS_CLOCK_CONTROL_NRF_CLOCK_CALIBRATION_H_ */