65#define IFLASH_SECTOR_SIZE 65536u
69#define EFC_FCMD_GETD 0x00
70#define EFC_FCMD_WP 0x01
71#define EFC_FCMD_WPL 0x02
72#define EFC_FCMD_EWP 0x03
73#define EFC_FCMD_EWPL 0x04
74#define EFC_FCMD_EA 0x05
75#define EFC_FCMD_EPA 0x07
76#define EFC_FCMD_SLB 0x08
77#define EFC_FCMD_CLB 0x09
78#define EFC_FCMD_GLB 0x0A
79#define EFC_FCMD_SFB 0x0B
80#define EFC_FCMD_CFB 0x0C
81#define EFC_FCMD_GFB 0x0D
82#define EFC_FCMD_STUI 0x0E
83#define EFC_FCMD_SPUI 0x0F
84#define EFC_FCMD_GCALB 0x10
85#define EFC_FCMD_ES 0x11
86#define EFC_FCMD_WUS 0x12
87#define EFC_FCMD_EUS 0x13
88#define EFC_FCMD_STUS 0x14
89#define EFC_FCMD_SPUS 0x15
92#define CHIP_FLASH_IAP_ADDRESS (0x00800008)
109 uint16_t *pwPage, uint16_t *pwOffset);
112 uint32_t *pdwAddress);
115 uint32_t dwArgument, uint32_t dwUseIAP);
uint32_t EFC_GetStatus(Efc *efc)
Returns the current status of the EEFC.
Definition: efc.c:157
void EFC_TranslateAddress(Efc **pEfc, uint32_t dwAddress, uint16_t *pwPage, uint16_t *pwOffset)
Translates the given address page and offset values.
Definition: efc.c:182
void EFC_SetFlashAccessMode(Efc *efc, uint32_t dwMode)
Set flash access mode.
Definition: efc.c:273
void EFC_EnableFrdyIt(Efc *efc)
Enables the flash ready interrupt source on the EEFC peripheral.
Definition: efc.c:111
void EFC_DisableFrdyIt(Efc *efc)
Disables the flash ready interrupt source on the EEFC peripheral.
Definition: efc.c:124
void EFC_ComputeAddress(Efc *efc, uint16_t wPage, uint16_t wOffset, uint32_t *pdwAddress)
Computes the address of a flash access given the page and offset.
Definition: efc.c:210
uint32_t EFC_GetResult(Efc *efc)
Returns the result of the last executed command.
Definition: efc.c:167
void EFC_SetWaitState(Efc *efc, uint8_t cycles)
Set read/write wait state on the EEFC peripheral.
Definition: efc.c:139
uint32_t EFC_PerformCommand(Efc *efc, uint32_t dwCommand, uint32_t dwArgument, uint32_t dwUseIAP)
Performs the given command and wait until its completion (or an error).
Definition: efc.c:238
Efc hardware registers.
Definition: component_efc.h:41