/* Gets the page number of the address relative to the bank.  */
static blt_int32u FlashGetPage(blt_addr address)
/* Gets the page number of the address relative to the bank.  */
static blt_int32u FlashGetPage(blt_addr address)
{
  blt_int32u page = 0;
  if (address < (FLASH_BASE + FLASH_BANK_SIZE))
  {
    page = (address - FLASH_BASE) / FLASH_PAGE_SIZE;
  }
  else
  {
    page = (address - (FLASH_BASE + FLASH_BANK_SIZE)) / FLASH_PAGE_SIZE;
  }
  return page;
}