libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.

Defined Constants and Types for the EFM32HG Clock Management Unit More...

Collaboration diagram for CMU Defines:

Macros

#define CMU_CTRL   MMIO32(CMU_BASE + 0x000)
 
#define CMU_HFCORECLKDIV   MMIO32(CMU_BASE + 0x004)
 
#define CMU_HFPERCLKDIV   MMIO32(CMU_BASE + 0x008)
 
#define CMU_HFRCOCTRL   MMIO32(CMU_BASE + 0x00C)
 
#define CMU_LFRCOCTRL   MMIO32(CMU_BASE + 0x010)
 
#define CMU_AUXHFRCOCTR   MMIO32(CMU_BASE + 0x014)
 
#define CMU_CALCTRL   MMIO32(CMU_BASE + 0x018)
 
#define CMU_CALCNT   MMIO32(CMU_BASE + 0x01C)
 
#define CMU_OSCENCMD   MMIO32(CMU_BASE + 0x020)
 
#define CMU_CMD   MMIO32(CMU_BASE + 0x024)
 
#define CMU_LFCLKSEL   MMIO32(CMU_BASE + 0x028)
 
#define CMU_STATUS   MMIO32(CMU_BASE + 0x02C)
 
#define CMU_IF   MMIO32(CMU_BASE + 0x030)
 
#define CMU_IFS   MMIO32(CMU_BASE + 0x034)
 
#define CMU_IFC   MMIO32(CMU_BASE + 0x038)
 
#define CMU_IEN   MMIO32(CMU_BASE + 0x03C)
 
#define CMU_HFCORECLKEN0   MMIO32(CMU_BASE + 0x040)
 
#define CMU_HFPERCLKEN0   MMIO32(CMU_BASE + 0x044)
 
#define CMU_SYNCBUSY   MMIO32(CMU_BASE + 0x050)
 
#define CMU_FREEZE   MMIO32(CMU_BASE + 0x054)
 
#define CMU_LFACLKEN0   MMIO32(CMU_BASE + 0x058)
 
#define CMU_LFBCLKEN0   MMIO32(CMU_BASE + 0x060)
 
#define CMU_LFCCLKEN0   MMIO32(CMU_BASE + 0x064)
 
#define CMU_LFAPRESC0   MMIO32(CMU_BASE + 0x068)
 
#define CMU_LFBPRESC0   MMIO32(CMU_BASE + 0x070)
 
#define CMU_PCNTCTRL   MMIO32(CMU_BASE + 0x078)
 
#define CMU_ROUTE   MMIO32(CMU_BASE + 0x080)
 
#define CMU_LOCK   MMIO32(CMU_BASE + 0x084)
 
#define CMU_USBCRCTRL   MMIO32(CMU_BASE + 0x0D0)
 
#define CMU_USHFRCOCTRL   MMIO32(CMU_BASE + 0x0D4)
 
#define CMU_USHFRCOTUNE   MMIO32(CMU_BASE + 0x0D8)
 
#define CMU_USHFRCOCONF   MMIO32(CMU_BASE + 0x0DC)
 
#define CMU_CTRL_CLKOUTSEL1_SHIFT   (23)
 
#define CMU_CTRL_CLKOUTSEL1_MASK   (0x7 << CMU_CTRL_CLKOUTSEL1_SHIFT)
 
#define CMU_CTRL_CLKOUTSEL1(v)    (((v) << CMU_CTRL_CLKOUTSEL1_SHIFT) & CMU_CTRL_CLKOUTSEL1_MASK)
 
#define CMU_CTRL_CLKOUTSEL1_LFRCO   CMU_CTRL_CLKOUTSEL1(0)
 
#define CMU_CTRL_CLKOUTSEL1_LFXO   CMU_CTRL_CLKOUTSEL1(1)
 
#define CMU_CTRL_CLKOUTSEL1_HFCLK   CMU_CTRL_CLKOUTSEL1(2)
 
#define CMU_CTRL_CLKOUTSEL1_LFXOQ   CMU_CTRL_CLKOUTSEL1(3)
 
#define CMU_CTRL_CLKOUTSEL1_HFXOQ   CMU_CTRL_CLKOUTSEL1(4)
 
#define CMU_CTRL_CLKOUTSEL1_LFRCOQ   CMU_CTRL_CLKOUTSEL1(5)
 
#define CMU_CTRL_CLKOUTSEL1_HFRCOQ   CMU_CTRL_CLKOUTSEL1(6)
 
#define CMU_CTRL_CLKOUTSEL1_AUXHFRCOQ   CMU_CTRL_CLKOUTSEL1(7)
 
#define CMU_CTRL_CLKOUTSEL1_USHFRCO   CMU_CTRL_CLKOUTSEL1(8)
 
#define CMU_CTRL_CLKOUTSEL0_SHIFT   (20)
 
#define CMU_CTRL_CLKOUTSEL0_MASK   (0x7 << CMU_CTRL_CLKOUTSEL0_SHIFT)
 
#define CMU_CTRL_CLKOUTSEL0(v)    (((v) << CMU_CTRL_CLKOUTSEL0_SHIFT) & CMU_CTRL_CLKOUTSEL0_MASK)
 
#define CMU_CTRL_CLKOUTSEL0_HFRCO   CMU_CTRL_CLKOUTSEL0(0)
 
#define CMU_CTRL_CLKOUTSEL0_HFXO   CMU_CTRL_CLKOUTSEL0(1)
 
#define CMU_CTRL_CLKOUTSEL0_HFCLK2   CMU_CTRL_CLKOUTSEL0(2)
 
#define CMU_CTRL_CLKOUTSEL0_HFCLK4   CMU_CTRL_CLKOUTSEL0(3)
 
#define CMU_CTRL_CLKOUTSEL0_HFCLK8   CMU_CTRL_CLKOUTSEL0(4)
 
#define CMU_CTRL_CLKOUTSEL0_HFCLK16   CMU_CTRL_CLKOUTSEL0(5)
 
#define CMU_CTRL_CLKOUTSEL0_ULFRCO   CMU_CTRL_CLKOUTSEL0(6)
 
#define CMU_CTRL_CLKOUTSEL0_AUXHFRCO   CMU_CTRL_CLKOUTSEL0(7)
 
#define CMU_CTRL_LFXOTIMEOUT_SHIFT   (18)
 
#define CMU_CTRL_LFXOTIMEOUT_MASK   (0x3 << CMU_CTRL_LFXOTIMEOUT_SHIFT)
 
#define CMU_CTRL_LFXOTIMEOUT(v)    (((v) << CMU_CTRL_LFXOTIMEOUT_SHIFT) & CMU_CTRL_LFXOTIMEOUT_MASK)
 
#define CMU_CTRL_LFXOTIMEOUT_8CYCLES   CMU_CTRL_LFXOTIMEOUT(0)
 
#define CMU_CTRL_LFXOTIMEOUT_1KCYCLES   CMU_CTRL_LFXOTIMEOUT(1)
 
#define CMU_CTRL_LFXOTIMEOUT_16KCYCLES   CMU_CTRL_LFXOTIMEOUT(2)
 
#define CMU_CTRL_LFXOTIMEOUT_32KCYCLES   CMU_CTRL_LFXOTIMEOUT(3)
 
#define CMU_CTRL_LFXOBUFCUR   (1 << 17)
 
#define CMU_CTRL_HFCLKDIV_SHIFT   (14)
 
#define CMU_CTRL_HFCLKDIV_MASK   (0x7 << CMU_CTRL_HFCLKDIV_SHIFT)
 
#define CMU_CTRL_HFCLKDIV(v)    (((v) << CMU_CTRL_HFCLKDIV_SHIFT) & CMU_CTRL_HFCLKDIV_MASK)
 
#define CMU_CTRL_HFCLKDIV_NODIV   CMU_CTRL_HFCLKDIV(0)
 
#define CMU_CTRL_HFCLKDIV_DIV2   CMU_CTRL_HFCLKDIV(1)
 
#define CMU_CTRL_HFCLKDIV_DIV3   CMU_CTRL_HFCLKDIV(2)
 
#define CMU_CTRL_HFCLKDIV_DIV4   CMU_CTRL_HFCLKDIV(3)
 
#define CMU_CTRL_HFCLKDIV_DIV5   CMU_CTRL_HFCLKDIV(4)
 
#define CMU_CTRL_HFCLKDIV_DIV6   CMU_CTRL_HFCLKDIV(5)
 
#define CMU_CTRL_HFCLKDIV_DIV7   CMU_CTRL_HFCLKDIV(6)
 
#define CMU_CTRL_HFCLKDIV_DIV8   CMU_CTRL_HFCLKDIV(7)
 
#define CMU_CTRL_LFXOBOOST   (1 << 13)
 
#define CMU_CTRL_LFXOMODE_SHIFT   (11)
 
#define CMU_CTRL_LFXOMODE_MASK   (0x3 << CMU_CTRL_LFXOMODE_SHIFT)
 
#define CMU_CTRL_LFXOMODE(v)    (((v) << CMU_CTRL_LFXOMODE_SHIFT) & CMU_CTRL_LFXOMODE_MASK)
 
#define CMU_CTRL_LFXOMODE_XTAL   CMU_CTRL_LFXOMODE(0)
 
#define CMU_CTRL_LFXOMODE_BUFEXTCLK   CMU_CTRL_LFXOMODE(1)
 
#define CMU_CTRL_LFXOMODE_DIGEXTCLK   CMU_CTRL_LFXOMODE(2)
 
#define CMU_CTRL_HFXOTIMEOUT_SHIFT   (9)
 
#define CMU_CTRL_HFXOTIMEOUT_MASK   (0x3 << CMU_CTRL_HFXOTIMEOUT_SHIFT)
 
#define CMU_CTRL_HFXOTIMEOUT(v)    (((v) << CMU_CTRL_HFXOTIMEOUT_SHIFT) & CMU_CTRL_HFXOTIMEOUT_MASK)
 
#define CMU_CTRL_HFXOTIMEOUT_8CYCLES   CMU_CTRL_HFXOTIMEOUT(0)
 
#define CMU_CTRL_HFXOTIMEOUT_256CYCLES   CMU_CTRL_HFXOTIMEOUT(1)
 
#define CMU_CTRL_HFXOTIMEOUT_1KCYCLES   CMU_CTRL_HFXOTIMEOUT(2)
 
#define CMU_CTRL_HFXOTIMEOUT_16KCYCLES   CMU_CTRL_HFXOTIMEOUT(3)
 
#define CMU_CTRL_HFXOGLITCHDETEN   (1 << 7)
 
#define CMU_CTRL_HFXOBUFCUR_MASK   (0x3 << 5)
 
#define CMU_CTRL_HFXOBOOST_SHIFT   (2)
 
#define CMU_CTRL_HFXOBOOST_MASK   (0x3 << CMU_CTRL_HFXOBOOST_SHIFT)
 
#define CMU_CTRL_HFXOBOOST(v)    (((v) << CMU_CTRL_HFXOBOOST_SHIFT) & CMU_CTRL_HFXOBOOST_MASK)
 
#define CMU_CTRL_HFXOBOOST_50PCENT   CMU_CTRL_HFXOBOOST(0)
 
#define CMU_CTRL_HFXOBOOST_70PCENT   CMU_CTRL_HFXOBOOST(1)
 
#define CMU_CTRL_HFXOBOOST_80PCENT   CMU_CTRL_HFXOBOOST(2)
 
#define CMU_CTRL_HFXOBOOST_100PCENT   CMU_CTRL_HFXOBOOST(3)
 
#define CMU_CTRL_HFXOMODE_SHIFT   (0)
 
#define CMU_CTRL_HFXOMODE_MASK   (0x3 << CMU_CTRL_HFXOMODE_SHIFT)
 
#define CMU_CTRL_HFXOMODE(v)    (((v) << CMU_CTRL_HFXOMODE_SHIFT) & CMU_CTRL_HFXOMODE_MASK)
 
#define CMU_CTRL_HFXOMODE_XTAL   CMU_CTRL_HFXOMODE(0)
 
#define CMU_CTRL_HFXOMODE_BUFEXTCLK   CMU_CTRL_HFXOMODE(1)
 
#define CMU_CTRL_HFXOMODE_DIGEXTCLK   CMU_CTRL_HFXOMODE(2)
 
#define CMU_HFCORECLKDIV_HFCORECLKLEDIV   (1 << 8)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT   (0)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_MASK    (0xF << CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV(v)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK    CMU_HFCORECLKDIV_HFCORECLKDIV(0)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2    CMU_HFCORECLKDIV_HFCORECLKDIV(1)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4    CMU_HFCORECLKDIV_HFCORECLKDIV(2)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8    CMU_HFCORECLKDIV_HFCORECLKDIV(3)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16    CMU_HFCORECLKDIV_HFCORECLKDIV(4)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32    CMU_HFCORECLKDIV_HFCORECLKDIV(5)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64    CMU_HFCORECLKDIV_HFCORECLKDIV(6)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128    CMU_HFCORECLKDIV_HFCORECLKDIV(7)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256    CMU_HFCORECLKDIV_HFCORECLKDIV(8)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512    CMU_HFCORECLKDIV_HFCORECLKDIV(9)
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_NODIV    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV2    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV4    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV8    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV16    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV32    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV64    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV128    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV256    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256
 
#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV512    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512
 
#define CMU_HFPERCLKDIV_HFPERCLKEN   (1 << 8)
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV_SHIFT   (0)
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV_MASK    (0xF << CMU_HFPERCLKDIV_HFPERCLKDIV_SHIFT)
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV(v)
 
#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK   CMU_HFPERCLKDIV_HFPERCLKDIV(0)
 
#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK2   CMU_HFPERCLKDIV_HFPERCLKDIV(1)
 
#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK4   CMU_HFPERCLKDIV_HFPERCLKDIV(2)
 
#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK8   CMU_HFPERCLKDIV_HFPERCLKDIV(3)
 
#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK16   CMU_HFPERCLKDIV_HFPERCLKDIV(4)
 
#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK32   CMU_HFPERCLKDIV_HFPERCLKDIV(5)
 
#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK64   CMU_HFPERCLKDIV_HFPERCLKDIV(6)
 
#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK128   CMU_HFPERCLKDIV_HFPERCLKDIV(7)
 
#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK256   CMU_HFPERCLKDIV_HFPERCLKDIV(8)
 
#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK512   CMU_HFPERCLKDIV_HFPERCLKDIV(9)
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV_NODIV    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV2    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK2
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV4    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK4
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV8    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK8
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV16    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK16
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV32    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK32
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV64    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK64
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV128    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK128
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV256    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK256
 
#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV512    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK512
 
#define CMU_HFRCOCTRL_SUDELAY_SHIFT   (12)
 
#define CMU_HFRCOCTRL_SUDELAY_MASK   (0x1F << CMU_HFRCOCTRL_SUDELAY_SHIFT)
 
#define CMU_HFRCOCTRL_SUDELAY(v)    ((((v) << CMU_HFRCOCTRL_SUDELAY_SHIFT) & CMU_HFRCOCTRL_SUDELAY_MASK))
 
#define CMU_HFRCOCTRL_BAND_SHIFT   (8)
 
#define CMU_HFRCOCTRL_BAND_MASK   (0x7 << CMU_HFRCOCTRL_BAND_SHIFT)
 
#define CMU_HFRCOCTRL_BAND(v)    (((v) << CMU_HFRCOCTRL_BAND_SHIFT) & CMU_HFRCOCTRL_BAND_MASK)
 
#define CMU_HFRCOCTRL_BAND_1MHZ   CMU_HFRCOCTRL_BAND(0)
 
#define CMU_HFRCOCTRL_BAND_7MHZ   CMU_HFRCOCTRL_BAND(1)
 
#define CMU_HFRCOCTRL_BAND_11MHZ   CMU_HFRCOCTRL_BAND(2)
 
#define CMU_HFRCOCTRL_BAND_14MHZ   CMU_HFRCOCTRL_BAND(3)
 
#define CMU_HFRCOCTRL_BAND_21MHZ   CMU_HFRCOCTRL_BAND(4)
 
#define CMU_HFRCOCTRL_TUNING_SHIFT   (0)
 
#define CMU_HFRCOCTRL_TUNING_MASK   (0xFF << CMU_HFRCOCTRL_TUNING_SHIFT)
 
#define CMU_HFRCOCTRL_TUNING(v)    (((v) << CMU_HFRCOCTRL_TUNING_SHIFT) & CMU_HFRCOCTRL_TUNING_MASK)
 
#define CMU_LFRCOCTRL_TUNING_SHIFT   (0)
 
#define CMU_LFRCOCTRL_TUNING_MASK   (0xFF << CMU_LFRCOCTRL_TUNING_SHIFT)
 
#define CMU_LFRCOCTRL_TUNING(v)    (((v) << CMU_LFRCOCTRL_TUNING_SHIFT) & CMU_LFRCOCTRL_TUNING_MASK)
 
#define CMU_AUXHFRCOCTRL_BAND_SHIFT   (8)
 
#define CMU_AUXHFRCOCTRL_BAND_MASK   (0x7 << CMU_AUXHFRCOCTRL_BAND_SHIFT)
 
#define CMU_AUXHFRCOCTRL_BAND(v)    (((v) << CMU_AUXHFRCOCTRL_BAND_SHIFT) & CMU_AUXHFRCOCTRL_BAND_MASK)
 
#define CMU_AUXHFRCOCTRL_BAND_14MHZ   CMU_AUXHFRCOCTRL_BAND(0)
 
#define CMU_AUXHFRCOCTRL_BAND_11MHZ   CMU_AUXHFRCOCTRL_BAND(1)
 
#define CMU_AUXHFRCOCTRL_BAND_7MHZ   CMU_AUXHFRCOCTRL_BAND(2)
 
#define CMU_AUXHFRCOCTRL_BAND_1MHZ   CMU_AUXHFRCOCTRL_BAND(3)
 
#define CMU_AUXHFRCOCTRL_BAND_28MHZ   CMU_AUXHFRCOCTRL_BAND(6)
 
#define CMU_AUXHFRCOCTRL_BAND_21MHZ   CMU_AUXHFRCOCTRL_BAND(7)
 
#define CMU_AUXHFRCOCTRL_TUNING_SHIFT   (0)
 
#define CMU_AUXHFRCOCTRL_TUNING_MASK   (0xFF << CMU_AUXHFRCOCTRL_TUNING_SHIFT)
 
#define CMU_AUXHFRCOCTRL_TUNING(v)    (((v) << CMU_AUXHFRCOCTRL_TUNING_SHIFT) & CMU_AUXHFRCOCTRL_TUNING_MASK)
 
#define CMU_CALCTRL_CONT   (1 << 6)
 
#define CMU_CALCTRL_DOWNSEL_SHIFT   (3)
 
#define CMU_CALCTRL_DOWNSEL_MASK   (0x7 << CMU_CALCTRL_DOWNSEL_SHIFT)
 
#define CMU_CALCTRL_DOWNSEL(v)    (((v) << CMU_CALCTRL_DOWNSEL_SHIFT) & CMU_CALCTRL_DOWNSEL_MASK)
 
#define CMU_CALCTRL_DOWNSEL_HFCLK   CMU_CALCTRL_DOWNSEL(0)
 
#define CMU_CALCTRL_DOWNSEL_HFXO   CMU_CALCTRL_DOWNSEL(1)
 
#define CMU_CALCTRL_DOWNSEL_LFXO   CMU_CALCTRL_DOWNSEL(2)
 
#define CMU_CALCTRL_DOWNSEL_HFRCO   CMU_CALCTRL_DOWNSEL(3)
 
#define CMU_CALCTRL_DOWNSEL_LFRCO   CMU_CALCTRL_DOWNSEL(4)
 
#define CMU_CALCTRL_DOWNSEL_AUXHFRCO   CMU_CALCTRL_DOWNSEL(5)
 
#define CMU_CALCTRL_DOWNSEL_USHFRCO   CMU_CALCTRL_DOWNSEL(6)
 
#define CMU_CALCTRL_UPSEL_SHIFT   (3)
 
#define CMU_CALCTRL_UPSEL_MASK   (0x7 << CMU_CALCTRL_UPSEL_SHIFT)
 
#define CMU_CALCTRL_UPSEL(v)    (((v) << CMU_CALCTRL_UPSEL_SHIFT) & CMU_CALCTRL_UPSEL_MASK)
 
#define CMU_CALCTRL_UPSEL_HFXO   CMU_CALCTRL_UPSEL(0)
 
#define CMU_CALCTRL_UPSEL_LFXO   CMU_CALCTRL_UPSEL(1)
 
#define CMU_CALCTRL_UPSEL_HFRCO   CMU_CALCTRL_UPSEL(2)
 
#define CMU_CALCTRL_UPSEL_LFRCO   CMU_CALCTRL_UPSEL(3)
 
#define CMU_CALCTRL_UPSEL_AUXHFRCO   CMU_CALCTRL_UPSEL(4)
 
#define CMU_CALCTRL_UPSEL_USHFRCO   CMU_CALCTRL_UPSEL(5)
 
#define CMU_CALCNT_CALCNT_SHIFT   (0)
 
#define CMU_CALCNT_CALCNT_MASK   (0xFFFFF << CMU_CALCNT_CALCNT_SHIFT)
 
#define CMU_CALCNT_CALCNT(v)    (((v) << CMU_CALCNT_CALCNT_SHIFT) & CMU_CALCNT_CALCNT_MASK)
 
#define CMU_OSCENCMD_USHFRCODIS   (1 << 11)
 
#define CMU_OSCENCMD_USHFRCOEN   (1 << 10)
 
#define CMU_OSCENCMD_LFXODIS   (1 << 9)
 
#define CMU_OSCENCMD_LFXOEN   (1 << 8)
 
#define CMU_OSCENCMD_LFRCODIS   (1 << 7)
 
#define CMU_OSCENCMD_LFRCOEN   (1 << 6)
 
#define CMU_OSCENCMD_AUXHFRCODIS   (1 << 5)
 
#define CMU_OSCENCMD_AUXHFRCOEN   (1 << 4)
 
#define CMU_OSCENCMD_HFXODIS   (1 << 3)
 
#define CMU_OSCENCMD_HFXOEN   (1 << 2)
 
#define CMU_OSCENCMD_HFRCODIS   (1 << 1)
 
#define CMU_OSCENCMD_HFRCOEN   (1 << 0)
 
#define CMU_CMD_USBCCLKSEL_SHIFT   (5)
 
#define CMU_CMD_USBCCLKSEL_MASK   (0x5 << CMU_CMD_USBCCLKSEL_SHIFT)
 
#define CMU_CMD_USBCCLKSEL(v)    (((v) << CMU_CMD_USBCCLKSEL_SHIFT) & CMU_CMD_USBCCLKSEL_MASK)
 
#define CMU_CMD_USBCCLKSEL_LFXO   CMU_CMD_USBCCLKSEL(2)
 
#define CMU_CMD_USBCCLKSEL_LFRCO   CMU_CMD_USBCCLKSEL(3)
 
#define CMU_CMD_USBCCLKSEL_USHFRCO   CMU_CMD_USBCCLKSEL(4)
 
#define CMU_CMD_CALSTOP   (1 << 4)
 
#define CMU_CMD_CALSTART   (1 << 3)
 
#define CMU_CMD_HFCLKSEL_SHIFT   (0)
 
#define CMU_CMD_HFCLKSEL_MASK   (0x7 << CMU_CMD_HFCLKSEL_SHIFT)
 
#define CMU_CMD_HFCLKSEL(v)    (((v) << CMU_CMD_HFCLKSEL_SHIFT) & CMU_CMD_HFCLKSEL_MASK)
 
#define CMU_CMD_HFCLKSEL_HFRCO   CMU_CMD_HFCLKSEL(1)
 
#define CMU_CMD_HFCLKSEL_HFXO   CMU_CMD_HFCLKSEL(2)
 
#define CMU_CMD_HFCLKSEL_LFRCO   CMU_CMD_HFCLKSEL(3)
 
#define CMU_CMD_HFCLKSEL_LFXO   CMU_CMD_HFCLKSEL(4)
 
#define CMU_CMD_HFCLKSEL_USHFRCODIV2   CMU_CMD_HFCLKSEL(5)
 
#define CMU_LFCLKSEL_LFBE   (1 << 20)
 
#define CMU_LFCLKSEL_LFAE   (1 << 16)
 
#define CMU_LFCLKSEL_LFC_SHIFT   (4)
 
#define CMU_LFCLKSEL_LFC_MASK   (0x3 << CMU_LFCLKSEL_LFC_SHIFT)
 
#define CMU_LFCLKSEL_LFC(v)    (((v) << CMU_LFCLKSEL_LFC_SHIFT) & CMU_LFCLKSEL_LFC_MASK)
 
#define CMU_LFCLKSEL_LFC_DISABLED   CMU_LFCLKSEL_LFC(0)
 
#define CMU_LFCLKSEL_LFC_LFRCO   CMU_LFCLKSEL_LFC(1)
 
#define CMU_LFCLKSEL_LFC_LFXO   CMU_LFCLKSEL_LFC(2)
 
#define CMU_LFCLKSEL_LFB_SHIFT   (2)
 
#define CMU_LFCLKSEL_LFB_MASK   (0x3 << CMU_LFCLKSEL_LFB_SHIFT)
 
#define CMU_LFCLKSEL_LFB(v)    (((v) << CMU_LFCLKSEL_LFB_SHIFT) & CMU_LFCLKSEL_LFB_MASK)
 
#define CMU_LFCLKSEL_LFA_SHIFT   (0)
 
#define CMU_LFCLKSEL_LFA_MASK   (0x3 << CMU_LFCLKSEL_LFA_SHIFT)
 
#define CMU_LFCLKSEL_LFA(v)    (((v) << CMU_LFCLKSEL_LFA_SHIFT) & CMU_LFCLKSEL_LFA_MASK)
 
#define CMU_STATUS_USHFRCODIV2SEL   (1 << 26)
 
#define CMU_STATUS_USHFRCOSUSPEND   (1 << 23)
 
#define CMU_STATUS_USHFRCORDY   (1 << 22)
 
#define CMU_STATUS_USHFRCOENS   (1 << 21)
 
#define CMU_STATUS_USBCHFCLKSYNC   (1 << 20)
 
#define CMU_STATUS_USBCUSHFRCOSEL   (1 << 18)
 
#define CMU_STATUS_USBCLFRCOSEL   (1 << 17)
 
#define CMU_STATUS_USBCLFXOSEL   (1 << 16)
 
#define CMU_STATUS_CALBSY   (1 << 14)
 
#define CMU_STATUS_LFXOSEL   (1 << 13)
 
#define CMU_STATUS_LFRCOSEL   (1 << 12)
 
#define CMU_STATUS_HFXOSEL   (1 << 11)
 
#define CMU_STATUS_HFRCOSEL   (1 << 10)
 
#define CMU_STATUS_LFXORDY   (1 << 9)
 
#define CMU_STATUS_LFXOENS   (1 << 8)
 
#define CMU_STATUS_LFRCORDY   (1 << 7)
 
#define CMU_STATUS_LFRCOENS   (1 << 6)
 
#define CMU_STATUS_AUXHFRCORDY   (1 << 5)
 
#define CMU_STATUS_AUXHFRCOENS   (1 << 4)
 
#define CMU_STATUS_HFXORDY   (1 << 3)
 
#define CMU_STATUS_HFXOENS   (1 << 2)
 
#define CMU_STATUS_HFRCORDY   (1 << 1)
 
#define CMU_STATUS_HFRCOENS   (1 << 0)
 
#define CMU_IF_USBCHFOSCSEL   (1 << 9)
 
#define CMU_IF_USHFRCORDY   (1 << 8)
 
#define CMU_IF_CALOF   (1 << 6)
 
#define CMU_IF_CALRDY   (1 << 5)
 
#define CMU_IF_AUXHFRCORDY   (1 << 4)
 
#define CMU_IF_LFXORDY   (1 << 3)
 
#define CMU_IF_LFRCORDY   (1 << 2)
 
#define CMU_IF_HFXORDY   (1 << 1)
 
#define CMU_IF_HFRCORDY   (1 << 0)
 
#define CMU_IFS_USBCHFOSCSEL   (1 << 9)
 
#define CMU_IFS_USHFRCORDY   (1 << 8)
 
#define CMU_IFS_CALOF   (1 << 6)
 
#define CMU_IFS_CALRDY   (1 << 5)
 
#define CMU_IFS_AUXHFRCORDY   (1 << 4)
 
#define CMU_IFS_LFXORDY   (1 << 3)
 
#define CMU_IFS_LFRCORDY   (1 << 2)
 
#define CMU_IFS_HFXORDY   (1 << 1)
 
#define CMU_IFS_HFRCORDY   (1 << 0)
 
#define CMU_IFC_USBCHFOSCSEL   (1 << 9)
 
#define CMU_IFC_USHFRCORDY   (1 << 8)
 
#define CMU_IFC_CALOF   (1 << 6)
 
#define CMU_IFC_CALRDY   (1 << 5)
 
#define CMU_IFC_AUXHFRCORDY   (1 << 4)
 
#define CMU_IFC_LFXORDY   (1 << 3)
 
#define CMU_IFC_LFRCORDY   (1 << 2)
 
#define CMU_IFC_HFXORDY   (1 << 1)
 
#define CMU_IFC_HFRCORDY   (1 << 0)
 
#define CMU_IEN_USBCHFOSCSEL   (1 << 9)
 
#define CMU_IEN_USHFRCORDY   (1 << 8)
 
#define CMU_IEN_CALOF   (1 << 6)
 
#define CMU_IEN_CALRDY   (1 << 5)
 
#define CMU_IEN_AUXHFRCORDY   (1 << 4)
 
#define CMU_IEN_LFXORDY   (1 << 3)
 
#define CMU_IEN_LFRCORDY   (1 << 2)
 
#define CMU_IEN_HFXORDY   (1 << 1)
 
#define CMU_IEN_HFRCORDY   (1 << 0)
 
#define CMU_HFCORECLKEN0_USB   (1 << 4)
 
#define CMU_HFCORECLKEN0_USBC   (1 << 3)
 
#define CMU_HFCORECLKEN0_LE   (1 << 2)
 
#define CMU_HFCORECLKEN0_DMA   (1 << 1)
 
#define CMU_HFCORECLKEN0_AES   (1 << 0)
 
#define CMU_HFPERCLKEN0_I2C0   (1 << 11)
 
#define CMU_HFPERCLKEN0_ADC0   (1 << 10)
 
#define CMU_HFPERCLKEN0_VCMP   (1 << 9)
 
#define CMU_HFPERCLKEN0_GPIO   (1 << 8)
 
#define CMU_HFPERCLKEN0_IDAC0   (1 << 7)
 
#define CMU_HFPERCLKEN0_PRS   (1 << 6)
 
#define CMU_HFPERCLKEN0_ACMP0   (1 << 5)
 
#define CMU_HFPERCLKEN0_USART1   (1 << 4)
 
#define CMU_HFPERCLKEN0_USART0   (1 << 3)
 
#define CMU_HFPERCLKEN0_TIMER2   (1 << 2)
 
#define CMU_HFPERCLKEN0_TIMER1   (1 << 1)
 
#define CMU_HFPERCLKEN0_TIMER0   (1 << 0)
 
#define CMU_SYNCBUSY_LFCCLKEN0   (1 << 8)
 
#define CMU_SYNCBUSY_LFBPRESC0   (1 << 6)
 
#define CMU_SYNCBUSY_LFBCLKEN0   (1 << 4)
 
#define CMU_SYNCBUSY_LFAPRESC0   (1 << 2)
 
#define CMU_SYNCBUSY_LFACLKEN0   (1 << 0)
 
#define CMU_FREEZE_REGFREEZE   (1 << 0)
 
#define CMU_LFACLKEN0_RTC   (1 << 0)
 
#define CMU_LFBCLKEN0_LEUART0   (1 << 0)
 
#define CMU_LFCCLKEN0_USBLE   (1 << 0)
 
#define CMU_LFAPRESC0_RTC_SHIFT   (0)
 
#define CMU_LFAPRESC0_RTC_MASK   (0xF << CMU_LFAPRESC0_RTC_SHIFT)
 
#define CMU_LFAPRESC0_RTC(v)    (((v) << CMU_LFAPRESC0_RTC_SHIFT) & CMU_LFAPRESC0_RTC_MASK)
 
#define CMU_LFAPRESC0_RTC_DIV1   CMU_LFAPRESC0_RTC(0)
 
#define CMU_LFAPRESC0_RTC_DIV2   CMU_LFAPRESC0_RTC(1)
 
#define CMU_LFAPRESC0_RTC_DIV4   CMU_LFAPRESC0_RTC(2)
 
#define CMU_LFAPRESC0_RTC_DIV8   CMU_LFAPRESC0_RTC(3)
 
#define CMU_LFAPRESC0_RTC_DIV16   CMU_LFAPRESC0_RTC(4)
 
#define CMU_LFAPRESC0_RTC_DIV32   CMU_LFAPRESC0_RTC(5)
 
#define CMU_LFAPRESC0_RTC_DIV64   CMU_LFAPRESC0_RTC(6)
 
#define CMU_LFAPRESC0_RTC_DIV128   CMU_LFAPRESC0_RTC(7)
 
#define CMU_LFAPRESC0_RTC_DIV256   CMU_LFAPRESC0_RTC(8)
 
#define CMU_LFAPRESC0_RTC_DIV512   CMU_LFAPRESC0_RTC(9)
 
#define CMU_LFAPRESC0_RTC_DIV1024   CMU_LFAPRESC0_RTC(10)
 
#define CMU_LFAPRESC0_RTC_DIV2048   CMU_LFAPRESC0_RTC(11)
 
#define CMU_LFAPRESC0_RTC_DIV4096   CMU_LFAPRESC0_RTC(12)
 
#define CMU_LFAPRESC0_RTC_DIV8192   CMU_LFAPRESC0_RTC(13)
 
#define CMU_LFAPRESC0_RTC_DIV16384   CMU_LFAPRESC0_RTC(14)
 
#define CMU_LFAPRESC0_RTC_DIV32768   CMU_LFAPRESC0_RTC(15)
 
#define CMU_LFAPRESC0_RTC_NODIV   CMU_LFAPRESC0_RTC_DIV1
 
#define CMU_LFBPRESC0_LEUART0_SHIFT   (0)
 
#define CMU_LFBPRESC0_LEUART0_MASK   (0x3 << CMU_LFBPRESC0_LEUART0_SHIFT)
 
#define CMU_LFBPRESC0_LEUART0(v)    (((v) << CMU_LFBPRESC0_LEUART0_SHIFT) & CMU_LFBPRESC0_LEUART0_MASK)
 
#define CMU_LFBPRESC0_LEUART0_DIV1   CMU_LFBPRESC0_LEUART0(0)
 
#define CMU_LFBPRESC0_LEUART0_DIV2   CMU_LFBPRESC0_LEUART0(1)
 
#define CMU_LFBPRESC0_LEUART0_DIV4   CMU_LFBPRESC0_LEUART0(2)
 
#define CMU_LFBPRESC0_LEUART0_DIV8   CMU_LFBPRESC0_LEUART0(3)
 
#define CMU_LFBPRESC0_LEUART0_NODIV   CMU_LFBPRESC0_LEUART0_DIV1
 
#define CMU_PCNTCTRL_PCNT0CLKSEL   (1 << 1)
 
#define CMU_PCNTCTRL_PCNT0CLKEN   (1 << 0)
 
#define CMU_ROUTE_LOCATION_SHIFT   (2)
 
#define CMU_ROUTE_LOCATION_MASK   (0x7 << CMU_ROUTE_LOCATION_SHIFT)
 
#define CMU_ROUTE_LOCATION_LOCx(i)    (((i) << CMU_ROUTE_LOCATION_SHIFT) & CMU_ROUTE_LOCATION_MASK)
 
#define CMU_ROUTE_LOCATION_LOC0   CMU_ROUTE_LOCATION_LOCx(0)
 
#define CMU_ROUTE_LOCATION_LOC1   CMU_ROUTE_LOCATION_LOCx(1)
 
#define CMU_ROUTE_LOCATION_LOC2   CMU_ROUTE_LOCATION_LOCx(2)
 
#define CMU_ROUTE_LOCATION_LOC3   CMU_ROUTE_LOCATION_LOCx(3)
 
#define CMU_ROUTE_CLKOUT1PEN   (1 << 1)
 
#define CMU_ROUTE_CLKOUT0PEN   (1 << 0)
 
#define CMU_LOCK_LOCKKEY_SHIFT   (0)
 
#define CMU_LOCK_LOCKKEY_MASK   (0xFFFF << CMU_LOCK_LOCKKEY_SHIFT)
 
#define CMU_LOCK_LOCKKEY_UNLOCKED   (0x0000 << CMU_LOCK_LOCKKEY_SHIFT)
 
#define CMU_LOCK_LOCKKEY_LOCKED   (0x0001 << CMU_LOCK_LOCKKEY_SHIFT)
 
#define CMU_LOCK_LOCKKEY_LOCK   (0x0000 << CMU_LOCK_LOCKKEY_SHIFT)
 
#define CMU_LOCK_LOCKKEY_UNLOCK   (0x580E << CMU_LOCK_LOCKKEY_SHIFT)
 
#define CMU_USBCRCTRL_LSMODE   (1 << 1)
 
#define CMU_USBCRCTRL_EN   (1 << 0)
 
#define CMU_USHFRCOCTRL_TIMEOUT_MASK   (0xff << 12)
 
#define CMU_USHFRCOCTRL_SUSPEND   (1 << 9)
 
#define CMU_USHFRCOCTRL_DITHEN   (1 << 8)
 
#define CMU_USHFRCOCTRL_TUNING_MASK   (0x7f << 0)
 
#define CMU_USHFRCOTUNE_FINETUNING_MASK   (0x3f << 0)
 
#define CMU_USHFRCOTUNE_USHFRCODIV2DIS   (1 << 4)
 
#define CMU_USHFRCOCONF_BAND_MASK   (0x7 << 0)
 
#define CMU_USHFRCOCONF_BAND_48MHZ   (0x1 << 0)
 
#define CMU_USHFRCOCONF_BAND_24MHZ   (0x3 << 0)
 
#define _REG_BIT(base, bit)   (((base) << 5) + (bit))
 

Enumerations

enum  cmu_periph_clken {
  CMU_PCNT0 = _REG_BIT(0x078, 1) , CMU_USBLE = _REG_BIT(0x064, 0) , CMU_LEUART0 = _REG_BIT(0x060, 0) , CMU_RTC = _REG_BIT(0x058, 0) ,
  CMU_I2C0 = _REG_BIT(0x044, 11) , CMU_ADC0 = _REG_BIT(0x044, 10) , CMU_VCMP = _REG_BIT(0x044, 9) , CMU_GPIO = _REG_BIT(0x044, 8) ,
  CMU_IDAC0 = _REG_BIT(0x044, 7) , CMU_PRS = _REG_BIT(0x044, 6) , CMU_ACMP0 = _REG_BIT(0x044, 5) , CMU_USART1 = _REG_BIT(0x044, 4) ,
  CMU_USART0 = _REG_BIT(0x044, 3) , CMU_TIMER2 = _REG_BIT(0x044, 2) , CMU_TIMER1 = _REG_BIT(0x044, 1) , CMU_TIMER0 = _REG_BIT(0x044, 0) ,
  CMU_USB = _REG_BIT(0x040, 4) , CMU_USBC = _REG_BIT(0x040, 3) , CMU_LE = _REG_BIT(0x040, 2) , CMU_DMA = _REG_BIT(0x040, 1)
}
 
enum  cmu_osc {
  HFRCO , LFRCO , HFXO , LFXO ,
  AUXHFRCO , USHFRCO , USHFRCODIV2
}
 

Functions

void cmu_enable_lock (void)
 Enable CMU registers lock. More...
 
void cmu_disable_lock (void)
 Disable CMU registers lock. More...
 
bool cmu_get_lock_flag (void)
 Get CMU register lock flag. More...
 
void cmu_periph_clock_enable (enum cmu_periph_clken periph)
 Enable Peripheral Clock in running mode. More...
 
void cmu_periph_clock_disable (enum cmu_periph_clken periph)
 Disable Peripheral Clock in running mode. More...
 
void cmu_osc_on (enum cmu_osc osc)
 Turn on Oscillator. More...
 
void cmu_osc_off (enum cmu_osc osc)
 Turn off Oscillator. More...
 
bool cmu_osc_ready_flag (enum cmu_osc osc)
 Get Oscillator read flag. More...
 
void cmu_wait_for_osc_ready (enum cmu_osc osc)
 Wait while oscillator is not ready. More...
 
void cmu_set_hfclk_source (enum cmu_osc osc)
 Set HFCLK clock source. More...
 
enum cmu_osc cmu_get_hfclk_source (void)
 Get HFCLK clock source. More...
 
void cmu_set_usbclk_source (enum cmu_osc osc)
 Set USBCLK clock source. More...
 
void cmu_wait_for_usbclk_selected (enum cmu_osc osc)
 Wait while USBCLK is not selected. More...
 

Detailed Description

Defined Constants and Types for the EFM32HG Clock Management Unit

LGPL License Terms libopencm3 License

Macro Definition Documentation

◆ _REG_BIT

#define _REG_BIT (   base,
  bit 
)    (((base) << 5) + (bit))

Definition at line 603 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTR

#define CMU_AUXHFRCOCTR   MMIO32(CMU_BASE + 0x014)

Definition at line 41 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTRL_BAND

#define CMU_AUXHFRCOCTRL_BAND (   v)     (((v) << CMU_AUXHFRCOCTRL_BAND_SHIFT) & CMU_AUXHFRCOCTRL_BAND_MASK)

Definition at line 283 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTRL_BAND_11MHZ

#define CMU_AUXHFRCOCTRL_BAND_11MHZ   CMU_AUXHFRCOCTRL_BAND(1)

Definition at line 286 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTRL_BAND_14MHZ

#define CMU_AUXHFRCOCTRL_BAND_14MHZ   CMU_AUXHFRCOCTRL_BAND(0)

Definition at line 285 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTRL_BAND_1MHZ

#define CMU_AUXHFRCOCTRL_BAND_1MHZ   CMU_AUXHFRCOCTRL_BAND(3)

Definition at line 288 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTRL_BAND_21MHZ

#define CMU_AUXHFRCOCTRL_BAND_21MHZ   CMU_AUXHFRCOCTRL_BAND(7)

Definition at line 290 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTRL_BAND_28MHZ

#define CMU_AUXHFRCOCTRL_BAND_28MHZ   CMU_AUXHFRCOCTRL_BAND(6)

Definition at line 289 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTRL_BAND_7MHZ

#define CMU_AUXHFRCOCTRL_BAND_7MHZ   CMU_AUXHFRCOCTRL_BAND(2)

Definition at line 287 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTRL_BAND_MASK

#define CMU_AUXHFRCOCTRL_BAND_MASK   (0x7 << CMU_AUXHFRCOCTRL_BAND_SHIFT)

Definition at line 282 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTRL_BAND_SHIFT

#define CMU_AUXHFRCOCTRL_BAND_SHIFT   (8)

Definition at line 281 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTRL_TUNING

#define CMU_AUXHFRCOCTRL_TUNING (   v)     (((v) << CMU_AUXHFRCOCTRL_TUNING_SHIFT) & CMU_AUXHFRCOCTRL_TUNING_MASK)

Definition at line 294 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTRL_TUNING_MASK

#define CMU_AUXHFRCOCTRL_TUNING_MASK   (0xFF << CMU_AUXHFRCOCTRL_TUNING_SHIFT)

Definition at line 293 of file hg/cmu.h.

◆ CMU_AUXHFRCOCTRL_TUNING_SHIFT

#define CMU_AUXHFRCOCTRL_TUNING_SHIFT   (0)

Definition at line 292 of file hg/cmu.h.

◆ CMU_CALCNT

#define CMU_CALCNT   MMIO32(CMU_BASE + 0x01C)

Definition at line 43 of file hg/cmu.h.

◆ CMU_CALCNT_CALCNT

#define CMU_CALCNT_CALCNT (   v)     (((v) << CMU_CALCNT_CALCNT_SHIFT) & CMU_CALCNT_CALCNT_MASK)

Definition at line 326 of file hg/cmu.h.

◆ CMU_CALCNT_CALCNT_MASK

#define CMU_CALCNT_CALCNT_MASK   (0xFFFFF << CMU_CALCNT_CALCNT_SHIFT)

Definition at line 325 of file hg/cmu.h.

◆ CMU_CALCNT_CALCNT_SHIFT

#define CMU_CALCNT_CALCNT_SHIFT   (0)

Definition at line 324 of file hg/cmu.h.

◆ CMU_CALCTRL

#define CMU_CALCTRL   MMIO32(CMU_BASE + 0x018)

Definition at line 42 of file hg/cmu.h.

◆ CMU_CALCTRL_CONT

#define CMU_CALCTRL_CONT   (1 << 6)

Definition at line 298 of file hg/cmu.h.

◆ CMU_CALCTRL_DOWNSEL

#define CMU_CALCTRL_DOWNSEL (   v)     (((v) << CMU_CALCTRL_DOWNSEL_SHIFT) & CMU_CALCTRL_DOWNSEL_MASK)

Definition at line 302 of file hg/cmu.h.

◆ CMU_CALCTRL_DOWNSEL_AUXHFRCO

#define CMU_CALCTRL_DOWNSEL_AUXHFRCO   CMU_CALCTRL_DOWNSEL(5)

Definition at line 309 of file hg/cmu.h.

◆ CMU_CALCTRL_DOWNSEL_HFCLK

#define CMU_CALCTRL_DOWNSEL_HFCLK   CMU_CALCTRL_DOWNSEL(0)

Definition at line 304 of file hg/cmu.h.

◆ CMU_CALCTRL_DOWNSEL_HFRCO

#define CMU_CALCTRL_DOWNSEL_HFRCO   CMU_CALCTRL_DOWNSEL(3)

Definition at line 307 of file hg/cmu.h.

◆ CMU_CALCTRL_DOWNSEL_HFXO

#define CMU_CALCTRL_DOWNSEL_HFXO   CMU_CALCTRL_DOWNSEL(1)

Definition at line 305 of file hg/cmu.h.

◆ CMU_CALCTRL_DOWNSEL_LFRCO

#define CMU_CALCTRL_DOWNSEL_LFRCO   CMU_CALCTRL_DOWNSEL(4)

Definition at line 308 of file hg/cmu.h.

◆ CMU_CALCTRL_DOWNSEL_LFXO

#define CMU_CALCTRL_DOWNSEL_LFXO   CMU_CALCTRL_DOWNSEL(2)

Definition at line 306 of file hg/cmu.h.

◆ CMU_CALCTRL_DOWNSEL_MASK

#define CMU_CALCTRL_DOWNSEL_MASK   (0x7 << CMU_CALCTRL_DOWNSEL_SHIFT)

Definition at line 301 of file hg/cmu.h.

◆ CMU_CALCTRL_DOWNSEL_SHIFT

#define CMU_CALCTRL_DOWNSEL_SHIFT   (3)

Definition at line 300 of file hg/cmu.h.

◆ CMU_CALCTRL_DOWNSEL_USHFRCO

#define CMU_CALCTRL_DOWNSEL_USHFRCO   CMU_CALCTRL_DOWNSEL(6)

Definition at line 310 of file hg/cmu.h.

◆ CMU_CALCTRL_UPSEL

#define CMU_CALCTRL_UPSEL (   v)     (((v) << CMU_CALCTRL_UPSEL_SHIFT) & CMU_CALCTRL_UPSEL_MASK)

Definition at line 314 of file hg/cmu.h.

◆ CMU_CALCTRL_UPSEL_AUXHFRCO

#define CMU_CALCTRL_UPSEL_AUXHFRCO   CMU_CALCTRL_UPSEL(4)

Definition at line 320 of file hg/cmu.h.

◆ CMU_CALCTRL_UPSEL_HFRCO

#define CMU_CALCTRL_UPSEL_HFRCO   CMU_CALCTRL_UPSEL(2)

Definition at line 318 of file hg/cmu.h.

◆ CMU_CALCTRL_UPSEL_HFXO

#define CMU_CALCTRL_UPSEL_HFXO   CMU_CALCTRL_UPSEL(0)

Definition at line 316 of file hg/cmu.h.

◆ CMU_CALCTRL_UPSEL_LFRCO

#define CMU_CALCTRL_UPSEL_LFRCO   CMU_CALCTRL_UPSEL(3)

Definition at line 319 of file hg/cmu.h.

◆ CMU_CALCTRL_UPSEL_LFXO

#define CMU_CALCTRL_UPSEL_LFXO   CMU_CALCTRL_UPSEL(1)

Definition at line 317 of file hg/cmu.h.

◆ CMU_CALCTRL_UPSEL_MASK

#define CMU_CALCTRL_UPSEL_MASK   (0x7 << CMU_CALCTRL_UPSEL_SHIFT)

Definition at line 313 of file hg/cmu.h.

◆ CMU_CALCTRL_UPSEL_SHIFT

#define CMU_CALCTRL_UPSEL_SHIFT   (3)

Definition at line 312 of file hg/cmu.h.

◆ CMU_CALCTRL_UPSEL_USHFRCO

#define CMU_CALCTRL_UPSEL_USHFRCO   CMU_CALCTRL_UPSEL(5)

Definition at line 321 of file hg/cmu.h.

◆ CMU_CMD

#define CMU_CMD   MMIO32(CMU_BASE + 0x024)

Definition at line 45 of file hg/cmu.h.

◆ CMU_CMD_CALSTART

#define CMU_CMD_CALSTART   (1 << 3)

Definition at line 354 of file hg/cmu.h.

◆ CMU_CMD_CALSTOP

#define CMU_CMD_CALSTOP   (1 << 4)

Definition at line 353 of file hg/cmu.h.

◆ CMU_CMD_HFCLKSEL

#define CMU_CMD_HFCLKSEL (   v)     (((v) << CMU_CMD_HFCLKSEL_SHIFT) & CMU_CMD_HFCLKSEL_MASK)

Definition at line 358 of file hg/cmu.h.

◆ CMU_CMD_HFCLKSEL_HFRCO

#define CMU_CMD_HFCLKSEL_HFRCO   CMU_CMD_HFCLKSEL(1)

Definition at line 360 of file hg/cmu.h.

◆ CMU_CMD_HFCLKSEL_HFXO

#define CMU_CMD_HFCLKSEL_HFXO   CMU_CMD_HFCLKSEL(2)

Definition at line 361 of file hg/cmu.h.

◆ CMU_CMD_HFCLKSEL_LFRCO

#define CMU_CMD_HFCLKSEL_LFRCO   CMU_CMD_HFCLKSEL(3)

Definition at line 362 of file hg/cmu.h.

◆ CMU_CMD_HFCLKSEL_LFXO

#define CMU_CMD_HFCLKSEL_LFXO   CMU_CMD_HFCLKSEL(4)

Definition at line 363 of file hg/cmu.h.

◆ CMU_CMD_HFCLKSEL_MASK

#define CMU_CMD_HFCLKSEL_MASK   (0x7 << CMU_CMD_HFCLKSEL_SHIFT)

Definition at line 357 of file hg/cmu.h.

◆ CMU_CMD_HFCLKSEL_SHIFT

#define CMU_CMD_HFCLKSEL_SHIFT   (0)

Definition at line 356 of file hg/cmu.h.

◆ CMU_CMD_HFCLKSEL_USHFRCODIV2

#define CMU_CMD_HFCLKSEL_USHFRCODIV2   CMU_CMD_HFCLKSEL(5)

Definition at line 364 of file hg/cmu.h.

◆ CMU_CMD_USBCCLKSEL

#define CMU_CMD_USBCCLKSEL (   v)     (((v) << CMU_CMD_USBCCLKSEL_SHIFT) & CMU_CMD_USBCCLKSEL_MASK)

Definition at line 347 of file hg/cmu.h.

◆ CMU_CMD_USBCCLKSEL_LFRCO

#define CMU_CMD_USBCCLKSEL_LFRCO   CMU_CMD_USBCCLKSEL(3)

Definition at line 350 of file hg/cmu.h.

◆ CMU_CMD_USBCCLKSEL_LFXO

#define CMU_CMD_USBCCLKSEL_LFXO   CMU_CMD_USBCCLKSEL(2)

Definition at line 349 of file hg/cmu.h.

◆ CMU_CMD_USBCCLKSEL_MASK

#define CMU_CMD_USBCCLKSEL_MASK   (0x5 << CMU_CMD_USBCCLKSEL_SHIFT)

Definition at line 346 of file hg/cmu.h.

◆ CMU_CMD_USBCCLKSEL_SHIFT

#define CMU_CMD_USBCCLKSEL_SHIFT   (5)

Definition at line 345 of file hg/cmu.h.

◆ CMU_CMD_USBCCLKSEL_USHFRCO

#define CMU_CMD_USBCCLKSEL_USHFRCO   CMU_CMD_USBCCLKSEL(4)

Definition at line 351 of file hg/cmu.h.

◆ CMU_CTRL

#define CMU_CTRL   MMIO32(CMU_BASE + 0x000)

Definition at line 36 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL0

#define CMU_CTRL_CLKOUTSEL0 (   v)     (((v) << CMU_CTRL_CLKOUTSEL0_SHIFT) & CMU_CTRL_CLKOUTSEL0_MASK)

Definition at line 86 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL0_AUXHFRCO

#define CMU_CTRL_CLKOUTSEL0_AUXHFRCO   CMU_CTRL_CLKOUTSEL0(7)

Definition at line 95 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL0_HFCLK16

#define CMU_CTRL_CLKOUTSEL0_HFCLK16   CMU_CTRL_CLKOUTSEL0(5)

Definition at line 93 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL0_HFCLK2

#define CMU_CTRL_CLKOUTSEL0_HFCLK2   CMU_CTRL_CLKOUTSEL0(2)

Definition at line 90 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL0_HFCLK4

#define CMU_CTRL_CLKOUTSEL0_HFCLK4   CMU_CTRL_CLKOUTSEL0(3)

Definition at line 91 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL0_HFCLK8

#define CMU_CTRL_CLKOUTSEL0_HFCLK8   CMU_CTRL_CLKOUTSEL0(4)

Definition at line 92 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL0_HFRCO

#define CMU_CTRL_CLKOUTSEL0_HFRCO   CMU_CTRL_CLKOUTSEL0(0)

Definition at line 88 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL0_HFXO

#define CMU_CTRL_CLKOUTSEL0_HFXO   CMU_CTRL_CLKOUTSEL0(1)

Definition at line 89 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL0_MASK

#define CMU_CTRL_CLKOUTSEL0_MASK   (0x7 << CMU_CTRL_CLKOUTSEL0_SHIFT)

Definition at line 85 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL0_SHIFT

#define CMU_CTRL_CLKOUTSEL0_SHIFT   (20)

Definition at line 84 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL0_ULFRCO

#define CMU_CTRL_CLKOUTSEL0_ULFRCO   CMU_CTRL_CLKOUTSEL0(6)

Definition at line 94 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL1

#define CMU_CTRL_CLKOUTSEL1 (   v)     (((v) << CMU_CTRL_CLKOUTSEL1_SHIFT) & CMU_CTRL_CLKOUTSEL1_MASK)

Definition at line 72 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL1_AUXHFRCOQ

#define CMU_CTRL_CLKOUTSEL1_AUXHFRCOQ   CMU_CTRL_CLKOUTSEL1(7)

Definition at line 81 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL1_HFCLK

#define CMU_CTRL_CLKOUTSEL1_HFCLK   CMU_CTRL_CLKOUTSEL1(2)

Definition at line 76 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL1_HFRCOQ

#define CMU_CTRL_CLKOUTSEL1_HFRCOQ   CMU_CTRL_CLKOUTSEL1(6)

Definition at line 80 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL1_HFXOQ

#define CMU_CTRL_CLKOUTSEL1_HFXOQ   CMU_CTRL_CLKOUTSEL1(4)

Definition at line 78 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL1_LFRCO

#define CMU_CTRL_CLKOUTSEL1_LFRCO   CMU_CTRL_CLKOUTSEL1(0)

Definition at line 74 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL1_LFRCOQ

#define CMU_CTRL_CLKOUTSEL1_LFRCOQ   CMU_CTRL_CLKOUTSEL1(5)

Definition at line 79 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL1_LFXO

#define CMU_CTRL_CLKOUTSEL1_LFXO   CMU_CTRL_CLKOUTSEL1(1)

Definition at line 75 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL1_LFXOQ

#define CMU_CTRL_CLKOUTSEL1_LFXOQ   CMU_CTRL_CLKOUTSEL1(3)

Definition at line 77 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL1_MASK

#define CMU_CTRL_CLKOUTSEL1_MASK   (0x7 << CMU_CTRL_CLKOUTSEL1_SHIFT)

Definition at line 71 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL1_SHIFT

#define CMU_CTRL_CLKOUTSEL1_SHIFT   (23)

Definition at line 70 of file hg/cmu.h.

◆ CMU_CTRL_CLKOUTSEL1_USHFRCO

#define CMU_CTRL_CLKOUTSEL1_USHFRCO   CMU_CTRL_CLKOUTSEL1(8)

Definition at line 82 of file hg/cmu.h.

◆ CMU_CTRL_HFCLKDIV

#define CMU_CTRL_HFCLKDIV (   v)     (((v) << CMU_CTRL_HFCLKDIV_SHIFT) & CMU_CTRL_HFCLKDIV_MASK)

Definition at line 110 of file hg/cmu.h.

◆ CMU_CTRL_HFCLKDIV_DIV2

#define CMU_CTRL_HFCLKDIV_DIV2   CMU_CTRL_HFCLKDIV(1)

Definition at line 113 of file hg/cmu.h.

◆ CMU_CTRL_HFCLKDIV_DIV3

#define CMU_CTRL_HFCLKDIV_DIV3   CMU_CTRL_HFCLKDIV(2)

Definition at line 114 of file hg/cmu.h.

◆ CMU_CTRL_HFCLKDIV_DIV4

#define CMU_CTRL_HFCLKDIV_DIV4   CMU_CTRL_HFCLKDIV(3)

Definition at line 115 of file hg/cmu.h.

◆ CMU_CTRL_HFCLKDIV_DIV5

#define CMU_CTRL_HFCLKDIV_DIV5   CMU_CTRL_HFCLKDIV(4)

Definition at line 116 of file hg/cmu.h.

◆ CMU_CTRL_HFCLKDIV_DIV6

#define CMU_CTRL_HFCLKDIV_DIV6   CMU_CTRL_HFCLKDIV(5)

Definition at line 117 of file hg/cmu.h.

◆ CMU_CTRL_HFCLKDIV_DIV7

#define CMU_CTRL_HFCLKDIV_DIV7   CMU_CTRL_HFCLKDIV(6)

Definition at line 118 of file hg/cmu.h.

◆ CMU_CTRL_HFCLKDIV_DIV8

#define CMU_CTRL_HFCLKDIV_DIV8   CMU_CTRL_HFCLKDIV(7)

Definition at line 119 of file hg/cmu.h.

◆ CMU_CTRL_HFCLKDIV_MASK

#define CMU_CTRL_HFCLKDIV_MASK   (0x7 << CMU_CTRL_HFCLKDIV_SHIFT)

Definition at line 109 of file hg/cmu.h.

◆ CMU_CTRL_HFCLKDIV_NODIV

#define CMU_CTRL_HFCLKDIV_NODIV   CMU_CTRL_HFCLKDIV(0)

Definition at line 112 of file hg/cmu.h.

◆ CMU_CTRL_HFCLKDIV_SHIFT

#define CMU_CTRL_HFCLKDIV_SHIFT   (14)

Definition at line 108 of file hg/cmu.h.

◆ CMU_CTRL_HFXOBOOST

#define CMU_CTRL_HFXOBOOST (   v)     (((v) << CMU_CTRL_HFXOBOOST_SHIFT) & CMU_CTRL_HFXOBOOST_MASK)

Definition at line 145 of file hg/cmu.h.

◆ CMU_CTRL_HFXOBOOST_100PCENT

#define CMU_CTRL_HFXOBOOST_100PCENT   CMU_CTRL_HFXOBOOST(3)

Definition at line 150 of file hg/cmu.h.

◆ CMU_CTRL_HFXOBOOST_50PCENT

#define CMU_CTRL_HFXOBOOST_50PCENT   CMU_CTRL_HFXOBOOST(0)

Definition at line 147 of file hg/cmu.h.

◆ CMU_CTRL_HFXOBOOST_70PCENT

#define CMU_CTRL_HFXOBOOST_70PCENT   CMU_CTRL_HFXOBOOST(1)

Definition at line 148 of file hg/cmu.h.

◆ CMU_CTRL_HFXOBOOST_80PCENT

#define CMU_CTRL_HFXOBOOST_80PCENT   CMU_CTRL_HFXOBOOST(2)

Definition at line 149 of file hg/cmu.h.

◆ CMU_CTRL_HFXOBOOST_MASK

#define CMU_CTRL_HFXOBOOST_MASK   (0x3 << CMU_CTRL_HFXOBOOST_SHIFT)

Definition at line 144 of file hg/cmu.h.

◆ CMU_CTRL_HFXOBOOST_SHIFT

#define CMU_CTRL_HFXOBOOST_SHIFT   (2)

Definition at line 143 of file hg/cmu.h.

◆ CMU_CTRL_HFXOBUFCUR_MASK

#define CMU_CTRL_HFXOBUFCUR_MASK   (0x3 << 5)

Definition at line 141 of file hg/cmu.h.

◆ CMU_CTRL_HFXOGLITCHDETEN

#define CMU_CTRL_HFXOGLITCHDETEN   (1 << 7)

Definition at line 140 of file hg/cmu.h.

◆ CMU_CTRL_HFXOMODE

#define CMU_CTRL_HFXOMODE (   v)     (((v) << CMU_CTRL_HFXOMODE_SHIFT) & CMU_CTRL_HFXOMODE_MASK)

Definition at line 154 of file hg/cmu.h.

◆ CMU_CTRL_HFXOMODE_BUFEXTCLK

#define CMU_CTRL_HFXOMODE_BUFEXTCLK   CMU_CTRL_HFXOMODE(1)

Definition at line 157 of file hg/cmu.h.

◆ CMU_CTRL_HFXOMODE_DIGEXTCLK

#define CMU_CTRL_HFXOMODE_DIGEXTCLK   CMU_CTRL_HFXOMODE(2)

Definition at line 158 of file hg/cmu.h.

◆ CMU_CTRL_HFXOMODE_MASK

#define CMU_CTRL_HFXOMODE_MASK   (0x3 << CMU_CTRL_HFXOMODE_SHIFT)

Definition at line 153 of file hg/cmu.h.

◆ CMU_CTRL_HFXOMODE_SHIFT

#define CMU_CTRL_HFXOMODE_SHIFT   (0)

Definition at line 152 of file hg/cmu.h.

◆ CMU_CTRL_HFXOMODE_XTAL

#define CMU_CTRL_HFXOMODE_XTAL   CMU_CTRL_HFXOMODE(0)

Definition at line 156 of file hg/cmu.h.

◆ CMU_CTRL_HFXOTIMEOUT

#define CMU_CTRL_HFXOTIMEOUT (   v)     (((v) << CMU_CTRL_HFXOTIMEOUT_SHIFT) & CMU_CTRL_HFXOTIMEOUT_MASK)

Definition at line 133 of file hg/cmu.h.

◆ CMU_CTRL_HFXOTIMEOUT_16KCYCLES

#define CMU_CTRL_HFXOTIMEOUT_16KCYCLES   CMU_CTRL_HFXOTIMEOUT(3)

Definition at line 138 of file hg/cmu.h.

◆ CMU_CTRL_HFXOTIMEOUT_1KCYCLES

#define CMU_CTRL_HFXOTIMEOUT_1KCYCLES   CMU_CTRL_HFXOTIMEOUT(2)

Definition at line 137 of file hg/cmu.h.

◆ CMU_CTRL_HFXOTIMEOUT_256CYCLES

#define CMU_CTRL_HFXOTIMEOUT_256CYCLES   CMU_CTRL_HFXOTIMEOUT(1)

Definition at line 136 of file hg/cmu.h.

◆ CMU_CTRL_HFXOTIMEOUT_8CYCLES

#define CMU_CTRL_HFXOTIMEOUT_8CYCLES   CMU_CTRL_HFXOTIMEOUT(0)

Definition at line 135 of file hg/cmu.h.

◆ CMU_CTRL_HFXOTIMEOUT_MASK

#define CMU_CTRL_HFXOTIMEOUT_MASK   (0x3 << CMU_CTRL_HFXOTIMEOUT_SHIFT)

Definition at line 132 of file hg/cmu.h.

◆ CMU_CTRL_HFXOTIMEOUT_SHIFT

#define CMU_CTRL_HFXOTIMEOUT_SHIFT   (9)

Definition at line 131 of file hg/cmu.h.

◆ CMU_CTRL_LFXOBOOST

#define CMU_CTRL_LFXOBOOST   (1 << 13)

Definition at line 121 of file hg/cmu.h.

◆ CMU_CTRL_LFXOBUFCUR

#define CMU_CTRL_LFXOBUFCUR   (1 << 17)

Definition at line 106 of file hg/cmu.h.

◆ CMU_CTRL_LFXOMODE

#define CMU_CTRL_LFXOMODE (   v)     (((v) << CMU_CTRL_LFXOMODE_SHIFT) & CMU_CTRL_LFXOMODE_MASK)

Definition at line 125 of file hg/cmu.h.

◆ CMU_CTRL_LFXOMODE_BUFEXTCLK

#define CMU_CTRL_LFXOMODE_BUFEXTCLK   CMU_CTRL_LFXOMODE(1)

Definition at line 128 of file hg/cmu.h.

◆ CMU_CTRL_LFXOMODE_DIGEXTCLK

#define CMU_CTRL_LFXOMODE_DIGEXTCLK   CMU_CTRL_LFXOMODE(2)

Definition at line 129 of file hg/cmu.h.

◆ CMU_CTRL_LFXOMODE_MASK

#define CMU_CTRL_LFXOMODE_MASK   (0x3 << CMU_CTRL_LFXOMODE_SHIFT)

Definition at line 124 of file hg/cmu.h.

◆ CMU_CTRL_LFXOMODE_SHIFT

#define CMU_CTRL_LFXOMODE_SHIFT   (11)

Definition at line 123 of file hg/cmu.h.

◆ CMU_CTRL_LFXOMODE_XTAL

#define CMU_CTRL_LFXOMODE_XTAL   CMU_CTRL_LFXOMODE(0)

Definition at line 127 of file hg/cmu.h.

◆ CMU_CTRL_LFXOTIMEOUT

#define CMU_CTRL_LFXOTIMEOUT (   v)     (((v) << CMU_CTRL_LFXOTIMEOUT_SHIFT) & CMU_CTRL_LFXOTIMEOUT_MASK)

Definition at line 99 of file hg/cmu.h.

◆ CMU_CTRL_LFXOTIMEOUT_16KCYCLES

#define CMU_CTRL_LFXOTIMEOUT_16KCYCLES   CMU_CTRL_LFXOTIMEOUT(2)

Definition at line 103 of file hg/cmu.h.

◆ CMU_CTRL_LFXOTIMEOUT_1KCYCLES

#define CMU_CTRL_LFXOTIMEOUT_1KCYCLES   CMU_CTRL_LFXOTIMEOUT(1)

Definition at line 102 of file hg/cmu.h.

◆ CMU_CTRL_LFXOTIMEOUT_32KCYCLES

#define CMU_CTRL_LFXOTIMEOUT_32KCYCLES   CMU_CTRL_LFXOTIMEOUT(3)

Definition at line 104 of file hg/cmu.h.

◆ CMU_CTRL_LFXOTIMEOUT_8CYCLES

#define CMU_CTRL_LFXOTIMEOUT_8CYCLES   CMU_CTRL_LFXOTIMEOUT(0)

Definition at line 101 of file hg/cmu.h.

◆ CMU_CTRL_LFXOTIMEOUT_MASK

#define CMU_CTRL_LFXOTIMEOUT_MASK   (0x3 << CMU_CTRL_LFXOTIMEOUT_SHIFT)

Definition at line 98 of file hg/cmu.h.

◆ CMU_CTRL_LFXOTIMEOUT_SHIFT

#define CMU_CTRL_LFXOTIMEOUT_SHIFT   (18)

Definition at line 97 of file hg/cmu.h.

◆ CMU_FREEZE

#define CMU_FREEZE   MMIO32(CMU_BASE + 0x054)

Definition at line 55 of file hg/cmu.h.

◆ CMU_FREEZE_REGFREEZE

#define CMU_FREEZE_REGFREEZE   (1 << 0)

Definition at line 508 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV

#define CMU_HFCORECLKDIV   MMIO32(CMU_BASE + 0x004)

Definition at line 37 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV

#define CMU_HFCORECLKDIV_HFCORECLKDIV (   v)
Value:
CMU_HFCORECLKDIV_HFCORECLKDIV_MASK)
#define CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT
Definition: hg/cmu.h:163

Definition at line 166 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_DIV128

#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV128    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128

Definition at line 204 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_DIV16

#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV16    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16

Definition at line 198 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_DIV2

#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV2    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2

Definition at line 192 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_DIV256

#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV256    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256

Definition at line 206 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_DIV32

#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV32    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32

Definition at line 200 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_DIV4

#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV4    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4

Definition at line 194 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_DIV512

#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV512    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512

Definition at line 208 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_DIV64

#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV64    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64

Definition at line 202 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_DIV8

#define CMU_HFCORECLKDIV_HFCORECLKDIV_DIV8    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8

Definition at line 196 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK

#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK    CMU_HFCORECLKDIV_HFCORECLKDIV(0)

Definition at line 169 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128

#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128    CMU_HFCORECLKDIV_HFCORECLKDIV(7)

Definition at line 183 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16

#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16    CMU_HFCORECLKDIV_HFCORECLKDIV(4)

Definition at line 177 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2

#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2    CMU_HFCORECLKDIV_HFCORECLKDIV(1)

Definition at line 171 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256

#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256    CMU_HFCORECLKDIV_HFCORECLKDIV(8)

Definition at line 185 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32

#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32    CMU_HFCORECLKDIV_HFCORECLKDIV(5)

Definition at line 179 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4

#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4    CMU_HFCORECLKDIV_HFCORECLKDIV(2)

Definition at line 173 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512

#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512    CMU_HFCORECLKDIV_HFCORECLKDIV(9)

Definition at line 187 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64

#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64    CMU_HFCORECLKDIV_HFCORECLKDIV(6)

Definition at line 181 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8

#define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8    CMU_HFCORECLKDIV_HFCORECLKDIV(3)

Definition at line 175 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_MASK

#define CMU_HFCORECLKDIV_HFCORECLKDIV_MASK    (0xF << CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT)

Definition at line 164 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_NODIV

#define CMU_HFCORECLKDIV_HFCORECLKDIV_NODIV    CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK

Definition at line 190 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT

#define CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT   (0)

Definition at line 163 of file hg/cmu.h.

◆ CMU_HFCORECLKDIV_HFCORECLKLEDIV

#define CMU_HFCORECLKDIV_HFCORECLKLEDIV   (1 << 8)

Definition at line 161 of file hg/cmu.h.

◆ CMU_HFCORECLKEN0

#define CMU_HFCORECLKEN0   MMIO32(CMU_BASE + 0x040)

Definition at line 52 of file hg/cmu.h.

◆ CMU_HFCORECLKEN0_AES

#define CMU_HFCORECLKEN0_AES   (1 << 0)

Definition at line 478 of file hg/cmu.h.

◆ CMU_HFCORECLKEN0_DMA

#define CMU_HFCORECLKEN0_DMA   (1 << 1)

Definition at line 477 of file hg/cmu.h.

◆ CMU_HFCORECLKEN0_LE

#define CMU_HFCORECLKEN0_LE   (1 << 2)

Definition at line 476 of file hg/cmu.h.

◆ CMU_HFCORECLKEN0_USB

#define CMU_HFCORECLKEN0_USB   (1 << 4)

Definition at line 474 of file hg/cmu.h.

◆ CMU_HFCORECLKEN0_USBC

#define CMU_HFCORECLKEN0_USBC   (1 << 3)

Definition at line 475 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV

#define CMU_HFPERCLKDIV   MMIO32(CMU_BASE + 0x008)

Definition at line 38 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV

#define CMU_HFPERCLKDIV_HFPERCLKDIV (   v)
Value:
CMU_HFPERCLKDIV_HFPERCLKDIV_MASK)
#define CMU_HFPERCLKDIV_HFPERCLKDIV_SHIFT
Definition: hg/cmu.h:214

Definition at line 217 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV_DIV128

#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV128    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK128

Definition at line 246 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV_DIV16

#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV16    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK16

Definition at line 240 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV_DIV2

#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV2    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK2

Definition at line 234 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV_DIV256

#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV256    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK256

Definition at line 248 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV_DIV32

#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV32    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK32

Definition at line 242 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV_DIV4

#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV4    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK4

Definition at line 236 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV_DIV512

#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV512    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK512

Definition at line 250 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV_DIV64

#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV64    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK64

Definition at line 244 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV_DIV8

#define CMU_HFPERCLKDIV_HFPERCLKDIV_DIV8    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK8

Definition at line 238 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV_MASK

#define CMU_HFPERCLKDIV_HFPERCLKDIV_MASK    (0xF << CMU_HFPERCLKDIV_HFPERCLKDIV_SHIFT)

Definition at line 215 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV_NODIV

#define CMU_HFPERCLKDIV_HFPERCLKDIV_NODIV    CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK

Definition at line 232 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKDIV_SHIFT

#define CMU_HFPERCLKDIV_HFPERCLKDIV_SHIFT   (0)

Definition at line 214 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKEN

#define CMU_HFPERCLKDIV_HFPERCLKEN   (1 << 8)

Definition at line 212 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK

#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK   CMU_HFPERCLKDIV_HFPERCLKDIV(0)

Definition at line 220 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK128

#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK128   CMU_HFPERCLKDIV_HFPERCLKDIV(7)

Definition at line 227 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK16

#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK16   CMU_HFPERCLKDIV_HFPERCLKDIV(4)

Definition at line 224 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK2

#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK2   CMU_HFPERCLKDIV_HFPERCLKDIV(1)

Definition at line 221 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK256

#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK256   CMU_HFPERCLKDIV_HFPERCLKDIV(8)

Definition at line 228 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK32

#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK32   CMU_HFPERCLKDIV_HFPERCLKDIV(5)

Definition at line 225 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK4

#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK4   CMU_HFPERCLKDIV_HFPERCLKDIV(2)

Definition at line 222 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK512

#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK512   CMU_HFPERCLKDIV_HFPERCLKDIV(9)

Definition at line 229 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK64

#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK64   CMU_HFPERCLKDIV_HFPERCLKDIV(6)

Definition at line 226 of file hg/cmu.h.

◆ CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK8

#define CMU_HFPERCLKDIV_HFPERCLKHFCLK_HFCLK8   CMU_HFPERCLKDIV_HFPERCLKDIV(3)

Definition at line 223 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0

#define CMU_HFPERCLKEN0   MMIO32(CMU_BASE + 0x044)

Definition at line 53 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0_ACMP0

#define CMU_HFPERCLKEN0_ACMP0   (1 << 5)

Definition at line 488 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0_ADC0

#define CMU_HFPERCLKEN0_ADC0   (1 << 10)

Definition at line 483 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0_GPIO

#define CMU_HFPERCLKEN0_GPIO   (1 << 8)

Definition at line 485 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0_I2C0

#define CMU_HFPERCLKEN0_I2C0   (1 << 11)

Definition at line 482 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0_IDAC0

#define CMU_HFPERCLKEN0_IDAC0   (1 << 7)

Definition at line 486 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0_PRS

#define CMU_HFPERCLKEN0_PRS   (1 << 6)

Definition at line 487 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0_TIMER0

#define CMU_HFPERCLKEN0_TIMER0   (1 << 0)

Definition at line 493 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0_TIMER1

#define CMU_HFPERCLKEN0_TIMER1   (1 << 1)

Definition at line 492 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0_TIMER2

#define CMU_HFPERCLKEN0_TIMER2   (1 << 2)

Definition at line 491 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0_USART0

#define CMU_HFPERCLKEN0_USART0   (1 << 3)

Definition at line 490 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0_USART1

#define CMU_HFPERCLKEN0_USART1   (1 << 4)

Definition at line 489 of file hg/cmu.h.

◆ CMU_HFPERCLKEN0_VCMP

#define CMU_HFPERCLKEN0_VCMP   (1 << 9)

Definition at line 484 of file hg/cmu.h.

◆ CMU_HFRCOCTRL

#define CMU_HFRCOCTRL   MMIO32(CMU_BASE + 0x00C)

Definition at line 39 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_BAND

#define CMU_HFRCOCTRL_BAND (   v)     (((v) << CMU_HFRCOCTRL_BAND_SHIFT) & CMU_HFRCOCTRL_BAND_MASK)

Definition at line 261 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_BAND_11MHZ

#define CMU_HFRCOCTRL_BAND_11MHZ   CMU_HFRCOCTRL_BAND(2)

Definition at line 265 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_BAND_14MHZ

#define CMU_HFRCOCTRL_BAND_14MHZ   CMU_HFRCOCTRL_BAND(3)

Definition at line 266 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_BAND_1MHZ

#define CMU_HFRCOCTRL_BAND_1MHZ   CMU_HFRCOCTRL_BAND(0)

Definition at line 263 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_BAND_21MHZ

#define CMU_HFRCOCTRL_BAND_21MHZ   CMU_HFRCOCTRL_BAND(4)

Definition at line 267 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_BAND_7MHZ

#define CMU_HFRCOCTRL_BAND_7MHZ   CMU_HFRCOCTRL_BAND(1)

Definition at line 264 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_BAND_MASK

#define CMU_HFRCOCTRL_BAND_MASK   (0x7 << CMU_HFRCOCTRL_BAND_SHIFT)

Definition at line 260 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_BAND_SHIFT

#define CMU_HFRCOCTRL_BAND_SHIFT   (8)

Definition at line 259 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_SUDELAY

#define CMU_HFRCOCTRL_SUDELAY (   v)     ((((v) << CMU_HFRCOCTRL_SUDELAY_SHIFT) & CMU_HFRCOCTRL_SUDELAY_MASK))

Definition at line 256 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_SUDELAY_MASK

#define CMU_HFRCOCTRL_SUDELAY_MASK   (0x1F << CMU_HFRCOCTRL_SUDELAY_SHIFT)

Definition at line 255 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_SUDELAY_SHIFT

#define CMU_HFRCOCTRL_SUDELAY_SHIFT   (12)

Definition at line 254 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_TUNING

#define CMU_HFRCOCTRL_TUNING (   v)     (((v) << CMU_HFRCOCTRL_TUNING_SHIFT) & CMU_HFRCOCTRL_TUNING_MASK)

Definition at line 271 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_TUNING_MASK

#define CMU_HFRCOCTRL_TUNING_MASK   (0xFF << CMU_HFRCOCTRL_TUNING_SHIFT)

Definition at line 270 of file hg/cmu.h.

◆ CMU_HFRCOCTRL_TUNING_SHIFT

#define CMU_HFRCOCTRL_TUNING_SHIFT   (0)

Definition at line 269 of file hg/cmu.h.

◆ CMU_IEN

#define CMU_IEN   MMIO32(CMU_BASE + 0x03C)

Definition at line 51 of file hg/cmu.h.

◆ CMU_IEN_AUXHFRCORDY

#define CMU_IEN_AUXHFRCORDY   (1 << 4)

Definition at line 466 of file hg/cmu.h.

◆ CMU_IEN_CALOF

#define CMU_IEN_CALOF   (1 << 6)

Definition at line 464 of file hg/cmu.h.

◆ CMU_IEN_CALRDY

#define CMU_IEN_CALRDY   (1 << 5)

Definition at line 465 of file hg/cmu.h.

◆ CMU_IEN_HFRCORDY

#define CMU_IEN_HFRCORDY   (1 << 0)

Definition at line 470 of file hg/cmu.h.

◆ CMU_IEN_HFXORDY

#define CMU_IEN_HFXORDY   (1 << 1)

Definition at line 469 of file hg/cmu.h.

◆ CMU_IEN_LFRCORDY

#define CMU_IEN_LFRCORDY   (1 << 2)

Definition at line 468 of file hg/cmu.h.

◆ CMU_IEN_LFXORDY

#define CMU_IEN_LFXORDY   (1 << 3)

Definition at line 467 of file hg/cmu.h.

◆ CMU_IEN_USBCHFOSCSEL

#define CMU_IEN_USBCHFOSCSEL   (1 << 9)

Definition at line 461 of file hg/cmu.h.

◆ CMU_IEN_USHFRCORDY

#define CMU_IEN_USHFRCORDY   (1 << 8)

Definition at line 462 of file hg/cmu.h.

◆ CMU_IF

#define CMU_IF   MMIO32(CMU_BASE + 0x030)

Definition at line 48 of file hg/cmu.h.

◆ CMU_IF_AUXHFRCORDY

#define CMU_IF_AUXHFRCORDY   (1 << 4)

Definition at line 427 of file hg/cmu.h.

◆ CMU_IF_CALOF

#define CMU_IF_CALOF   (1 << 6)

Definition at line 425 of file hg/cmu.h.

◆ CMU_IF_CALRDY

#define CMU_IF_CALRDY   (1 << 5)

Definition at line 426 of file hg/cmu.h.

◆ CMU_IF_HFRCORDY

#define CMU_IF_HFRCORDY   (1 << 0)

Definition at line 431 of file hg/cmu.h.

◆ CMU_IF_HFXORDY

#define CMU_IF_HFXORDY   (1 << 1)

Definition at line 430 of file hg/cmu.h.

◆ CMU_IF_LFRCORDY

#define CMU_IF_LFRCORDY   (1 << 2)

Definition at line 429 of file hg/cmu.h.

◆ CMU_IF_LFXORDY

#define CMU_IF_LFXORDY   (1 << 3)

Definition at line 428 of file hg/cmu.h.

◆ CMU_IF_USBCHFOSCSEL

#define CMU_IF_USBCHFOSCSEL   (1 << 9)

Definition at line 422 of file hg/cmu.h.

◆ CMU_IF_USHFRCORDY

#define CMU_IF_USHFRCORDY   (1 << 8)

Definition at line 423 of file hg/cmu.h.

◆ CMU_IFC

#define CMU_IFC   MMIO32(CMU_BASE + 0x038)

Definition at line 50 of file hg/cmu.h.

◆ CMU_IFC_AUXHFRCORDY

#define CMU_IFC_AUXHFRCORDY   (1 << 4)

Definition at line 453 of file hg/cmu.h.

◆ CMU_IFC_CALOF

#define CMU_IFC_CALOF   (1 << 6)

Definition at line 451 of file hg/cmu.h.

◆ CMU_IFC_CALRDY

#define CMU_IFC_CALRDY   (1 << 5)

Definition at line 452 of file hg/cmu.h.

◆ CMU_IFC_HFRCORDY

#define CMU_IFC_HFRCORDY   (1 << 0)

Definition at line 457 of file hg/cmu.h.

◆ CMU_IFC_HFXORDY

#define CMU_IFC_HFXORDY   (1 << 1)

Definition at line 456 of file hg/cmu.h.

◆ CMU_IFC_LFRCORDY

#define CMU_IFC_LFRCORDY   (1 << 2)

Definition at line 455 of file hg/cmu.h.

◆ CMU_IFC_LFXORDY

#define CMU_IFC_LFXORDY   (1 << 3)

Definition at line 454 of file hg/cmu.h.

◆ CMU_IFC_USBCHFOSCSEL

#define CMU_IFC_USBCHFOSCSEL   (1 << 9)

Definition at line 448 of file hg/cmu.h.

◆ CMU_IFC_USHFRCORDY

#define CMU_IFC_USHFRCORDY   (1 << 8)

Definition at line 449 of file hg/cmu.h.

◆ CMU_IFS

#define CMU_IFS   MMIO32(CMU_BASE + 0x034)

Definition at line 49 of file hg/cmu.h.

◆ CMU_IFS_AUXHFRCORDY

#define CMU_IFS_AUXHFRCORDY   (1 << 4)

Definition at line 440 of file hg/cmu.h.

◆ CMU_IFS_CALOF

#define CMU_IFS_CALOF   (1 << 6)

Definition at line 438 of file hg/cmu.h.

◆ CMU_IFS_CALRDY

#define CMU_IFS_CALRDY   (1 << 5)

Definition at line 439 of file hg/cmu.h.

◆ CMU_IFS_HFRCORDY

#define CMU_IFS_HFRCORDY   (1 << 0)

Definition at line 444 of file hg/cmu.h.

◆ CMU_IFS_HFXORDY

#define CMU_IFS_HFXORDY   (1 << 1)

Definition at line 443 of file hg/cmu.h.

◆ CMU_IFS_LFRCORDY

#define CMU_IFS_LFRCORDY   (1 << 2)

Definition at line 442 of file hg/cmu.h.

◆ CMU_IFS_LFXORDY

#define CMU_IFS_LFXORDY   (1 << 3)

Definition at line 441 of file hg/cmu.h.

◆ CMU_IFS_USBCHFOSCSEL

#define CMU_IFS_USBCHFOSCSEL   (1 << 9)

Definition at line 435 of file hg/cmu.h.

◆ CMU_IFS_USHFRCORDY

#define CMU_IFS_USHFRCORDY   (1 << 8)

Definition at line 436 of file hg/cmu.h.

◆ CMU_LFACLKEN0

#define CMU_LFACLKEN0   MMIO32(CMU_BASE + 0x058)

Definition at line 56 of file hg/cmu.h.

◆ CMU_LFACLKEN0_RTC

#define CMU_LFACLKEN0_RTC   (1 << 0)

Definition at line 511 of file hg/cmu.h.

◆ CMU_LFAPRESC0

#define CMU_LFAPRESC0   MMIO32(CMU_BASE + 0x068)

Definition at line 59 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC

#define CMU_LFAPRESC0_RTC (   v)     (((v) << CMU_LFAPRESC0_RTC_SHIFT) & CMU_LFAPRESC0_RTC_MASK)

Definition at line 522 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV1

#define CMU_LFAPRESC0_RTC_DIV1   CMU_LFAPRESC0_RTC(0)

Definition at line 524 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV1024

#define CMU_LFAPRESC0_RTC_DIV1024   CMU_LFAPRESC0_RTC(10)

Definition at line 534 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV128

#define CMU_LFAPRESC0_RTC_DIV128   CMU_LFAPRESC0_RTC(7)

Definition at line 531 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV16

#define CMU_LFAPRESC0_RTC_DIV16   CMU_LFAPRESC0_RTC(4)

Definition at line 528 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV16384

#define CMU_LFAPRESC0_RTC_DIV16384   CMU_LFAPRESC0_RTC(14)

Definition at line 538 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV2

#define CMU_LFAPRESC0_RTC_DIV2   CMU_LFAPRESC0_RTC(1)

Definition at line 525 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV2048

#define CMU_LFAPRESC0_RTC_DIV2048   CMU_LFAPRESC0_RTC(11)

Definition at line 535 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV256

#define CMU_LFAPRESC0_RTC_DIV256   CMU_LFAPRESC0_RTC(8)

Definition at line 532 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV32

#define CMU_LFAPRESC0_RTC_DIV32   CMU_LFAPRESC0_RTC(5)

Definition at line 529 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV32768

#define CMU_LFAPRESC0_RTC_DIV32768   CMU_LFAPRESC0_RTC(15)

Definition at line 539 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV4

#define CMU_LFAPRESC0_RTC_DIV4   CMU_LFAPRESC0_RTC(2)

Definition at line 526 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV4096

#define CMU_LFAPRESC0_RTC_DIV4096   CMU_LFAPRESC0_RTC(12)

Definition at line 536 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV512

#define CMU_LFAPRESC0_RTC_DIV512   CMU_LFAPRESC0_RTC(9)

Definition at line 533 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV64

#define CMU_LFAPRESC0_RTC_DIV64   CMU_LFAPRESC0_RTC(6)

Definition at line 530 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV8

#define CMU_LFAPRESC0_RTC_DIV8   CMU_LFAPRESC0_RTC(3)

Definition at line 527 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_DIV8192

#define CMU_LFAPRESC0_RTC_DIV8192   CMU_LFAPRESC0_RTC(13)

Definition at line 537 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_MASK

#define CMU_LFAPRESC0_RTC_MASK   (0xF << CMU_LFAPRESC0_RTC_SHIFT)

Definition at line 521 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_NODIV

#define CMU_LFAPRESC0_RTC_NODIV   CMU_LFAPRESC0_RTC_DIV1

Definition at line 540 of file hg/cmu.h.

◆ CMU_LFAPRESC0_RTC_SHIFT

#define CMU_LFAPRESC0_RTC_SHIFT   (0)

Definition at line 520 of file hg/cmu.h.

◆ CMU_LFBCLKEN0

#define CMU_LFBCLKEN0   MMIO32(CMU_BASE + 0x060)

Definition at line 57 of file hg/cmu.h.

◆ CMU_LFBCLKEN0_LEUART0

#define CMU_LFBCLKEN0_LEUART0   (1 << 0)

Definition at line 514 of file hg/cmu.h.

◆ CMU_LFBPRESC0

#define CMU_LFBPRESC0   MMIO32(CMU_BASE + 0x070)

Definition at line 60 of file hg/cmu.h.

◆ CMU_LFBPRESC0_LEUART0

#define CMU_LFBPRESC0_LEUART0 (   v)     (((v) << CMU_LFBPRESC0_LEUART0_SHIFT) & CMU_LFBPRESC0_LEUART0_MASK)

Definition at line 545 of file hg/cmu.h.

◆ CMU_LFBPRESC0_LEUART0_DIV1

#define CMU_LFBPRESC0_LEUART0_DIV1   CMU_LFBPRESC0_LEUART0(0)

Definition at line 547 of file hg/cmu.h.

◆ CMU_LFBPRESC0_LEUART0_DIV2

#define CMU_LFBPRESC0_LEUART0_DIV2   CMU_LFBPRESC0_LEUART0(1)

Definition at line 548 of file hg/cmu.h.

◆ CMU_LFBPRESC0_LEUART0_DIV4

#define CMU_LFBPRESC0_LEUART0_DIV4   CMU_LFBPRESC0_LEUART0(2)

Definition at line 549 of file hg/cmu.h.

◆ CMU_LFBPRESC0_LEUART0_DIV8

#define CMU_LFBPRESC0_LEUART0_DIV8   CMU_LFBPRESC0_LEUART0(3)

Definition at line 550 of file hg/cmu.h.

◆ CMU_LFBPRESC0_LEUART0_MASK

#define CMU_LFBPRESC0_LEUART0_MASK   (0x3 << CMU_LFBPRESC0_LEUART0_SHIFT)

Definition at line 544 of file hg/cmu.h.

◆ CMU_LFBPRESC0_LEUART0_NODIV

#define CMU_LFBPRESC0_LEUART0_NODIV   CMU_LFBPRESC0_LEUART0_DIV1

Definition at line 551 of file hg/cmu.h.

◆ CMU_LFBPRESC0_LEUART0_SHIFT

#define CMU_LFBPRESC0_LEUART0_SHIFT   (0)

Definition at line 543 of file hg/cmu.h.

◆ CMU_LFCCLKEN0

#define CMU_LFCCLKEN0   MMIO32(CMU_BASE + 0x064)

Definition at line 58 of file hg/cmu.h.

◆ CMU_LFCCLKEN0_USBLE

#define CMU_LFCCLKEN0_USBLE   (1 << 0)

Definition at line 517 of file hg/cmu.h.

◆ CMU_LFCLKSEL

#define CMU_LFCLKSEL   MMIO32(CMU_BASE + 0x028)

Definition at line 46 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFA

#define CMU_LFCLKSEL_LFA (   v)     (((v) << CMU_LFCLKSEL_LFA_SHIFT) & CMU_LFCLKSEL_LFA_MASK)

Definition at line 388 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFA_MASK

#define CMU_LFCLKSEL_LFA_MASK   (0x3 << CMU_LFCLKSEL_LFA_SHIFT)

Definition at line 387 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFA_SHIFT

#define CMU_LFCLKSEL_LFA_SHIFT   (0)

Definition at line 386 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFAE

#define CMU_LFCLKSEL_LFAE   (1 << 16)

Definition at line 370 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFB

#define CMU_LFCLKSEL_LFB (   v)     (((v) << CMU_LFCLKSEL_LFB_SHIFT) & CMU_LFCLKSEL_LFB_MASK)

Definition at line 383 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFB_MASK

#define CMU_LFCLKSEL_LFB_MASK   (0x3 << CMU_LFCLKSEL_LFB_SHIFT)

Definition at line 382 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFB_SHIFT

#define CMU_LFCLKSEL_LFB_SHIFT   (2)

Definition at line 381 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFBE

#define CMU_LFCLKSEL_LFBE   (1 << 20)

Definition at line 368 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFC

#define CMU_LFCLKSEL_LFC (   v)     (((v) << CMU_LFCLKSEL_LFC_SHIFT) & CMU_LFCLKSEL_LFC_MASK)

Definition at line 375 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFC_DISABLED

#define CMU_LFCLKSEL_LFC_DISABLED   CMU_LFCLKSEL_LFC(0)

Definition at line 377 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFC_LFRCO

#define CMU_LFCLKSEL_LFC_LFRCO   CMU_LFCLKSEL_LFC(1)

Definition at line 378 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFC_LFXO

#define CMU_LFCLKSEL_LFC_LFXO   CMU_LFCLKSEL_LFC(2)

Definition at line 379 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFC_MASK

#define CMU_LFCLKSEL_LFC_MASK   (0x3 << CMU_LFCLKSEL_LFC_SHIFT)

Definition at line 374 of file hg/cmu.h.

◆ CMU_LFCLKSEL_LFC_SHIFT

#define CMU_LFCLKSEL_LFC_SHIFT   (4)

Definition at line 373 of file hg/cmu.h.

◆ CMU_LFRCOCTRL

#define CMU_LFRCOCTRL   MMIO32(CMU_BASE + 0x010)

Definition at line 40 of file hg/cmu.h.

◆ CMU_LFRCOCTRL_TUNING

#define CMU_LFRCOCTRL_TUNING (   v)     (((v) << CMU_LFRCOCTRL_TUNING_SHIFT) & CMU_LFRCOCTRL_TUNING_MASK)

Definition at line 277 of file hg/cmu.h.

◆ CMU_LFRCOCTRL_TUNING_MASK

#define CMU_LFRCOCTRL_TUNING_MASK   (0xFF << CMU_LFRCOCTRL_TUNING_SHIFT)

Definition at line 276 of file hg/cmu.h.

◆ CMU_LFRCOCTRL_TUNING_SHIFT

#define CMU_LFRCOCTRL_TUNING_SHIFT   (0)

Definition at line 275 of file hg/cmu.h.

◆ CMU_LOCK

#define CMU_LOCK   MMIO32(CMU_BASE + 0x084)

Definition at line 63 of file hg/cmu.h.

◆ CMU_LOCK_LOCKKEY_LOCK

#define CMU_LOCK_LOCKKEY_LOCK   (0x0000 << CMU_LOCK_LOCKKEY_SHIFT)

Definition at line 575 of file hg/cmu.h.

◆ CMU_LOCK_LOCKKEY_LOCKED

#define CMU_LOCK_LOCKKEY_LOCKED   (0x0001 << CMU_LOCK_LOCKKEY_SHIFT)

Definition at line 574 of file hg/cmu.h.

◆ CMU_LOCK_LOCKKEY_MASK

#define CMU_LOCK_LOCKKEY_MASK   (0xFFFF << CMU_LOCK_LOCKKEY_SHIFT)

Definition at line 572 of file hg/cmu.h.

◆ CMU_LOCK_LOCKKEY_SHIFT

#define CMU_LOCK_LOCKKEY_SHIFT   (0)

Definition at line 571 of file hg/cmu.h.

◆ CMU_LOCK_LOCKKEY_UNLOCK

#define CMU_LOCK_LOCKKEY_UNLOCK   (0x580E << CMU_LOCK_LOCKKEY_SHIFT)

Definition at line 576 of file hg/cmu.h.

◆ CMU_LOCK_LOCKKEY_UNLOCKED

#define CMU_LOCK_LOCKKEY_UNLOCKED   (0x0000 << CMU_LOCK_LOCKKEY_SHIFT)

Definition at line 573 of file hg/cmu.h.

◆ CMU_OSCENCMD

#define CMU_OSCENCMD   MMIO32(CMU_BASE + 0x020)

Definition at line 44 of file hg/cmu.h.

◆ CMU_OSCENCMD_AUXHFRCODIS

#define CMU_OSCENCMD_AUXHFRCODIS   (1 << 5)

Definition at line 337 of file hg/cmu.h.

◆ CMU_OSCENCMD_AUXHFRCOEN

#define CMU_OSCENCMD_AUXHFRCOEN   (1 << 4)

Definition at line 338 of file hg/cmu.h.

◆ CMU_OSCENCMD_HFRCODIS

#define CMU_OSCENCMD_HFRCODIS   (1 << 1)

Definition at line 341 of file hg/cmu.h.

◆ CMU_OSCENCMD_HFRCOEN

#define CMU_OSCENCMD_HFRCOEN   (1 << 0)

Definition at line 342 of file hg/cmu.h.

◆ CMU_OSCENCMD_HFXODIS

#define CMU_OSCENCMD_HFXODIS   (1 << 3)

Definition at line 339 of file hg/cmu.h.

◆ CMU_OSCENCMD_HFXOEN

#define CMU_OSCENCMD_HFXOEN   (1 << 2)

Definition at line 340 of file hg/cmu.h.

◆ CMU_OSCENCMD_LFRCODIS

#define CMU_OSCENCMD_LFRCODIS   (1 << 7)

Definition at line 335 of file hg/cmu.h.

◆ CMU_OSCENCMD_LFRCOEN

#define CMU_OSCENCMD_LFRCOEN   (1 << 6)

Definition at line 336 of file hg/cmu.h.

◆ CMU_OSCENCMD_LFXODIS

#define CMU_OSCENCMD_LFXODIS   (1 << 9)

Definition at line 333 of file hg/cmu.h.

◆ CMU_OSCENCMD_LFXOEN

#define CMU_OSCENCMD_LFXOEN   (1 << 8)

Definition at line 334 of file hg/cmu.h.

◆ CMU_OSCENCMD_USHFRCODIS

#define CMU_OSCENCMD_USHFRCODIS   (1 << 11)

Definition at line 331 of file hg/cmu.h.

◆ CMU_OSCENCMD_USHFRCOEN

#define CMU_OSCENCMD_USHFRCOEN   (1 << 10)

Definition at line 332 of file hg/cmu.h.

◆ CMU_PCNTCTRL

#define CMU_PCNTCTRL   MMIO32(CMU_BASE + 0x078)

Definition at line 61 of file hg/cmu.h.

◆ CMU_PCNTCTRL_PCNT0CLKEN

#define CMU_PCNTCTRL_PCNT0CLKEN   (1 << 0)

Definition at line 555 of file hg/cmu.h.

◆ CMU_PCNTCTRL_PCNT0CLKSEL

#define CMU_PCNTCTRL_PCNT0CLKSEL   (1 << 1)

Definition at line 554 of file hg/cmu.h.

◆ CMU_ROUTE

#define CMU_ROUTE   MMIO32(CMU_BASE + 0x080)

Definition at line 62 of file hg/cmu.h.

◆ CMU_ROUTE_CLKOUT0PEN

#define CMU_ROUTE_CLKOUT0PEN   (1 << 0)

Definition at line 568 of file hg/cmu.h.

◆ CMU_ROUTE_CLKOUT1PEN

#define CMU_ROUTE_CLKOUT1PEN   (1 << 1)

Definition at line 567 of file hg/cmu.h.

◆ CMU_ROUTE_LOCATION_LOC0

#define CMU_ROUTE_LOCATION_LOC0   CMU_ROUTE_LOCATION_LOCx(0)

Definition at line 562 of file hg/cmu.h.

◆ CMU_ROUTE_LOCATION_LOC1

#define CMU_ROUTE_LOCATION_LOC1   CMU_ROUTE_LOCATION_LOCx(1)

Definition at line 563 of file hg/cmu.h.

◆ CMU_ROUTE_LOCATION_LOC2

#define CMU_ROUTE_LOCATION_LOC2   CMU_ROUTE_LOCATION_LOCx(2)

Definition at line 564 of file hg/cmu.h.

◆ CMU_ROUTE_LOCATION_LOC3

#define CMU_ROUTE_LOCATION_LOC3   CMU_ROUTE_LOCATION_LOCx(3)

Definition at line 565 of file hg/cmu.h.

◆ CMU_ROUTE_LOCATION_LOCx

#define CMU_ROUTE_LOCATION_LOCx (   i)     (((i) << CMU_ROUTE_LOCATION_SHIFT) & CMU_ROUTE_LOCATION_MASK)

Definition at line 560 of file hg/cmu.h.

◆ CMU_ROUTE_LOCATION_MASK

#define CMU_ROUTE_LOCATION_MASK   (0x7 << CMU_ROUTE_LOCATION_SHIFT)

Definition at line 559 of file hg/cmu.h.

◆ CMU_ROUTE_LOCATION_SHIFT

#define CMU_ROUTE_LOCATION_SHIFT   (2)

Definition at line 558 of file hg/cmu.h.

◆ CMU_STATUS

#define CMU_STATUS   MMIO32(CMU_BASE + 0x02C)

Definition at line 47 of file hg/cmu.h.

◆ CMU_STATUS_AUXHFRCOENS

#define CMU_STATUS_AUXHFRCOENS   (1 << 4)

Definition at line 414 of file hg/cmu.h.

◆ CMU_STATUS_AUXHFRCORDY

#define CMU_STATUS_AUXHFRCORDY   (1 << 5)

Definition at line 413 of file hg/cmu.h.

◆ CMU_STATUS_CALBSY

#define CMU_STATUS_CALBSY   (1 << 14)

Definition at line 404 of file hg/cmu.h.

◆ CMU_STATUS_HFRCOENS

#define CMU_STATUS_HFRCOENS   (1 << 0)

Definition at line 418 of file hg/cmu.h.

◆ CMU_STATUS_HFRCORDY

#define CMU_STATUS_HFRCORDY   (1 << 1)

Definition at line 417 of file hg/cmu.h.

◆ CMU_STATUS_HFRCOSEL

#define CMU_STATUS_HFRCOSEL   (1 << 10)

Definition at line 408 of file hg/cmu.h.

◆ CMU_STATUS_HFXOENS

#define CMU_STATUS_HFXOENS   (1 << 2)

Definition at line 416 of file hg/cmu.h.

◆ CMU_STATUS_HFXORDY

#define CMU_STATUS_HFXORDY   (1 << 3)

Definition at line 415 of file hg/cmu.h.

◆ CMU_STATUS_HFXOSEL

#define CMU_STATUS_HFXOSEL   (1 << 11)

Definition at line 407 of file hg/cmu.h.

◆ CMU_STATUS_LFRCOENS

#define CMU_STATUS_LFRCOENS   (1 << 6)

Definition at line 412 of file hg/cmu.h.

◆ CMU_STATUS_LFRCORDY

#define CMU_STATUS_LFRCORDY   (1 << 7)

Definition at line 411 of file hg/cmu.h.

◆ CMU_STATUS_LFRCOSEL

#define CMU_STATUS_LFRCOSEL   (1 << 12)

Definition at line 406 of file hg/cmu.h.

◆ CMU_STATUS_LFXOENS

#define CMU_STATUS_LFXOENS   (1 << 8)

Definition at line 410 of file hg/cmu.h.

◆ CMU_STATUS_LFXORDY

#define CMU_STATUS_LFXORDY   (1 << 9)

Definition at line 409 of file hg/cmu.h.

◆ CMU_STATUS_LFXOSEL

#define CMU_STATUS_LFXOSEL   (1 << 13)

Definition at line 405 of file hg/cmu.h.

◆ CMU_STATUS_USBCHFCLKSYNC

#define CMU_STATUS_USBCHFCLKSYNC   (1 << 20)

Definition at line 398 of file hg/cmu.h.

◆ CMU_STATUS_USBCLFRCOSEL

#define CMU_STATUS_USBCLFRCOSEL   (1 << 17)

Definition at line 401 of file hg/cmu.h.

◆ CMU_STATUS_USBCLFXOSEL

#define CMU_STATUS_USBCLFXOSEL   (1 << 16)

Definition at line 402 of file hg/cmu.h.

◆ CMU_STATUS_USBCUSHFRCOSEL

#define CMU_STATUS_USBCUSHFRCOSEL   (1 << 18)

Definition at line 400 of file hg/cmu.h.

◆ CMU_STATUS_USHFRCODIV2SEL

#define CMU_STATUS_USHFRCODIV2SEL   (1 << 26)

Definition at line 393 of file hg/cmu.h.

◆ CMU_STATUS_USHFRCOENS

#define CMU_STATUS_USHFRCOENS   (1 << 21)

Definition at line 397 of file hg/cmu.h.

◆ CMU_STATUS_USHFRCORDY

#define CMU_STATUS_USHFRCORDY   (1 << 22)

Definition at line 396 of file hg/cmu.h.

◆ CMU_STATUS_USHFRCOSUSPEND

#define CMU_STATUS_USHFRCOSUSPEND   (1 << 23)

Definition at line 395 of file hg/cmu.h.

◆ CMU_SYNCBUSY

#define CMU_SYNCBUSY   MMIO32(CMU_BASE + 0x050)

Definition at line 54 of file hg/cmu.h.

◆ CMU_SYNCBUSY_LFACLKEN0

#define CMU_SYNCBUSY_LFACLKEN0   (1 << 0)

Definition at line 505 of file hg/cmu.h.

◆ CMU_SYNCBUSY_LFAPRESC0

#define CMU_SYNCBUSY_LFAPRESC0   (1 << 2)

Definition at line 503 of file hg/cmu.h.

◆ CMU_SYNCBUSY_LFBCLKEN0

#define CMU_SYNCBUSY_LFBCLKEN0   (1 << 4)

Definition at line 501 of file hg/cmu.h.

◆ CMU_SYNCBUSY_LFBPRESC0

#define CMU_SYNCBUSY_LFBPRESC0   (1 << 6)

Definition at line 499 of file hg/cmu.h.

◆ CMU_SYNCBUSY_LFCCLKEN0

#define CMU_SYNCBUSY_LFCCLKEN0   (1 << 8)

Definition at line 497 of file hg/cmu.h.

◆ CMU_USBCRCTRL

#define CMU_USBCRCTRL   MMIO32(CMU_BASE + 0x0D0)

Definition at line 64 of file hg/cmu.h.

◆ CMU_USBCRCTRL_EN

#define CMU_USBCRCTRL_EN   (1 << 0)

Definition at line 580 of file hg/cmu.h.

◆ CMU_USBCRCTRL_LSMODE

#define CMU_USBCRCTRL_LSMODE   (1 << 1)

Definition at line 579 of file hg/cmu.h.

◆ CMU_USHFRCOCONF

#define CMU_USHFRCOCONF   MMIO32(CMU_BASE + 0x0DC)

Definition at line 67 of file hg/cmu.h.

◆ CMU_USHFRCOCONF_BAND_24MHZ

#define CMU_USHFRCOCONF_BAND_24MHZ   (0x3 << 0)

Definition at line 601 of file hg/cmu.h.

◆ CMU_USHFRCOCONF_BAND_48MHZ

#define CMU_USHFRCOCONF_BAND_48MHZ   (0x1 << 0)

Definition at line 600 of file hg/cmu.h.

◆ CMU_USHFRCOCONF_BAND_MASK

#define CMU_USHFRCOCONF_BAND_MASK   (0x7 << 0)

Definition at line 599 of file hg/cmu.h.

◆ CMU_USHFRCOCTRL

#define CMU_USHFRCOCTRL   MMIO32(CMU_BASE + 0x0D4)

Definition at line 65 of file hg/cmu.h.

◆ CMU_USHFRCOCTRL_DITHEN

#define CMU_USHFRCOCTRL_DITHEN   (1 << 8)

Definition at line 587 of file hg/cmu.h.

◆ CMU_USHFRCOCTRL_SUSPEND

#define CMU_USHFRCOCTRL_SUSPEND   (1 << 9)

Definition at line 586 of file hg/cmu.h.

◆ CMU_USHFRCOCTRL_TIMEOUT_MASK

#define CMU_USHFRCOCTRL_TIMEOUT_MASK   (0xff << 12)

Definition at line 584 of file hg/cmu.h.

◆ CMU_USHFRCOCTRL_TUNING_MASK

#define CMU_USHFRCOCTRL_TUNING_MASK   (0x7f << 0)

Definition at line 589 of file hg/cmu.h.

◆ CMU_USHFRCOTUNE

#define CMU_USHFRCOTUNE   MMIO32(CMU_BASE + 0x0D8)

Definition at line 66 of file hg/cmu.h.

◆ CMU_USHFRCOTUNE_FINETUNING_MASK

#define CMU_USHFRCOTUNE_FINETUNING_MASK   (0x3f << 0)

Definition at line 593 of file hg/cmu.h.

◆ CMU_USHFRCOTUNE_USHFRCODIV2DIS

#define CMU_USHFRCOTUNE_USHFRCODIV2DIS   (1 << 4)

Definition at line 597 of file hg/cmu.h.

Enumeration Type Documentation

◆ cmu_osc

enum cmu_osc
Enumerator
HFRCO 

Internal, 1 - 28Mhz.

LFRCO 

Internal, 32.768kHz.

HFXO 

External, 4-48Mhz.

LFXO 

External, 32.768kHz.

AUXHFRCO 

Internal, 1-28Mhz.

USHFRCO 

Internal, 48MHz.

USHFRCODIV2 

Internal, 24MHz.

Definition at line 639 of file hg/cmu.h.

◆ cmu_periph_clken

Enumerator
CMU_PCNT0 
CMU_USBLE 
CMU_LEUART0 
CMU_RTC 
CMU_I2C0 
CMU_ADC0 
CMU_VCMP 
CMU_GPIO 
CMU_IDAC0 
CMU_PRS 
CMU_ACMP0 
CMU_USART1 
CMU_USART0 
CMU_TIMER2 
CMU_TIMER1 
CMU_TIMER0 
CMU_USB 
CMU_USBC 
CMU_LE 
CMU_DMA 

Definition at line 605 of file hg/cmu.h.

Function Documentation

◆ cmu_disable_lock()

void cmu_disable_lock ( void  )

Disable CMU registers lock.

Definition at line 39 of file cmu.c.

References CMU_LOCK, and CMU_LOCK_LOCKKEY_UNLOCK.

◆ cmu_enable_lock()

void cmu_enable_lock ( void  )

Enable CMU registers lock.

Definition at line 31 of file cmu.c.

References CMU_LOCK, and CMU_LOCK_LOCKKEY_LOCK.

◆ cmu_get_hfclk_source()

enum cmu_osc cmu_get_hfclk_source ( void  )

Get HFCLK clock source.

Return values
enumcmu_osc Oscillator name

Definition at line 251 of file cmu.c.

References CMU_STATUS, CMU_STATUS_HFRCOSEL, CMU_STATUS_HFXOSEL, CMU_STATUS_LFRCOSEL, CMU_STATUS_LFXOSEL, CMU_STATUS_USHFRCODIV2SEL, HFRCO, HFXO, LFRCO, LFXO, and USHFRCODIV2.

◆ cmu_get_lock_flag()

bool cmu_get_lock_flag ( void  )

Get CMU register lock flag.

Return values
trueif flag is set
falseif flag is not set

Definition at line 49 of file cmu.c.

References CMU_LOCK, CMU_LOCK_LOCKKEY_LOCKED, and CMU_LOCK_LOCKKEY_MASK.

◆ cmu_osc_off()

void cmu_osc_off ( enum cmu_osc  osc)

Turn off Oscillator.

Parameters
[in]oscenum cmu_osc Oscillator name

Definition at line 123 of file cmu.c.

References AUXHFRCO, CMU_OSCENCMD, CMU_OSCENCMD_AUXHFRCODIS, CMU_OSCENCMD_HFRCODIS, CMU_OSCENCMD_HFXODIS, CMU_OSCENCMD_LFRCODIS, CMU_OSCENCMD_LFXODIS, CMU_OSCENCMD_USHFRCODIS, HFRCO, HFXO, LFRCO, LFXO, and USHFRCO.

◆ cmu_osc_on()

void cmu_osc_on ( enum cmu_osc  osc)

Turn on Oscillator.

Parameters
[in]oscenum cmu_osc Oscillator name

Definition at line 92 of file cmu.c.

References AUXHFRCO, CMU_OSCENCMD, CMU_OSCENCMD_AUXHFRCOEN, CMU_OSCENCMD_HFRCOEN, CMU_OSCENCMD_HFXOEN, CMU_OSCENCMD_LFRCOEN, CMU_OSCENCMD_LFXOEN, CMU_OSCENCMD_USHFRCOEN, HFRCO, HFXO, LFRCO, LFXO, and USHFRCO.

Referenced by efm32hg_usbd_init().

Here is the caller graph for this function:

◆ cmu_osc_ready_flag()

bool cmu_osc_ready_flag ( enum cmu_osc  osc)

Get Oscillator read flag.

Parameters
[in]oscenum cmu_osc Oscillator name
Return values
trueif flag is set
falseif flag is not set

Definition at line 156 of file cmu.c.

References AUXHFRCO, CMU_STATUS, CMU_STATUS_AUXHFRCORDY, CMU_STATUS_HFRCORDY, CMU_STATUS_HFXORDY, CMU_STATUS_LFRCORDY, CMU_STATUS_LFXORDY, CMU_STATUS_USHFRCORDY, HFRCO, HFXO, LFRCO, LFXO, and USHFRCO.

◆ cmu_periph_clock_disable()

void cmu_periph_clock_disable ( enum cmu_periph_clken  clken)

Disable Peripheral Clock in running mode.

Disable the clock on particular peripheral.

Parameters
[in]clkenPeripheral Name

For available constants, see enum::cmu_periph_clken (CMU_LEUART1 for example)

Definition at line 83 of file cmu.c.

References _CMU_REG.

◆ cmu_periph_clock_enable()

void cmu_periph_clock_enable ( enum cmu_periph_clken  clken)

Enable Peripheral Clock in running mode.

Enable the clock on particular peripheral.

Parameters
[in]clkenPeripheral Name

For available constants, see enum::cmu_periph_clken (CMU_LEUART1 for example)

Definition at line 68 of file cmu.c.

References _CMU_BIT, and _CMU_REG.

Referenced by efm32hg_usbd_init().

Here is the caller graph for this function:

◆ cmu_set_hfclk_source()

void cmu_set_hfclk_source ( enum cmu_osc  osc)

Set HFCLK clock source.

Parameters
[in]oscenum cmu_osc Oscillator name
Note
calling cmu_set_hfclk_source() do not set source immediately, use cmu_get_hfclk_source() to verify that the source has been set.
See also
cmu_get_hfclk_source()

Definition at line 223 of file cmu.c.

References CMU_CMD, CMU_CMD_HFCLKSEL_HFRCO, CMU_CMD_HFCLKSEL_HFXO, CMU_CMD_HFCLKSEL_LFRCO, CMU_CMD_HFCLKSEL_LFXO, CMU_CMD_HFCLKSEL_USHFRCODIV2, HFRCO, HFXO, LFRCO, LFXO, and USHFRCODIV2.

◆ cmu_set_usbclk_source()

void cmu_set_usbclk_source ( enum cmu_osc  osc)

Set USBCLK clock source.

Parameters
oscOscillator name

Definition at line 274 of file cmu.c.

References CMU_CMD, CMU_CMD_USBCCLKSEL_LFRCO, CMU_CMD_USBCCLKSEL_LFXO, CMU_CMD_USBCCLKSEL_USHFRCO, LFRCO, LFXO, and USHFRCO.

Referenced by efm32hg_usbd_init().

Here is the caller graph for this function:

◆ cmu_wait_for_osc_ready()

void cmu_wait_for_osc_ready ( enum cmu_osc  osc)

Wait while oscillator is not ready.

Parameters
[in]oscenum cmu_osc Oscillator name

Definition at line 189 of file cmu.c.

References AUXHFRCO, CMU_STATUS, CMU_STATUS_AUXHFRCORDY, CMU_STATUS_HFRCORDY, CMU_STATUS_HFXORDY, CMU_STATUS_LFRCORDY, CMU_STATUS_LFXORDY, CMU_STATUS_USHFRCORDY, HFRCO, HFXO, LFRCO, LFXO, and USHFRCO.

Referenced by efm32hg_usbd_init().

Here is the caller graph for this function:

◆ cmu_wait_for_usbclk_selected()

void cmu_wait_for_usbclk_selected ( enum cmu_osc  osc)

Wait while USBCLK is not selected.

Parameters
[in]oscenum cmu_osc Oscillator name

Definition at line 296 of file cmu.c.

References CMU_STATUS, CMU_STATUS_USBCLFRCOSEL, CMU_STATUS_USBCLFXOSEL, CMU_STATUS_USBCUSHFRCOSEL, LFRCO, LFXO, and USHFRCO.

Referenced by efm32hg_usbd_init().

Here is the caller graph for this function: