/* Function for restore head state entry action. 
Function for restore head state entry action, which includes writing the head section back from swap to the data page.  */
static void state_restore_head_entry_run(void)
/* Function for restore head state entry action. 
Function for restore head state entry action, which includes writing the head section back from swap to the data page.  */
static void state_restore_head_entry_run(void)
{
    flash_write((uint32_t *)((m_current_page_id - 1u) * PSTORAGE_FLASH_PAGE_SIZE),
                (uint32_t *)PSTORAGE_SWAP_ADDR,
                m_head_word_size);
}