55 uint8_t reg_id = periph/32;
56 uint8_t bit_offset = periph % 32;
57 uint32_t reg_mask =
PM_MASK(reg_id);
59 reg_mask |= (1 << bit_offset);
61 reg_mask &= ~(1 << bit_offset);
#define PM_PBADIVMASK_KEY
#define PM_MCCTRL_MCSEL_SHIFT
#define PM_MCCTRL_MCSEL_MASK
void pm_set_divmask_clock(uint8_t mask)
void pm_enable_peripheral_clock(enum pm_peripheral periph)
void pm_disable_peripheral_clock(enum pm_peripheral periph)
void pm_select_main_clock(enum mck_src source_clock)
static void set_peripheral_clock_status(enum pm_peripheral periph, bool on)
void pm_enable_clock_div(enum pm_cksel sel_target, uint8_t div)