Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ scbRegs_t

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

◆ scbRegs_t.mam

struct scbRegs_t.mam

Definition at line 33 of file lpcSCB.h.

Data Fields
REG_8 _pad0[3]
REG32 _pad1[14]
REG_8 cr
REG_8 tim

◆ scbRegs_t.pll

struct scbRegs_t.pll

Definition at line 46 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

◆ scbRegs_t.p

struct scbRegs_t.p

Definition at line 59 of file lpcSCB.h.

Data Fields
REG_8 _pad0[3]
REG32 _pad1[14]
REG_8 con
REG32 conp

◆ scbRegs_t.ext

struct scbRegs_t.ext

Definition at line 72 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

◆ CCLK

#define CCLK   (FOSC * PLL_MUL)

Definition at line 93 of file lpcSCB.h.

◆ FCCO

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

Definition at line 98 of file lpcSCB.h.

◆ FCCO_MAX

#define FCCO_MAX   (320000000)

Definition at line 96 of file lpcSCB.h.

◆ MAMCR_FULL

#define MAMCR_FULL   2

Definition at line 78 of file lpcSCB.h.

◆ MAMCR_OFF

#define MAMCR_OFF   0

Definition at line 76 of file lpcSCB.h.

◆ MAMCR_PART

#define MAMCR_PART   1

Definition at line 77 of file lpcSCB.h.

◆ MAMTIM_CYCLES

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

Definition at line 80 of file lpcSCB.h.

◆ MEMMAP_BBLK

#define MEMMAP_BBLK   0

Definition at line 84 of file lpcSCB.h.

◆ MEMMAP_FLASH

#define MEMMAP_FLASH   1

Definition at line 85 of file lpcSCB.h.

◆ MEMMAP_SRAM

#define MEMMAP_SRAM   2

Definition at line 86 of file lpcSCB.h.

◆ PLL_DIV

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

Definition at line 97 of file lpcSCB.h.

◆ PLLCFG_MSEL

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

Definition at line 105 of file lpcSCB.h.

◆ PLLCFG_PSEL

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

Definition at line 106 of file lpcSCB.h.

◆ PLLCON_PLLC

#define PLLCON_PLLC   (1 << 1)

Definition at line 102 of file lpcSCB.h.

◆ PLLCON_PLLE

#define PLLCON_PLLE   (1 << 0)

Definition at line 101 of file lpcSCB.h.

◆ PLLSTAT_LOCK

#define PLLSTAT_LOCK   (1 << 10)

Definition at line 109 of file lpcSCB.h.

◆ VPBDIV_VALUE

#define VPBDIV_VALUE   (PBSD_BITS & 0x03)

Definition at line 113 of file lpcSCB.h.