/* Check if the SerialFlash is valid. It will read the device id from the device and compare the value set in the configuration file.  */
at25_status_t at25dfx_mem_check(void)
/* Check if the SerialFlash is valid. It will read the device id from the device and compare the value set in the configuration file.  */
at25_status_t at25dfx_mem_check(void)
{
	uint32_t dev_id = 0x0;
	at25dfx_read_dev_id(&dev_id);
	if (dev_id == AT25DFX_DEV_ID) {
		return AT25_SUCCESS;
	} else {
		return AT25_ERROR_NOT_FOUND;
	}
}