/* Function for swap erase state entry action. 
Function for swap erase state entry action, which includes erasing swap flash page.  */
static void state_swap_erase_entry_run(void)
/* Function for swap erase state entry action. 
Function for swap erase state entry action, which includes erasing swap flash page.  */
static void state_swap_erase_entry_run(void)
{
    flash_page_erase(PSTORAGE_SWAP_ADDR / PSTORAGE_FLASH_PAGE_SIZE);                
}