/* Copies data currently in flash to the block->data and sets the base address.  */
static blt_bool FlashInitBlock(tFlashBlockInfo *block, blt_addr address)
/* Copies data currently in flash to the block->data and sets the base address.  */
static blt_bool FlashInitBlock(tFlashBlockInfo *block, blt_addr address)
{
  blt_bool result = BLT_TRUE;
  if ((address % FLASH_WRITE_BLOCK_SIZE) != 0)
  {
    result = BLT_FALSE;
  }
  if (result == BLT_TRUE)
  {
    if (block->base_addr != address)
    {
      block->base_addr = address;
      CpuMemCopy((blt_addr)block->data, address, FLASH_WRITE_BLOCK_SIZE);
    }
  }
  return result;
}