1# Common RTC configuration 2 3# Copyright (c) 2023 Nordic Semiconductor ASA 4# SPDX-License-Identifier: Apache-2.0 5 6if NRF_RTC_TIMER || NRF_GRTC_TIMER 7choice 8 prompt "Clock startup policy" 9 default SYSTEM_CLOCK_WAIT_FOR_STABILITY 10 11config SYSTEM_CLOCK_NO_WAIT 12 bool "No wait" 13 help 14 System clock source is initiated but does not wait for clock readiness. 15 When this option is picked, system clock may not be ready when code relying 16 on kernel API is executed. Requested timeouts will be prolonged by the 17 remaining startup time. 18 19config SYSTEM_CLOCK_WAIT_FOR_AVAILABILITY 20 bool "Wait for availability" 21 help 22 System clock source initialization waits until clock is available. In some 23 systems, clock initially runs from less accurate source which has faster 24 startup time and then seamlessly switches to the target clock source when 25 it is ready. When this option is picked, system clock is available after 26 system clock driver initialization but it may be less accurate. Option is 27 equivalent to waiting for stability if clock source does not have 28 intermediate state. 29 30config SYSTEM_CLOCK_WAIT_FOR_STABILITY 31 bool "Wait for stability" 32 help 33 System clock source initialization waits until clock is stable. When this 34 option is picked, system clock is available and stable after system clock 35 driver initialization. 36 37endchoice 38endif # NRF_RTC_TIMER || NRF_GRTC_TIMER 39