-
Notifications
You must be signed in to change notification settings - Fork 7.6k
clock_control: add vendor specific API to get HF clock startup time #90615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
036cad4
a505586
b4d5b5d
43c9a1d
4131b3a
ca19b60
a038651
ee4c537
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright (c) 2025 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: Nordic nRF high-frequency crystal oscillator (nRF51 series) | ||
|
||
compatible: "nordic,nrf51-hfxo" | ||
|
||
include: fixed-clock.yaml | ||
|
||
properties: | ||
clock-frequency: | ||
const: 16000000 | ||
|
||
startup-time-us: | ||
type: int | ||
required: true | ||
description: | | ||
Startup time in microseconds. | ||
|
||
The value can be obtained by first measuring the time between | ||
TASKS_HFCLKSTART and EVENTS_HFCLKSTARTED. Then multiply | ||
the value by 2 to account for temperature and supply variations. | ||
|
||
Note that the startup time will be longer usual on the first | ||
power-up and as such should not be used to determine | ||
startup-time-us. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright (c) 2025 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: Nordic nRF high-frequency crystal oscillator (nRF52 series) | ||
|
||
compatible: "nordic,nrf52-hfxo" | ||
|
||
include: fixed-clock.yaml | ||
|
||
properties: | ||
clock-frequency: | ||
const: 64000000 | ||
|
||
startup-time-us: | ||
type: int | ||
description: | | ||
Startup time in microseconds. | ||
|
||
The value can be obtained by first measuring the time between | ||
TASKS_HFCLKSTART and EVENTS_HFCLKSTARTED. Then multiply | ||
the value by 2 to account for temperature and supply variations. | ||
|
||
Note that the startup time will be longer usual on the first | ||
power-up and as such should not be used to determine | ||
startup-time-us. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,6 +162,13 @@ void z_nrf_clock_bt_ctlr_hf_request(void); | |
*/ | ||
void z_nrf_clock_bt_ctlr_hf_release(void); | ||
|
||
/** | ||
* @brief Get clock startup time | ||
* | ||
* @retval HFCLK startup time in microseconds | ||
*/ | ||
uint32_t z_nrf_clock_bt_ctlr_hf_get_startup_time_us(void); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The naming is intended to match |
||
|
||
#endif /* defined(CONFIG_CLOCK_CONTROL_NRF) */ | ||
|
||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.