*
* Module provide a kfile interface, that ensure an abstraction
* from comunication channel and give a standard interface.
*
* Module provide a kfile interface, that ensure an abstraction
* from comunication channel and give a standard interface.
#warning FIXME:This file was change, but is untest!
/**
* Wait until flash memory is ready.
*/
#warning FIXME:This file was change, but is untest!
/**
* Wait until flash memory is ready.
*/
* try to read manufacturer id of serial memory,
* then check if is equal to selected type.
*/
* try to read manufacturer id of serial memory,
* then check if is equal to selected type.
*/
ASSERT(fd->fd.seek_pos + (kfile_size_t)size <= fd->fd.size);
size = MIN((kfile_size_t)size, fd->fd.size - fd->fd.seek_pos);
ASSERT(fd->fd.seek_pos + (kfile_size_t)size <= fd->fd.size);
size = MIN((kfile_size_t)size, fd->fd.size - fd->fd.seek_pos);