forked from zephyrproject-rtos/zephyr
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnrf_clock_calibration.h
44 lines (35 loc) · 950 Bytes
/
nrf_clock_calibration.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* 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_ */