/* Finalizes the flash driver operations. There could still be data in the currently active block that needs to be flashed.  */
blt_bool FlashDone(void)
/* Finalizes the flash driver operations. There could still be data in the currently active block that needs to be flashed.  */
blt_bool FlashDone(void)
{
  blt_int8u cnt;
  if (bootBlockInfo.base_addr != FLASH_INVALID_ADDRESS)
  {
    if (FlashWriteBlock(&bootBlockInfo) == BLT_FALSE)
    {
      return BLT_FALSE;
    }
  }
  if (blockInfo.base_addr != FLASH_INVALID_ADDRESS)
  {
    if (FlashWriteBlock(&blockInfo) == BLT_FALSE)
    {
      return BLT_FALSE;
    }
  }
  for (cnt=0; cnt<(sizeof(flashExecCmd)/sizeof(flashExecCmd[0])); cnt++)
  {
    flashExecCmdRam[cnt] = 0;
  }
  return BLT_TRUE;
}