CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
LPC17xx System Defines
Collaboration diagram for LPC17xx System Defines:

Macros

#define __CCLK_DIV   (((CCLKCFG_Val ) & 0x00FF) + 1)
#define __CORE_CLK   (__FCCO(OSC_CLK) / __CCLK_DIV)
#define __FCCO(__F_IN)   ((2 * __M * __F_IN) / __N)
#define __M   (((PLL0CFG_Val ) & 0x7FFF) + 1)
#define __N   (((PLL0CFG_Val >> 16) & 0x00FF) + 1)
#define CCLKCFG_Val   0x00000003
#define CHECK_RANGE(val, min, max)   ((val < min) || (val > max))
#define CHECK_RSVD(val, mask)   (val & mask)
#define CLKOUTCFG_Val   0x00000000
#define CLKSRCSEL_Val   0x00000001
#define CLOCK_SETUP   1
#define FLASH_SETUP   1
#define FLASHCFG_Val   0x0000303A
#define IRC_OSC   ( 4000000UL) /* Internal RC oscillator frequency */
#define OSC_CLK   ( XTAL_HZ) /* Main oscillator frequency */
#define PCLKSEL0_Val   0x00000000
#define PCLKSEL1_Val   0x00000000
#define PCONP_Val   0x042887DE
#define PLL0_SETUP   1
#define PLL0CFG_Val   0x00050063
#define PLL1_SETUP   1
#define PLL1CFG_Val   0x00000023
#define RTC_CLK   ( 32768UL) /* RTC oscillator frequency */
#define SCS_Val   0x00000020
#define USBCLKCFG_Val   0x00000000
#define XTAL_HZ   (12000000UL) /* Oscillator frequency */

Detailed Description

Macro Definition Documentation

#define __CCLK_DIV   (((CCLKCFG_Val ) & 0x00FF) + 1)

Definition at line 439 of file system_LPC17xx.c.

#define __CORE_CLK   (__FCCO(OSC_CLK) / __CCLK_DIV)

Definition at line 444 of file system_LPC17xx.c.

#define __FCCO (   __F_IN)    ((2 * __M * __F_IN) / __N)

Definition at line 438 of file system_LPC17xx.c.

#define __M   (((PLL0CFG_Val ) & 0x7FFF) + 1)

Definition at line 436 of file system_LPC17xx.c.

#define __N   (((PLL0CFG_Val >> 16) & 0x00FF) + 1)

Definition at line 437 of file system_LPC17xx.c.

#define CCLKCFG_Val   0x00000003

Definition at line 322 of file system_LPC17xx.c.

Referenced by SystemInit().

#define CHECK_RANGE (   val,
  min,
  max 
)    ((val < min) || (val > max))

Definition at line 364 of file system_LPC17xx.c.

#define CHECK_RSVD (   val,
  mask 
)    (val & mask)

Definition at line 365 of file system_LPC17xx.c.

#define CLKOUTCFG_Val   0x00000000

Definition at line 337 of file system_LPC17xx.c.

Referenced by SystemInit().

#define CLKSRCSEL_Val   0x00000001

Definition at line 307 of file system_LPC17xx.c.

Referenced by SystemInit().

#define CLOCK_SETUP   1

Definition at line 301 of file system_LPC17xx.c.

#define FLASH_SETUP   1

Definition at line 354 of file system_LPC17xx.c.

#define FLASHCFG_Val   0x0000303A

Definition at line 355 of file system_LPC17xx.c.

Referenced by SystemInit().

#define IRC_OSC   ( 4000000UL) /* Internal RC oscillator frequency */

Definition at line 431 of file system_LPC17xx.c.

Referenced by SystemCoreClockUpdate().

#define OSC_CLK   ( XTAL_HZ) /* Main oscillator frequency */

Definition at line 425 of file system_LPC17xx.c.

Referenced by SystemCoreClockUpdate().

#define PCLKSEL0_Val   0x00000000

Definition at line 328 of file system_LPC17xx.c.

Referenced by SystemInit().

#define PCLKSEL1_Val   0x00000000

Definition at line 331 of file system_LPC17xx.c.

Referenced by SystemInit().

#define PCONP_Val   0x042887DE

Definition at line 334 of file system_LPC17xx.c.

Referenced by SystemInit().

#define PLL0_SETUP   1

Definition at line 310 of file system_LPC17xx.c.

#define PLL0CFG_Val   0x00050063

Definition at line 313 of file system_LPC17xx.c.

Referenced by SystemInit().

#define PLL1_SETUP   1

Definition at line 316 of file system_LPC17xx.c.

#define PLL1CFG_Val   0x00000023

Definition at line 319 of file system_LPC17xx.c.

Referenced by SystemInit().

#define RTC_CLK   ( 32768UL) /* RTC oscillator frequency */

Definition at line 428 of file system_LPC17xx.c.

Referenced by SystemCoreClockUpdate().

#define SCS_Val   0x00000020

Definition at line 304 of file system_LPC17xx.c.

Referenced by SystemInit().

#define USBCLKCFG_Val   0x00000000

Definition at line 325 of file system_LPC17xx.c.

Referenced by SystemInit().

#define XTAL_HZ   (12000000UL) /* Oscillator frequency */

Definition at line 422 of file system_LPC17xx.c.