Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
lpcSCB.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  scbRegs_t
 

Macros

#define MAMCR_OFF   0
 
#define MAMCR_PART   1
 
#define MAMCR_FULL   2
 
#define MAMTIM_CYCLES   (((CCLK) + 19999999) / 20000000)
 
#define MEMMAP_BBLK   0
 
#define MEMMAP_FLASH   1
 
#define MEMMAP_SRAM   2
 
#define CCLK   (FOSC * PLL_MUL)
 
#define FCCO_MAX   (320000000)
 
#define PLL_DIV   (FCCO_MAX / (2 * CCLK))
 
#define FCCO   (FOSC * PLL_MUL * 2 * PLL_DIV)
 
#define PLLCON_PLLE   (1 << 0)
 
#define PLLCON_PLLC   (1 << 1)
 
#define PLLCFG_MSEL   ((PLL_MUL - 1) << 0)
 
#define PLLCFG_PSEL   ((PLL_DIV - 1) << 5)
 
#define PLLSTAT_LOCK   (1 << 10)
 
#define VPBDIV_VALUE   (PBSD_BITS & 0x03)
 

Macro Definition Documentation

#define CCLK   (FOSC * PLL_MUL)

Definition at line 93 of file lpcSCB.h.

Referenced by pflash_program_array().

#define FCCO   (FOSC * PLL_MUL * 2 * PLL_DIV)

Definition at line 98 of file lpcSCB.h.

#define FCCO_MAX   (320000000)

Definition at line 96 of file lpcSCB.h.

#define MAMCR_FULL   2

Definition at line 78 of file lpcSCB.h.

Referenced by mcu_arch_init().

#define MAMCR_OFF   0

Definition at line 76 of file lpcSCB.h.

#define MAMCR_PART   1

Definition at line 77 of file lpcSCB.h.

#define MAMTIM_CYCLES   (((CCLK) + 19999999) / 20000000)

Definition at line 80 of file lpcSCB.h.

Referenced by mcu_arch_init().

#define MEMMAP_BBLK   0

Definition at line 84 of file lpcSCB.h.

#define MEMMAP_FLASH   1

Definition at line 85 of file lpcSCB.h.

Referenced by mcu_arch_init().

#define MEMMAP_SRAM   2

Definition at line 86 of file lpcSCB.h.

#define PLL_DIV   (FCCO_MAX / (2 * CCLK))

Definition at line 97 of file lpcSCB.h.

#define PLLCFG_MSEL   ((PLL_MUL - 1) << 0)

Definition at line 105 of file lpcSCB.h.

Referenced by mcu_arch_init().

#define PLLCFG_PSEL   ((PLL_DIV - 1) << 5)

Definition at line 106 of file lpcSCB.h.

Referenced by mcu_arch_init().

#define PLLCON_PLLC   (1 << 1)

Definition at line 102 of file lpcSCB.h.

Referenced by mcu_arch_init().

#define PLLCON_PLLE   (1 << 0)

Definition at line 101 of file lpcSCB.h.

Referenced by mcu_arch_init().

#define PLLSTAT_LOCK   (1 << 10)

Definition at line 109 of file lpcSCB.h.

Referenced by mcu_arch_init().

#define VPBDIV_VALUE   (PBSD_BITS & 0x03)

Definition at line 113 of file lpcSCB.h.

Referenced by mcu_arch_init().