*/
static KFile * flash25_reopen(struct KFile *_fd)
{
- Flash25 *fd = FLASH25KFILE(_fd);
+ Flash25 *fd = FLASH25_CAST(_fd);
fd->fd.seek_pos = 0;
fd->fd.size = FLASH25_MEM_SIZE;
{
uint8_t *data = (uint8_t *)buf;
- Flash25 *fd = FLASH25KFILE(_fd);
+ Flash25 *fd = FLASH25_CAST(_fd);
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);
flash25Size_t wr_len;
const uint8_t *data = (const uint8_t *) _buf;
- Flash25 *fd = FLASH25KFILE(_fd);
+ Flash25 *fd = FLASH25_CAST(_fd);
ASSERT(fd->fd.seek_pos + (kfile_size_t)size <= fd->fd.size);
/**
* Convert + ASSERT from generic KFile to Flash25.
*/
-INLINE Flash25 * FLASH25KFILE(KFile *fd)
+INLINE Flash25 * FLASH25_CAST(KFile *fd)
{
ASSERT(fd->_type == KFT_FLASH25);
return (Flash25 *)fd;