/* Opens a file and copies its content to a buffer.  */
uint32_t Storage_CheckBitmapFile(const char *BmpName, uint32_t *FileLen)
/* Opens a file and copies its content to a buffer.  */
uint32_t Storage_CheckBitmapFile(const char *BmpName, uint32_t *FileLen)
{
  uint32_t err = 0;
  if(f_open(&MyFile, BmpName, FA_READ) != FR_OK)
  {
    err = 1;
  }
  else
  {
    if(f_close(&MyFile) != FR_OK)
    {
      err = 1;
    }
  }
  return err;
}