uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLKPWR Public Macros

Macros

#define CLKPWR_PCLKSEL_WDT   ((uint32_t)(0))
 
#define CLKPWR_PCLKSEL_TIMER0   ((uint32_t)(2))
 
#define CLKPWR_PCLKSEL_TIMER1   ((uint32_t)(4))
 
#define CLKPWR_PCLKSEL_UART0   ((uint32_t)(6))
 
#define CLKPWR_PCLKSEL_UART1   ((uint32_t)(8))
 
#define CLKPWR_PCLKSEL_PWM1   ((uint32_t)(12))
 
#define CLKPWR_PCLKSEL_I2C0   ((uint32_t)(14))
 
#define CLKPWR_PCLKSEL_SPI   ((uint32_t)(16))
 
#define CLKPWR_PCLKSEL_SSP1   ((uint32_t)(20))
 
#define CLKPWR_PCLKSEL_DAC   ((uint32_t)(22))
 
#define CLKPWR_PCLKSEL_ADC   ((uint32_t)(24))
 
#define CLKPWR_PCLKSEL_CAN1   ((uint32_t)(26))
 
#define CLKPWR_PCLKSEL_CAN2   ((uint32_t)(28))
 
#define CLKPWR_PCLKSEL_ACF   ((uint32_t)(30))
 
#define CLKPWR_PCLKSEL_QEI   ((uint32_t)(32))
 
#define CLKPWR_PCLKSEL_PCB   ((uint32_t)(36))
 
#define CLKPWR_PCLKSEL_I2C1   ((uint32_t)(38))
 
#define CLKPWR_PCLKSEL_SSP0   ((uint32_t)(42))
 
#define CLKPWR_PCLKSEL_TIMER2   ((uint32_t)(44))
 
#define CLKPWR_PCLKSEL_TIMER3   ((uint32_t)(46))
 
#define CLKPWR_PCLKSEL_UART2   ((uint32_t)(48))
 
#define CLKPWR_PCLKSEL_UART3   ((uint32_t)(50))
 
#define CLKPWR_PCLKSEL_I2C2   ((uint32_t)(52))
 
#define CLKPWR_PCLKSEL_I2S   ((uint32_t)(54))
 
#define CLKPWR_PCLKSEL_RIT   ((uint32_t)(58))
 
#define CLKPWR_PCLKSEL_SYSCON   ((uint32_t)(60))
 
#define CLKPWR_PCLKSEL_MC   ((uint32_t)(62))
 
#define CLKPWR_PCLKSEL_CCLK_DIV_4   ((uint32_t)(0))
 
#define CLKPWR_PCLKSEL_CCLK_DIV_1   ((uint32_t)(1))
 
#define CLKPWR_PCLKSEL_CCLK_DIV_2   ((uint32_t)(2))
 
#define CLKPWR_PCONP_PCTIM0   ((uint32_t)(1<<1))
 
#define CLKPWR_PCONP_PCTIM1   ((uint32_t)(1<<2))
 
#define CLKPWR_PCONP_PCUART0   ((uint32_t)(1<<3))
 
#define CLKPWR_PCONP_PCUART1   ((uint32_t)(1<<4))
 
#define CLKPWR_PCONP_PCPWM1   ((uint32_t)(1<<6))
 
#define CLKPWR_PCONP_PCI2C0   ((uint32_t)(1<<7))
 
#define CLKPWR_PCONP_PCSPI   ((uint32_t)(1<<8))
 
#define CLKPWR_PCONP_PCRTC   ((uint32_t)(1<<9))
 
#define CLKPWR_PCONP_PCSSP1   ((uint32_t)(1<<10))
 
#define CLKPWR_PCONP_PCAD   ((uint32_t)(1<<12))
 
#define CLKPWR_PCONP_PCAN1   ((uint32_t)(1<<13))
 
#define CLKPWR_PCONP_PCAN2   ((uint32_t)(1<<14))
 
#define CLKPWR_PCONP_PCGPIO   ((uint32_t)(1<<15))
 
#define CLKPWR_PCONP_PCRIT   ((uint32_t)(1<<16))
 
#define CLKPWR_PCONP_PCMC   ((uint32_t)(1<<17))
 
#define CLKPWR_PCONP_PCQEI   ((uint32_t)(1<<18))
 
#define CLKPWR_PCONP_PCI2C1   ((uint32_t)(1<<19))
 
#define CLKPWR_PCONP_PCSSP0   ((uint32_t)(1<<21))
 
#define CLKPWR_PCONP_PCTIM2   ((uint32_t)(1<<22))
 
#define CLKPWR_PCONP_PCTIM3   ((uint32_t)(1<<23))
 
#define CLKPWR_PCONP_PCUART2   ((uint32_t)(1<<24))
 
#define CLKPWR_PCONP_PCUART3   ((uint32_t)(1<<25))
 
#define CLKPWR_PCONP_PCI2C2   ((uint32_t)(1<<26))
 
#define CLKPWR_PCONP_PCI2S   ((uint32_t)(1<<27))
 
#define CLKPWR_PCONP_PCGPDMA   ((uint32_t)(1<<29))
 
#define CLKPWR_PCONP_PCENET   ((uint32_t)(1<<30))
 
#define CLKPWR_PCONP_PCUSB   ((uint32_t)(1<<31))
 

Detailed Description

Macro Definition Documentation

#define CLKPWR_PCLKSEL_ACF   ((uint32_t)(30))

Peripheral clock divider bit position for ACF

Definition at line 74 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_ADC   ((uint32_t)(24))

Peripheral clock divider bit position for ADC

Definition at line 68 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_CAN1   ((uint32_t)(26))

Peripheral clock divider bit position for CAN1

Definition at line 70 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_CAN2   ((uint32_t)(28))

Peripheral clock divider bit position for CAN2

Definition at line 72 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_CCLK_DIV_1   ((uint32_t)(1))

Peripheral clock divider is the same with CCLK

Definition at line 109 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_CCLK_DIV_2   ((uint32_t)(2))

Peripheral clock divider is set to 2 from CCLK

Definition at line 111 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_CCLK_DIV_4   ((uint32_t)(0))

Macro for Peripheral Clock Selection register bit values Note: When CCLK_DIV_8, Peripheral’s clock is selected to PCLK_xyz = CCLK/8 except for CAN1, CAN2, and CAN filtering when ’11’selects PCLK_xyz = CCLK/6

Definition at line 107 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_DAC   ((uint32_t)(22))

Peripheral clock divider bit position for DAC

Definition at line 66 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_I2C0   ((uint32_t)(14))

Peripheral clock divider bit position for I2C0

Definition at line 60 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_I2C1   ((uint32_t)(38))

Peripheral clock divider bit position for I2C1

Definition at line 80 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_I2C2   ((uint32_t)(52))

Peripheral clock divider bit position for I2C2

Definition at line 92 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_I2S   ((uint32_t)(54))

Peripheral clock divider bit position for I2S

Definition at line 94 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_MC   ((uint32_t)(62))

Peripheral clock divider bit position for MC

Definition at line 100 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_PCB   ((uint32_t)(36))

Peripheral clock divider bit position for PCB

Definition at line 78 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_PWM1   ((uint32_t)(12))

Peripheral clock divider bit position for PWM1

Definition at line 58 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_QEI   ((uint32_t)(32))

Peripheral clock divider bit position for QEI

Definition at line 76 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_RIT   ((uint32_t)(58))

Peripheral clock divider bit position for RIT

Definition at line 96 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_SPI   ((uint32_t)(16))

Peripheral clock divider bit position for SPI

Definition at line 62 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_SSP0   ((uint32_t)(42))

Peripheral clock divider bit position for SSP0

Definition at line 82 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_SSP1   ((uint32_t)(20))

Peripheral clock divider bit position for SSP1

Definition at line 64 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_SYSCON   ((uint32_t)(60))

Peripheral clock divider bit position for SYSCON

Definition at line 98 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_TIMER0   ((uint32_t)(2))

Peripheral clock divider bit position for TIMER0

Definition at line 50 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_TIMER1   ((uint32_t)(4))

Peripheral clock divider bit position for TIMER1

Definition at line 52 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_TIMER2   ((uint32_t)(44))

Peripheral clock divider bit position for TIMER2

Definition at line 84 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_TIMER3   ((uint32_t)(46))

Peripheral clock divider bit position for TIMER3

Definition at line 86 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_UART0   ((uint32_t)(6))

Peripheral clock divider bit position for UART0

Definition at line 54 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_UART1   ((uint32_t)(8))

Peripheral clock divider bit position for UART1

Definition at line 56 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_UART2   ((uint32_t)(48))

Peripheral clock divider bit position for UART2

Definition at line 88 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_UART3   ((uint32_t)(50))

Peripheral clock divider bit position for UART3

Definition at line 90 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCLKSEL_WDT   ((uint32_t)(0))

Peripheral clock divider bit position for WDT

Definition at line 48 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCAD   ((uint32_t)(1<<12))

A/D converter 0 (ADC0) power/clock control bit

Definition at line 136 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCAN1   ((uint32_t)(1<<13))

CAN Controller 1 power/clock control bit

Definition at line 138 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCAN2   ((uint32_t)(1<<14))

CAN Controller 2 power/clock control bit

Definition at line 140 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCENET   ((uint32_t)(1<<30))

Ethernet block power/clock control bit

Definition at line 168 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCGPDMA   ((uint32_t)(1<<29))

GP DMA function power/clock control bit

Definition at line 166 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCGPIO   ((uint32_t)(1<<15))

GPIO power/clock control bit

Definition at line 142 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCI2C0   ((uint32_t)(1<<7))

The I2C0 interface power/clock control bit

Definition at line 128 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCI2C1   ((uint32_t)(1<<19))

The I2C1 interface power/clock control bit

Definition at line 150 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCI2C2   ((uint32_t)(1<<26))

I2C interface 2 power/clock control bit

Definition at line 162 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCI2S   ((uint32_t)(1<<27))

I2S interface power/clock control bit

Definition at line 164 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCMC   ((uint32_t)(1<<17))

Motor Control PWM

Definition at line 146 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCPWM1   ((uint32_t)(1<<6))

PWM1 power/clock control bit

Definition at line 126 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCQEI   ((uint32_t)(1<<18))

Quadrature Encoder Interface power/clock control bit

Definition at line 148 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCRIT   ((uint32_t)(1<<16))

Repetitive Interrupt Timer power/clock control bit

Definition at line 144 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCRTC   ((uint32_t)(1<<9))

The RTC power/clock control bit

Definition at line 132 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCSPI   ((uint32_t)(1<<8))

The SPI interface power/clock control bit

Definition at line 130 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCSSP0   ((uint32_t)(1<<21))

The SSP0 interface power/clock control bit

Definition at line 152 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCSSP1   ((uint32_t)(1<<10))

The SSP1 interface power/clock control bit

Definition at line 134 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCTIM0   ((uint32_t)(1<<1))

Timer/Counter 0 power/clock control bit

Definition at line 118 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCTIM1   ((uint32_t)(1<<2))

Definition at line 120 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCTIM2   ((uint32_t)(1<<22))

Timer 2 power/clock control bit

Definition at line 154 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCTIM3   ((uint32_t)(1<<23))

Timer 3 power/clock control bit

Definition at line 156 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCUART0   ((uint32_t)(1<<3))

UART0 power/clock control bit

Definition at line 122 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCUART1   ((uint32_t)(1<<4))

UART1 power/clock control bit

Definition at line 124 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCUART2   ((uint32_t)(1<<24))

UART 2 power/clock control bit

Definition at line 158 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCUART3   ((uint32_t)(1<<25))

UART 3 power/clock control bit

Definition at line 160 of file lpc17xx_clkpwr.h.

#define CLKPWR_PCONP_PCUSB   ((uint32_t)(1<<31))

USB interface power/clock control bit

Definition at line 170 of file lpc17xx_clkpwr.h.