/* Reads a block of data from the FLASH.  */
void sFLASH_ReadBuffer(uint8_t *pBuffer, uint32_t ReadAddr, uint16_t NumByteToRead)
/* Reads a block of data from the FLASH.  */
void sFLASH_ReadBuffer(uint8_t *pBuffer, uint32_t ReadAddr, uint16_t NumByteToRead)
{
  sFLASH_CS_LOW();
  sFLASH_SendByte(sFLASH_CMD_READ);
  sFLASH_SendByte((ReadAddr & 0xFF0000) >> 16);
  sFLASH_SendByte((ReadAddr& 0xFF00) >> 8);
  sFLASH_SendByte(ReadAddr & 0xFF);
  while (NumByteToRead--)
  {
    *pBuffer = sFLASH_SendByte(sFLASH_DUMMY_BYTE);
    pBuffer++;
  }
  sFLASH_CS_HIGH();
}