* We use a spi bus, thus include hardware specific definition.
* If you use another channel you must redefine this macros.
*/
-#include "hw_spi.h"
-
-#include <appconfig.h>
+#include "hw/hw_spi.h"
#include <cfg/macros.h>
#include <cfg/debug.h>
#include <kern/proc.h>
#endif
-#warning this file was change, but is untest!
+#warning FIXME:This file was change, but is untest!
/**
* Wait until flash memory is ready.
KFileFlash25 *fd = KFILEFLASH25(_fd);
- ASSERT(fd->fd.seek_pos + size <= fd->fd.size);
+ 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);
//kprintf("Reading at addr[%lu], size[%d]\n", fd->seek_pos, size);
KFileFlash25 *fd = KFILEFLASH25(_fd);
- ASSERT(fd->fd.seek_pos + size <= fd->fd.size);
+ 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);