* 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>
KFileFlash25 *fd = KFILEFLASH25(_fd);
ASSERT(fd->fd.seek_pos + size <= fd->fd.size);
- size = MIN((uint32_t)size, fd->fd.size - fd->fd.seek_pos);
+ 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);
CS_ENABLE();
ASSERT(fd->fd.seek_pos + size <= fd->fd.size);
- size = MIN((flash25Size_t)size, fd->fd.size - fd->fd.seek_pos);
+ size = MIN((kfile_size_t)size, fd->fd.size - fd->fd.seek_pos);
while (size)
{