clk_ll_xtal_store_freq_mhz() function
RTC STORAGE REGISTER STORE/LOAD ************************* Store XTAL_CLK frequency in RTC storage register Value of RTC_XTAL_FREQ_REG is stored as two copies in lower and upper 16-bit halves. These are the routines to work with that representation.
Syntax
static inline __attribute__((always_inline)) void clk_ll_xtal_store_freq_mhz(uint32_t xtal_freq_mhz); Arguments
xtal_freq_mhz
XTAL frequency, in MHz. The frequency must necessarily be even, otherwise there will be a conflict with the low bit, which is used to disable logs in the ROM code.