/* Reads data from the specified address on the serial flash.  */
uint8_t s25fl1xx_read_quad(struct qspid_t *qspid, uint32_t *data, uint32_t size, uint32_t address)
/* Reads data from the specified address on the serial flash.  */
uint8_t s25fl1xx_read_quad(struct qspid_t *qspid, uint32_t *data, uint32_t size, uint32_t address)
{
	uint8_t secure = 0;
	mem->inst_frame.bm.b_dummy_cycles  = 8;
	mem->inst_frame.bm.b_width = QSPI_IFR_WIDTH_QUAD_OUTPUT;
	s25fl1xx_memory_access(qspid, S25FL1XX_READ_ARRAY_QUAD,  address, 0, data, QSPI_READ_ACCESS, size, secure);
	return 0;
}