PebbleOS v4.47.0-1362-gd278268fe
Loading...
Searching...
No Matches
SF32LB RCC calls

What users of the SF32LB clocks call beyond the class. More...

Functions

int pbl_clk_sf32lb_deepwfi_hold (void)
 Keep clk_hpsys, its bus dividers and the DLLs running in deep WFI, for blocks clocked from them.
 
void pbl_clk_sf32lb_deepwfi_release (void)
 Release a hold taken with pbl_clk_sf32lb_deepwfi_hold().
 

Detailed Description

What users of the SF32LB clocks call beyond the class.

Function Documentation

◆ pbl_clk_sf32lb_deepwfi_hold()

int pbl_clk_sf32lb_deepwfi_hold ( void  )

Keep clk_hpsys, its bus dividers and the DLLs running in deep WFI, for blocks clocked from them.

Deep WFI otherwise moves clk_hpsys to HRC48, divides the bus clocks down and stops the DLL outputs. Counted: balance each call with pbl_clk_sf32lb_deepwfi_release().

Returns
0, or -ENOTSUP where deep WFI cannot keep the DLLs running.

◆ pbl_clk_sf32lb_deepwfi_release()

void pbl_clk_sf32lb_deepwfi_release ( void  )

Release a hold taken with pbl_clk_sf32lb_deepwfi_hold().