/* 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)
{
  if ((address % FLASH_WRITE_BLOCK_SIZE) != 0)
  {
    return BLT_FALSE;
  }
  if (block->base_addr == address)
  {
    return BLT_TRUE;
  }
  block->base_addr = address;
  CpuMemCopy((blt_addr)block->data, address, FLASH_WRITE_BLOCK_SIZE);
  return BLT_TRUE;
}