The MCUXpresso SDK provides a peripheral driver for the flash driver module of MCUXpresso SDK devices.
|
void | FLASH_Init (FLASH_Type *pFLASH) |
| Enable the FLASH. More...
|
|
void | FLASH_Powerdown (FLASH_Type *pFLASH) |
| Power down the FLASH. More...
|
|
int | FLASH_Wait (FLASH_Type *pFLASH) |
| Wait for FLASH command to complete. More...
|
|
int | FLASH_Erase (FLASH_Type *pFLASH, uint8_t *pu8Start, uint8_t *pu8End) |
| Erase page. More...
|
|
int | FLASH_ErasePages (FLASH_Type *pFLASH, uint32_t u32StartPage, uint32_t u32PageCount) |
| Erase page. More...
|
|
int | FLASH_BlankCheck (FLASH_Type *pFLASH, uint8_t *pu8Start, uint8_t *pu8End) |
| Erase page. More...
|
|
int | FLASH_MarginCheck (FLASH_Type *pFLASH, uint8_t *pu8Start, uint8_t *pu8End) |
| Erase page. More...
|
|
int | FLASH_Program (FLASH_Type *pFLASH, uint32_t *pu32Start, uint32_t *pu32Data, uint32_t u32Length) |
| Erase page. More...
|
|
int | FLASH_Checksum (FLASH_Type *pFLASH, uint8_t *pu8Start, uint8_t *pu8End, uint32_t au32Checksum[4]) |
| Erase page. More...
|
|
int | FLASH_Read (FLASH_Type *pFLASH, uint8_t *pu8Start, uint32_t u32ReadMode, uint32_t au32Data[4]) |
| Read word. More...
|
|
#define FLASH_FAIL (1 << 0) |
FLASH INT_ENABLE register definitions.
Command failed
#define FLASH_FAIL (1 << 0) |
FLASH INT_ENABLE register definitions.
Command failed
void FLASH_Init |
( |
FLASH_Type * |
pFLASH | ) |
|
- Parameters
-
pFLASH | : Pointer to selected FLASHx peripheral |
- Returns
- Nothing
void FLASH_Powerdown |
( |
FLASH_Type * |
pFLASH | ) |
|
- Parameters
-
pFLASH | : Pointer to selected FLASHx peripheral |
- Returns
- Nothing
int FLASH_Wait |
( |
FLASH_Type * |
pFLASH | ) |
|
- Parameters
-
pFLASH | : Pointer to selected FLASHx peripheral |
- Returns
- status
int FLASH_Erase |
( |
FLASH_Type * |
pFLASH, |
|
|
uint8_t * |
pu8Start, |
|
|
uint8_t * |
pu8End |
|
) |
| |
- Parameters
-
pFLASH | : Pointer to selected FLASHx peripheral |
- Returns
- Nothing
int FLASH_ErasePages |
( |
FLASH_Type * |
pFLASH, |
|
|
uint32_t |
u32StartPage, |
|
|
uint32_t |
u32PageCount |
|
) |
| |
- Parameters
-
pFLASH | : Pointer to selected FLASHx peripheral |
- Returns
- Nothing
int FLASH_BlankCheck |
( |
FLASH_Type * |
pFLASH, |
|
|
uint8_t * |
pu8Start, |
|
|
uint8_t * |
pu8End |
|
) |
| |
- Parameters
-
pFLASH | : Pointer to selected FLASHx peripheral |
- Returns
- Nothing
int FLASH_MarginCheck |
( |
FLASH_Type * |
pFLASH, |
|
|
uint8_t * |
pu8Start, |
|
|
uint8_t * |
pu8End |
|
) |
| |
- Parameters
-
pFLASH | : Pointer to selected FLASHx peripheral |
- Returns
- Nothing
int FLASH_Program |
( |
FLASH_Type * |
pFLASH, |
|
|
uint32_t * |
pu32Start, |
|
|
uint32_t * |
pu32Data, |
|
|
uint32_t |
u32Length |
|
) |
| |
- Parameters
-
pFLASH | : Pointer to selected FLASHx peripheral |
- Returns
- Nothing
int FLASH_Checksum |
( |
FLASH_Type * |
pFLASH, |
|
|
uint8_t * |
pu8Start, |
|
|
uint8_t * |
pu8End, |
|
|
uint32_t |
au32Checksum[4] |
|
) |
| |
- Parameters
-
pFLASH | : Pointer to selected FLASHx peripheral |
- Returns
- Nothing
int FLASH_Read |
( |
FLASH_Type * |
pFLASH, |
|
|
uint8_t * |
pu8Start, |
|
|
uint32_t |
u32ReadMode, |
|
|
uint32_t |
au32Data[4] |
|
) |
| |
- Parameters
-
pFLASH | : Pointer to selected FLASHx peripheral |
- Returns
- Nothing