File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ config SOC_SERIES_NRF53X
8
8
select ARM
9
9
select SOC_COMPATIBLE_NRF53X
10
10
select SOC_EARLY_INIT_HOOK
11
+ select SOC_LATE_INIT_HOOK
11
12
select CPU_CORTEX_M33
12
13
select CPU_CORTEX_M_HAS_DWT
13
14
select CPU_HAS_ARM_MPU
Original file line number Diff line number Diff line change @@ -551,15 +551,20 @@ void soc_early_init_hook(void)
551
551
#if defined(CONFIG_SOC_DCDC_NRF53X_HV ) || DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (vregh ))
552
552
nrf_regulators_vreg_enable_set (NRF_REGULATORS , NRF_REGULATORS_VREG_HIGH , true);
553
553
#endif
554
+ }
555
+
556
+ void soc_late_init_hook (void )
557
+ {
558
+ #ifdef CONFIG_SOC_NRF53_RTC_PRETICK
559
+ int err = rtc_pretick_init ();
560
+
561
+ __ASSERT_NO_MSG (err == 0 );
562
+ (void )err ;
563
+ #endif
554
564
555
565
}
556
566
557
567
void arch_busy_wait (uint32_t time_us )
558
568
{
559
569
nrfx_coredep_delay_us (time_us );
560
570
}
561
-
562
-
563
- #ifdef CONFIG_SOC_NRF53_RTC_PRETICK
564
- SYS_INIT (rtc_pretick_init , POST_KERNEL , 0 );
565
- #endif
You can’t perform that action at this time.
0 commit comments