Paparazzi UAS  v5.15_devel-47-g0391b4d
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces 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
 
struct  scbRegs_t.mam
 
struct  scbRegs_t.pll
 
struct  scbRegs_t.p
 
struct  scbRegs_t.ext
 

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)
 

Data Structure Documentation

struct scbRegs_t

Definition at line 18 of file lpcSCB.h.

+ Collaboration diagram for scbRegs_t:
Data Fields
REG32 _pad0[15]
REG32 _pad1[15]
struct scbRegs_t ext
struct scbRegs_t mam
REG_8 memmap
struct scbRegs_t p
struct scbRegs_t pll
REG_8 vpbdiv
struct scbRegs_t.mam

Definition at line 21 of file lpcSCB.h.

Data Fields
REG_8 _pad0[3]
REG32 _pad1[14]
REG_8 cr
REG_8 tim
struct scbRegs_t.pll

Definition at line 34 of file lpcSCB.h.

Data Fields
REG_8 _pad0[3]
REG_8 _pad1[3]
REG16 _pad2
REG32 _pad3[12]
REG_8 cfg
REG_8 con
REG_8 feed
REG16 stat
struct scbRegs_t.p

Definition at line 47 of file lpcSCB.h.

Data Fields
REG_8 _pad0[3]
REG32 _pad1[14]
REG_8 con
REG32 conp
struct scbRegs_t.ext

Definition at line 60 of file lpcSCB.h.

Data Fields
REG_8 _pad0[3]
REG_8 _pad1[3]
REG_8 _pad2[3]
REG32 _pad3[12]
REG_8 flag
REG_8 mode
REG_8 polar
REG_8 wake

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().