| MINI55_BSP V3.02.004 The Board Support Package for Mini55 Series MCU

Modules | Macros
CLK Exported Constants
MINI55 Device Driver » CLK Driver
Collaboration diagram for CLK Exported Constants:

## Modules
| CLK Exported Functions

## Macros
#define | CLK_PWRCTL_XTL12M 0x01UL
#define | CLK_PWRCTL_HXT 0x01UL
#define | CLK_PWRCTL_XTL32K 0x02UL
#define | CLK_PWRCTL_LXT 0x02UL
#define | CLK_CLKSEL0_HCLKSEL_XTAL 0x00UL
#define | CLK_CLKSEL0_HCLKSEL_LIRC 0x03UL
#define | CLK_CLKSEL0_HCLKSEL_HIRC 0x07UL
#define | CLK_CLKSEL0_STCLKSEL_XTAL 0x00UL
#define | CLK_CLKSEL0_STCLKSEL_XTAL_DIV2 0x10UL
#define | CLK_CLKSEL0_STCLKSEL_HCLK_DIV2 0x18UL
#define | CLK_CLKSEL0_STCLKSEL_HIRC_DIV2 0x38UL
#define | CLK_CLKSEL0_STCLKSEL_HCLK (0x01UL<<SysTick_CTRL_CLKSOURCE_Pos)
#define | CLK_CLKSEL1_WDTSEL_XTAL 0x00000000UL
#define | CLK_CLKSEL1_WDTSEL_HCLK_DIV2048 0x00000002UL
#define | CLK_CLKSEL1_WDTSEL_IRC10K 0x00000003UL
#define | CLK_CLKSEL1_WDTSEL_LIRC 0x00000003UL
#define | CLK_CLKSEL1_ADCSEL_XTAL 0x00000000UL
#define | CLK_CLKSEL1_ADCSEL_HCLK 0x00000008UL
#define | CLK_CLKSEL1_ADCSEL_HIRC 0x0000000CUL
#define | CLK_CLKSEL1_SPISEL_HXTorLXT 0x00000000UL
#define | CLK_CLKSEL1_SPISEL_HCLK 0x00000010UL
#define | CLK_CLKSEL1_TMR0SEL_XTAL 0x00000000UL
#define | CLK_CLKSEL1_TMR0SEL_LIRC 0x00000100UL
#define | CLK_CLKSEL1_TMR0SEL_HCLK 0x00000200UL
#define | CLK_CLKSEL1_TMR0SEL_HIRC 0x00000700UL
#define | CLK_CLKSEL1_TMR1SEL_XTAL 0x00000000UL
#define | CLK_CLKSEL1_TMR1SEL_LIRC 0x00001000UL
#define | CLK_CLKSEL1_TMR1SEL_HCLK 0x00002000UL
#define | CLK_CLKSEL1_TMR1SEL_HIRC 0x00007000UL
#define | CLK_CLKSEL1_UART0SEL_XTAL 0x00000000UL
#define | CLK_CLKSEL1_UART0SEL_HIRC 0x02000000UL
#define | CLK_CLKSEL1_UART1SEL_XTAL 0x00000000UL
#define | CLK_CLKSEL1_UART1SEL_HIRC 0x08000000UL
#define | CLK_CLKSEL1_PWMCH01SEL_HCLK 0x20000000UL
#define | CLK_CLKSEL1_PWMCH23SEL_HCLK 0x80000000UL
#define | CLK_CLKSEL2_FDIVSEL_XTAL 0x00000000UL
#define | CLK_CLKSEL2_FDIVSEL_HXT 0x00000000UL
#define | CLK_CLKSEL2_FDIVSEL_LXT 0x00000000UL
#define | CLK_CLKSEL2_FDIVSEL_HCLK 0x00000008UL
#define | CLK_CLKSEL2_FDIVSEL_HIRC 0x0000000CUL
#define | CLK_CLKSEL2_PWMCH45SEL_HCLK 0x00000020UL
#define | CLK_CLKDIV_ADC(x) (((x)-1) << 16)
#define | CLK_CLKDIV_UART(x) (((x)-1) << 8)
#define | CLK_CLKDIV_UART0(x) (((x)-1) << 8)
#define | CLK_CLKDIV_UART1(x) (((x)-1) << 12)
#define | CLK_CLKDIV_HCLK(x) ((x)-1)
#define | MODULE_APBCLK(x) ((x >>31) & 0x1)
#define | MODULE_CLKSEL(x) ((x >>29) & 0x3)
#define | MODULE_CLKSEL_Msk(x) ((x >>25) & 0xf)
#define | MODULE_CLKSEL_Pos(x) ((x >>20) & 0x1f)
#define | MODULE_CLKDIV(x) ((x >>18) & 0x3)
#define | MODULE_CLKDIV_Msk(x) ((x >>10) & 0xff)
#define | MODULE_CLKDIV_Pos(x) ((x >>5 ) & 0x1f)
#define | MODULE_IP_EN_Pos(x) ((x >>0 ) & 0x1f)
#define | MODULE_NoMsk 0x0
#define | NA MODULE_NoMsk
#define | MODULE_APBCLK_ENC(x) (((x) & 0x01) << 31)
#define | MODULE_CLKSEL_ENC(x) (((x) & 0x03) << 29)
#define | MODULE_CLKSEL_Msk_ENC(x) (((x) & 0x0f) << 25)
#define | MODULE_CLKSEL_Pos_ENC(x) (((x) & 0x1f) << 20)
#define | MODULE_CLKDIV_ENC(x) (((x) & 0x03) << 18)
#define | MODULE_CLKDIV_Msk_ENC(x) (((x) & 0xff) << 10)
#define | MODULE_CLKDIV_Pos_ENC(x) (((x) & 0x1f) << 5)
#define | MODULE_IP_EN_Pos_ENC(x) (((x) & 0x1f) << 0)
#define | WDT_MODULE ((0x0<<31)|(0x1<<29)|(0x3<<25)|( 0<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_WDTCKEN_Pos )
#define | TMR0_MODULE ((0x0<<31)|(0x1<<29)|(0x7<<25)|( 8<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_TMR0CKEN_Pos)
#define | TMR1_MODULE ((0x0<<31)|(0x1<<29)|(0x7<<25)|(12<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_TMR1CKEN_Pos)
#define | FDIV_MODULE ((0x0<<31)|(0x3<<29)|(0x3<<25)|( 2<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_CLKOCKEN_Pos)
#define | I2C_MODULE ((0x0<<31)|(0x3<<29)|(MODULE_NoMsk<<25)|(31<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_I2CCKEN_Pos)
#define | SPI_MODULE ((0x0<<31)|(0x1<<29)|(0x1<<25)|( 4<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_SPICKEN_Pos)
#define | UART0_MODULE ((0x0<<31)|(0x1<<29)|(0x3<<25)|(24<<20)|(0x0<<18)|(0x0F<<10)|( 8<<5)|CLK_APBCLK_UART0CKEN_Pos)
#define | UART1_MODULE ((0x0<<31)|(0x1<<29)|(0x3<<25)|(26<<20)|(0x0<<18)|(0x0F<<10)|(12<<5)|CLK_APBCLK_UART1CKEN_Pos)
#define | PWM01_MODULE ((0x0<<31)|(0x1<<29)|(0x3<<25)|(28<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_PWMCH01CKEN_Pos)
#define | PWM23_MODULE ((0x0<<31)|(0x1<<29)|(0x3<<25)|(30<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_PWMCH23CKEN_Pos)
#define | PWM45_MODULE ((0x0<<31)|(0x3<<29)|(0x3<<25)|( 4<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_PWMCH45CKEN_Pos)
#define | ADC_MODULE ((0x0<<31)|(0x1<<29)|(0x3<<25)|( 2<<20)|(0x0<<18)|(0xFF<<10)|(16<<5)|CLK_APBCLK_ADCCKEN_Pos)
#define | ACMP_MODULE ((0x0<<31)|(0x3<<29)|(MODULE_NoMsk<<25)|(31<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_ACMPCKEN_Pos)

## Detailed Description

## Macro Definition Documentation

## ◆ ACMP_MODULE

#define ACMP_MODULE ((0x0<<31)|(0x3<<29)|(MODULE_NoMsk<<25)|(31<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_ACMPCKEN_Pos)

ACMP Module

Definition at line 140 of file clk.h.

## ◆ ADC_MODULE

#define ADC_MODULE ((0x0<<31)|(0x1<<29)|(0x3<<25)|( 2<<20)|(0x0<<18)|(0xFF<<10)|(16<<5)|CLK_APBCLK_ADCCKEN_Pos)

ADC Module

Definition at line 139 of file clk.h.

## ◆ CLK_CLKDIV_ADC

#define CLK_CLKDIV_ADC | ( |  | x | ) | (((x)-1) << 16)

CLKDIV Setting for ADC clock divider. It could be 1~256

Definition at line 97 of file clk.h.

## ◆ CLK_CLKDIV_HCLK

#define CLK_CLKDIV_HCLK | ( |  | x | ) | ((x)-1)

CLKDIV Setting for HCLK clock divider. It could be 1~16

Definition at line 101 of file clk.h.

## ◆ CLK_CLKDIV_UART

#define CLK_CLKDIV_UART | ( |  | x | ) | (((x)-1) << 8)

CLKDIV Setting for UART0 clock divider. It could be 1~16

Definition at line 98 of file clk.h.

## ◆ CLK_CLKDIV_UART0

#define CLK_CLKDIV_UART0 | ( |  | x | ) | (((x)-1) << 8)

CLKDIV Setting for UART0 clock divider. It could be 1~16

Definition at line 99 of file clk.h.

## ◆ CLK_CLKDIV_UART1

#define CLK_CLKDIV_UART1 | ( |  | x | ) | (((x)-1) << 12)

CLKDIV Setting for UART1 clock divider. It could be 1~16

Definition at line 100 of file clk.h.

## ◆ CLK_CLKSEL0_HCLKSEL_HIRC

#define CLK_CLKSEL0_HCLKSEL_HIRC 0x07UL

Setting clock source as internal RC clock

Definition at line 48 of file clk.h.

## ◆ CLK_CLKSEL0_HCLKSEL_LIRC

#define CLK_CLKSEL0_HCLKSEL_LIRC 0x03UL

Setting clock source as internal 10KHz RC clock

Definition at line 47 of file clk.h.

## ◆ CLK_CLKSEL0_HCLKSEL_XTAL

#define CLK_CLKSEL0_HCLKSEL_XTAL 0x00UL

Setting clock source as external XTAL

Definition at line 46 of file clk.h.

## ◆ CLK_CLKSEL0_STCLKSEL_HCLK

#define CLK_CLKSEL0_STCLKSEL_HCLK (0x01UL<<SysTick_CTRL_CLKSOURCE_Pos)

Setting clock source as HCLK

Definition at line 53 of file clk.h.

## ◆ CLK_CLKSEL0_STCLKSEL_HCLK_DIV2

#define CLK_CLKSEL0_STCLKSEL_HCLK_DIV2 0x18UL

Setting clock source as HCLK/2

Definition at line 51 of file clk.h.

## ◆ CLK_CLKSEL0_STCLKSEL_HIRC_DIV2

#define CLK_CLKSEL0_STCLKSEL_HIRC_DIV2 0x38UL

Setting clock source as internal RC clock/2

Definition at line 52 of file clk.h.

## ◆ CLK_CLKSEL0_STCLKSEL_XTAL

#define CLK_CLKSEL0_STCLKSEL_XTAL 0x00UL

Setting clock source as HXT or LXT

Definition at line 49 of file clk.h.

## ◆ CLK_CLKSEL0_STCLKSEL_XTAL_DIV2

#define CLK_CLKSEL0_STCLKSEL_XTAL_DIV2 0x10UL

Setting clock source as external XTAL/2

Definition at line 50 of file clk.h.

## ◆ CLK_CLKSEL1_ADCSEL_HCLK

#define CLK_CLKSEL1_ADCSEL_HCLK 0x00000008UL

Setting ADC clock source as HCLK

Definition at line 63 of file clk.h.

## ◆ CLK_CLKSEL1_ADCSEL_HIRC

#define CLK_CLKSEL1_ADCSEL_HIRC 0x0000000CUL

Setting ADC clock source as internal RC clock

Definition at line 64 of file clk.h.

## ◆ CLK_CLKSEL1_ADCSEL_XTAL

#define CLK_CLKSEL1_ADCSEL_XTAL 0x00000000UL

Setting ADC clock source as external XTAL

Definition at line 62 of file clk.h.

## ◆ CLK_CLKSEL1_PWMCH01SEL_HCLK

#define CLK_CLKSEL1_PWMCH01SEL_HCLK 0x20000000UL

Setting PWM01 clock source as external HCLK

Definition at line 79 of file clk.h.

## ◆ CLK_CLKSEL1_PWMCH23SEL_HCLK

#define CLK_CLKSEL1_PWMCH23SEL_HCLK 0x80000000UL

Setting PWM23 clock source as external HCLK

Definition at line 80 of file clk.h.

## ◆ CLK_CLKSEL1_SPISEL_HCLK

#define CLK_CLKSEL1_SPISEL_HCLK 0x00000010UL

Setting SPI clock source as HCLK

Definition at line 66 of file clk.h.

## ◆ CLK_CLKSEL1_SPISEL_HXTorLXT

#define CLK_CLKSEL1_SPISEL_HXTorLXT 0x00000000UL

Setting SPI clock source as HXT or LXT

Definition at line 65 of file clk.h.

## ◆ CLK_CLKSEL1_TMR0SEL_HCLK

#define CLK_CLKSEL1_TMR0SEL_HCLK 0x00000200UL

Setting Timer 0 clock source as HCLK

Definition at line 69 of file clk.h.

## ◆ CLK_CLKSEL1_TMR0SEL_HIRC

#define CLK_CLKSEL1_TMR0SEL_HIRC 0x00000700UL

Setting Timer 0 clock source as internal RC clock

Definition at line 70 of file clk.h.

## ◆ CLK_CLKSEL1_TMR0SEL_LIRC

#define CLK_CLKSEL1_TMR0SEL_LIRC 0x00000100UL

Setting Timer 0 clock source as internal 10KHz RC clock

Definition at line 68 of file clk.h.

## ◆ CLK_CLKSEL1_TMR0SEL_XTAL

#define CLK_CLKSEL1_TMR0SEL_XTAL 0x00000000UL

Setting Timer 0 clock source as external XTAL

Definition at line 67 of file clk.h.

## ◆ CLK_CLKSEL1_TMR1SEL_HCLK

#define CLK_CLKSEL1_TMR1SEL_HCLK 0x00002000UL

Setting Timer 1 clock source as HCLK

Definition at line 73 of file clk.h.

## ◆ CLK_CLKSEL1_TMR1SEL_HIRC

#define CLK_CLKSEL1_TMR1SEL_HIRC 0x00007000UL

Setting Timer 1 clock source as internal RC clock

Definition at line 74 of file clk.h.

## ◆ CLK_CLKSEL1_TMR1SEL_LIRC

#define CLK_CLKSEL1_TMR1SEL_LIRC 0x00001000UL

Setting Timer 1 clock source as internal 10KHz RC clock

Definition at line 72 of file clk.h.

## ◆ CLK_CLKSEL1_TMR1SEL_XTAL

#define CLK_CLKSEL1_TMR1SEL_XTAL 0x00000000UL

Setting Timer 1 clock source as external XTAL

Definition at line 71 of file clk.h.

## ◆ CLK_CLKSEL1_UART0SEL_HIRC

#define CLK_CLKSEL1_UART0SEL_HIRC 0x02000000UL

Setting UART0 clock source as external internal RC clock

Definition at line 76 of file clk.h.

## ◆ CLK_CLKSEL1_UART0SEL_XTAL

#define CLK_CLKSEL1_UART0SEL_XTAL 0x00000000UL

Setting UART0 clock source as external XTAL

Definition at line 75 of file clk.h.

## ◆ CLK_CLKSEL1_UART1SEL_HIRC

#define CLK_CLKSEL1_UART1SEL_HIRC 0x08000000UL

Setting UART1 clock source as external internal RC clock

Definition at line 78 of file clk.h.

## ◆ CLK_CLKSEL1_UART1SEL_XTAL

#define CLK_CLKSEL1_UART1SEL_XTAL 0x00000000UL

Setting UART1 clock source as external XTAL

Definition at line 77 of file clk.h.

## ◆ CLK_CLKSEL1_WDTSEL_HCLK_DIV2048

#define CLK_CLKSEL1_WDTSEL_HCLK_DIV2048 0x00000002UL

Setting WDT clock source as HCLK/2048

Definition at line 59 of file clk.h.

## ◆ CLK_CLKSEL1_WDTSEL_IRC10K

#define CLK_CLKSEL1_WDTSEL_IRC10K 0x00000003UL

Setting WDT clock source as internal 10KHz RC clock

Definition at line 60 of file clk.h.

## ◆ CLK_CLKSEL1_WDTSEL_LIRC

#define CLK_CLKSEL1_WDTSEL_LIRC 0x00000003UL

Setting WDT clock source as internal 10KHz RC clock

Definition at line 61 of file clk.h.

## ◆ CLK_CLKSEL1_WDTSEL_XTAL

#define CLK_CLKSEL1_WDTSEL_XTAL 0x00000000UL

Setting WDT clock source as external XTAL

Definition at line 58 of file clk.h.

## ◆ CLK_CLKSEL2_FDIVSEL_HCLK

#define CLK_CLKSEL2_FDIVSEL_HCLK 0x00000008UL

Setting FRQDIV clock source as HCLK

Definition at line 89 of file clk.h.

## ◆ CLK_CLKSEL2_FDIVSEL_HIRC

#define CLK_CLKSEL2_FDIVSEL_HIRC 0x0000000CUL

Setting FRQDIV clock source as internal RC clock

Definition at line 90 of file clk.h.

## ◆ CLK_CLKSEL2_FDIVSEL_HXT

#define CLK_CLKSEL2_FDIVSEL_HXT 0x00000000UL

Setting FRQDIV clock source as external XTAL

Definition at line 87 of file clk.h.

## ◆ CLK_CLKSEL2_FDIVSEL_LXT

#define CLK_CLKSEL2_FDIVSEL_LXT 0x00000000UL

Setting FRQDIV clock source as external XTAL

Definition at line 88 of file clk.h.

## ◆ CLK_CLKSEL2_FDIVSEL_XTAL

#define CLK_CLKSEL2_FDIVSEL_XTAL 0x00000000UL

Setting FRQDIV clock source as external XTAL

Definition at line 86 of file clk.h.

## ◆ CLK_CLKSEL2_PWMCH45SEL_HCLK

#define CLK_CLKSEL2_PWMCH45SEL_HCLK 0x00000020UL

Setting PWM45 clock source as HCLK

Definition at line 91 of file clk.h.

## ◆ CLK_PWRCTL_HXT

#define CLK_PWRCTL_HXT 0x01UL

Setting External Crystal Oscillator as 12MHz

Definition at line 39 of file clk.h.

## ◆ CLK_PWRCTL_LXT

#define CLK_PWRCTL_LXT 0x02UL

Setting External Crystal Oscillator as 32KHz

Definition at line 41 of file clk.h.

## ◆ CLK_PWRCTL_XTL12M

#define CLK_PWRCTL_XTL12M 0x01UL

Setting External Crystal Oscillator as 12MHz

Definition at line 38 of file clk.h.

## ◆ CLK_PWRCTL_XTL32K

#define CLK_PWRCTL_XTL32K 0x02UL

Setting External Crystal Oscillator as 32KHz

Definition at line 40 of file clk.h.

## ◆ FDIV_MODULE

#define FDIV_MODULE ((0x0<<31)|(0x3<<29)|(0x3<<25)|( 2<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_CLKOCKEN_Pos)

Frequency Divider Output Module

Definition at line 131 of file clk.h.

## ◆ I2C_MODULE

#define I2C_MODULE ((0x0<<31)|(0x3<<29)|(MODULE_NoMsk<<25)|(31<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_I2CCKEN_Pos)

I2C Module

Definition at line 132 of file clk.h.

## ◆ MODULE_APBCLK

#define MODULE_APBCLK | ( |  | x | ) | ((x >>31) & 0x1)

Calculate APBCLK offset on MODULE index

Definition at line 106 of file clk.h.

## ◆ MODULE_APBCLK_ENC

#define MODULE_APBCLK_ENC | ( |  | x | ) | (((x) & 0x01) << 31)

MODULE index, 0x0:AHBCLK, 0x1:APBCLK

Definition at line 117 of file clk.h.

## ◆ MODULE_CLKDIV

#define MODULE_CLKDIV | ( |  | x | ) | ((x >>18) & 0x3)

Calculate APBCLK CLKDIV on MODULE index

Definition at line 110 of file clk.h.

## ◆ MODULE_CLKDIV_ENC

#define MODULE_CLKDIV_ENC | ( |  | x | ) | (((x) & 0x03) << 18)

APBCLK CLKDIV on MODULE index, 0x0:CLKDIV

Definition at line 121 of file clk.h.

## ◆ MODULE_CLKDIV_Msk

#define MODULE_CLKDIV_Msk | ( |  | x | ) | ((x >>10) & 0xff)

Calculate CLKDIV mask offset on MODULE index

Definition at line 111 of file clk.h.

## ◆ MODULE_CLKDIV_Msk_ENC

#define MODULE_CLKDIV_Msk_ENC | ( |  | x | ) | (((x) & 0xff) << 10)

CLKDIV mask offset on MODULE index

Definition at line 122 of file clk.h.

## ◆ MODULE_CLKDIV_Pos

#define MODULE_CLKDIV_Pos | ( |  | x | ) | ((x >>5 ) & 0x1f)

Calculate CLKDIV position offset on MODULE index

Definition at line 112 of file clk.h.

## ◆ MODULE_CLKDIV_Pos_ENC

#define MODULE_CLKDIV_Pos_ENC | ( |  | x | ) | (((x) & 0x1f) << 5)

CLKDIV position offset on MODULE index

Definition at line 123 of file clk.h.

## ◆ MODULE_CLKSEL

#define MODULE_CLKSEL | ( |  | x | ) | ((x >>29) & 0x3)

Calculate CLKSEL offset on MODULE index

Definition at line 107 of file clk.h.

## ◆ MODULE_CLKSEL_ENC

#define MODULE_CLKSEL_ENC | ( |  | x | ) | (((x) & 0x03) << 29)

CLKSEL offset on MODULE index, 0x0:CLKSEL0, 0x1:CLKSEL1 0x3 CLKSEL2

Definition at line 118 of file clk.h.

## ◆ MODULE_CLKSEL_Msk

#define MODULE_CLKSEL_Msk | ( |  | x | ) | ((x >>25) & 0xf)

Calculate CLKSEL mask offset on MODULE index

Definition at line 108 of file clk.h.

## ◆ MODULE_CLKSEL_Msk_ENC

#define MODULE_CLKSEL_Msk_ENC | ( |  | x | ) | (((x) & 0x0f) << 25)

CLKSEL mask offset on MODULE index

Definition at line 119 of file clk.h.

## ◆ MODULE_CLKSEL_Pos

#define MODULE_CLKSEL_Pos | ( |  | x | ) | ((x >>20) & 0x1f)

Calculate CLKSEL position offset on MODULE index

Definition at line 109 of file clk.h.

## ◆ MODULE_CLKSEL_Pos_ENC

#define MODULE_CLKSEL_Pos_ENC | ( |  | x | ) | (((x) & 0x1f) << 20)

CLKSEL position offset on MODULE index

Definition at line 120 of file clk.h.

## ◆ MODULE_IP_EN_Pos

#define MODULE_IP_EN_Pos | ( |  | x | ) | ((x >>0 ) & 0x1f)

Calculate APBCLK offset on MODULE index

Definition at line 113 of file clk.h.

## ◆ MODULE_IP_EN_Pos_ENC

#define MODULE_IP_EN_Pos_ENC | ( |  | x | ) | (((x) & 0x1f) << 0)

APBCLK offset on MODULE index

Definition at line 124 of file clk.h.

## ◆ MODULE_NoMsk

#define MODULE_NoMsk 0x0

Not mask on MODULE index

Definition at line 114 of file clk.h.

## ◆ NA

#define NA MODULE_NoMsk

Not Available

Definition at line 115 of file clk.h.

## ◆ PWM01_MODULE

#define PWM01_MODULE ((0x0<<31)|(0x1<<29)|(0x3<<25)|(28<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_PWMCH01CKEN_Pos)

PWM Channel0 and Channel1 Module

Definition at line 136 of file clk.h.

## ◆ PWM23_MODULE

#define PWM23_MODULE ((0x0<<31)|(0x1<<29)|(0x3<<25)|(30<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_PWMCH23CKEN_Pos)

PWM Channel2 and Channel3 Module

Definition at line 137 of file clk.h.

## ◆ PWM45_MODULE

#define PWM45_MODULE ((0x0<<31)|(0x3<<29)|(0x3<<25)|( 4<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_PWMCH45CKEN_Pos)

PWM Channel4 and Channel5 Module

Definition at line 138 of file clk.h.

## ◆ SPI_MODULE

#define SPI_MODULE ((0x0<<31)|(0x1<<29)|(0x1<<25)|( 4<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_SPICKEN_Pos)

SPI Module

Definition at line 133 of file clk.h.

## ◆ TMR0_MODULE

#define TMR0_MODULE ((0x0<<31)|(0x1<<29)|(0x7<<25)|( 8<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_TMR0CKEN_Pos)

Timer0 Module

Definition at line 129 of file clk.h.

## ◆ TMR1_MODULE

#define TMR1_MODULE ((0x0<<31)|(0x1<<29)|(0x7<<25)|(12<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_TMR1CKEN_Pos)

Timer1 Module

Definition at line 130 of file clk.h.

## ◆ UART0_MODULE

#define UART0_MODULE ((0x0<<31)|(0x1<<29)|(0x3<<25)|(24<<20)|(0x0<<18)|(0x0F<<10)|( 8<<5)|CLK_APBCLK_UART0CKEN_Pos)

UART0 Module

Definition at line 134 of file clk.h.

## ◆ UART1_MODULE

#define UART1_MODULE ((0x0<<31)|(0x1<<29)|(0x3<<25)|(26<<20)|(0x0<<18)|(0x0F<<10)|(12<<5)|CLK_APBCLK_UART1CKEN_Pos)

UART1 Module

Definition at line 135 of file clk.h.

## ◆ WDT_MODULE

#define WDT_MODULE ((0x0<<31)|(0x1<<29)|(0x3<<25)|( 0<<20)|(0x3<<18)|(MODULE_NoMsk<<10)|(31<<5)|CLK_APBCLK_WDTCKEN_Pos )

Watchdog Timer Module

Definition at line 128 of file clk.h.