PebbleOS v4.47.0-553-g7a998bc2c
Loading...
Searching...
No Matches
SF32LB52 PMUC clocks

Clock controller for the oscillators of the SF32LB52 PMUC. More...

Macros

#define PBL_CLK_SF32LB52_PMUC_DEFINE(sym, _name, _base, _rcc, _bt_mac, _lpsys_aon, _lpsys_rcc, _lock, _hxt48, _lxt32, ...)
 Define the SF32LB52 PMUC clock controller.
 

Detailed Description

Clock controller for the oscillators of the SF32LB52 PMUC.

Macro Definition Documentation

◆ PBL_CLK_SF32LB52_PMUC_DEFINE

#define PBL_CLK_SF32LB52_PMUC_DEFINE (   sym,
  _name,
  _base,
  _rcc,
  _bt_mac,
  _lpsys_aon,
  _lpsys_rcc,
  _lock,
  _hxt48,
  _lxt32,
  ... 
)
Value:
PBL_CLK_CONTROLLER_STATE_DEFINE(sym, SF32LB52_PMUC_NUM_CLKS); \
PBL_CLK_ASSIGNED_DEFINE(sym##_assigned, __VA_ARGS__); \
PBL_DEVICE_INSTANCE(sym, struct pbl_clk_sf32lb52_pmuc, struct pbl_clk_controller, ctrl) { \
.ctrl = PBL_CLK_CONTROLLER_INIT(sym, _name, pbl_clk_sf32lb52_pmuc_init, nullptr, \
&pbl_clk_sf32lb52_pmuc_ops), \
.base = (_base), .rcc = (_rcc), .bt_mac = (_bt_mac), .lpsys_aon = (_lpsys_aon), \
.lpsys_rcc = (_lpsys_rcc), .lock = (_lock), .hxt48 = _hxt48, .lxt32 = _lxt32, \
.assigned = sym##_assigned, \
}
A clock controller.
Definition clk.h:75
#define PBL_CLK_CONTROLLER_STATE_DEFINE(sym, _num_clks)
Define the class state of clock controller sym, for the driver's define macro.
Definition clk.h:96
#define PBL_CLK_CONTROLLER_INIT(sym, _name, _init, _parent, _ops)
Initializer for the struct pbl_clk_controller of controller sym.
Definition clk.h:110

Define the SF32LB52 PMUC clock controller.

Parameters
symSymbol of the controller.
_nameName.
_basePMUC registers.
_rccHPSYS RCC registers.
_bt_macBluetooth controller registers, whose counter calibrates LRC10.
_lpsys_aonLPSYS_AON registers.
_lpsys_rccLPSYS RCC registers.
_lockHardware lock shared with the LCPU.
_hxt48HXT48 crystal, from PBL_CLK().
_lxt32LXT32 crystal, from PBL_CLK().
...Assigned clocks, from PBL_CLK_ASSIGNED().