The functions in this group are used to erase selected portions of a flash device.
ALT_STATUS_CODE alt_qspi_erase_subsector |
( |
const uint32_t |
addr | ) |
|
This function erases the designated flash device subsector.
This function erases the flash device subsector containing the designated flash address. Any address within the subsector is valid.
- Parameters
-
addr | A flash address contained within the the subsector to be erased. |
- Return values
-
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
ALT_STATUS_CODE alt_qspi_erase_sector |
( |
const uint32_t |
addr | ) |
|
This function erases the designated flash device sector.
This function erases the flash device sector containing the designated flash address. Any address within the sector is valid.
- Parameters
-
addr | A flash address contained within the the sector to be erased. |
- Return values
-
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
ALT_STATUS_CODE alt_qspi_erase_chip |
( |
void |
| ) |
|
This function erases the entire flash device.
- Return values
-
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |