/* Check if an address is valid for the nand flash device.  */
bool NANDFLASH_AddressValid(uint32_t address)
/* Check if an address is valid for the nand flash device.  */
bool NANDFLASH_AddressValid(uint32_t address)
{
  if (flashInitialized)
  {
    if ((address >= flashInfo.baseAddress) &&
        (address < (flashInfo.baseAddress + flashInfo.deviceSize)))
    {
      return true;
    }
  }
  return false;
}