![]() |
LPCOpen Platform for LPC112X microcontrollers
112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
|
Data Structures | |
struct | LPC_FMC_T |
FLASH Memory Controller Unit register block structure. More... | |
Macros | |
#define | FMC_FLASHSIG_BUSY (1UL << 17) |
#define | FMC_FLASHSIG_STAT (1 << 2) |
Enumerations | |
enum | FMC_FLASHTIM_T { FLASHTIM_20MHZ_CPU = 0, FLASHTIM_40MHZ_CPU = 1, FLASHTIM_50MHZ_CPU = 2 } |
FLASH Access time definitions. More... | |
Functions | |
STATIC INLINE void | Chip_FMC_SetFLASHAccess (FMC_FLASHTIM_T clks) |
Set FLASH access time in clocks. More... | |
STATIC INLINE void | Chip_FMC_ComputeSignature (uint32_t start, uint32_t stop) |
Start computation of a signature for a FLASH memory range. More... | |
STATIC INLINE void | Chip_FMC_ComputeSignatureBlocks (uint32_t start, uint32_t blocks) |
Start computation of a signature for a FLASH memory address and block count. More... | |
STATIC INLINE void | Chip_FMC_ClearSignatureBusy (void) |
Clear signature generation completion flag. More... | |
STATIC INLINE bool | Chip_FMC_IsSignatureBusy (void) |
Check for signature generation completion. More... | |
STATIC INLINE uint32_t | Chip_FMC_GetSignature (int index) |
Returns the generated FLASH signature value. More... | |
#define FMC_FLASHSIG_BUSY (1UL << 17) |
Definition at line 87 of file fmc_112x.h.
#define FMC_FLASHSIG_STAT (1 << 2) |
Definition at line 90 of file fmc_112x.h.
enum FMC_FLASHTIM_T |
FLASH Access time definitions.
Definition at line 65 of file fmc_112x.h.
Clear signature generation completion flag.
Definition at line 128 of file fmc_112x.h.
Start computation of a signature for a FLASH memory range.
start | : Starting FLASH address for computation, must be aligned on 16 byte boundary |
stop | : Ending FLASH address for computation, must be aligned on 16 byte boundary |
Definition at line 102 of file fmc_112x.h.
Start computation of a signature for a FLASH memory address and block count.
start | : Starting FLASH address for computation, must be aligned on 16 byte boundary |
blocks | : Number of 16 byte blocks used for computation |
Definition at line 119 of file fmc_112x.h.
Returns the generated FLASH signature value.
index | : Signature index to get - use 0 to FMSW0, 1 to FMSW1, etc. |
Definition at line 147 of file fmc_112x.h.
Check for signature generation completion.
Definition at line 137 of file fmc_112x.h.
STATIC INLINE void Chip_FMC_SetFLASHAccess | ( | FMC_FLASHTIM_T | clks | ) |
Set FLASH access time in clocks.
clks | : Clock cycles for FLASH access (minus 1) |
Definition at line 78 of file fmc_112x.h.