* This chip is a parallel USB interface with data flow control.
* A kfile-like interface is supplied.
*
- * \version $Id$
* \author Francesco Sacchi <batt@develer.com>
*/
#include <cfg/macros.h>
#include <cfg/debug.h>
#include <cfg/module.h>
+
#include <drv/timer.h>
-#include <kern/kfile.h>
+
+#include <io/kfile.h>
#include <string.h>
*/
static size_t ft245rl_read(struct KFile *_fd, void *_buf, size_t size)
{
- Ft245rl *fd = FT245RL(_fd);
+ Ft245rl *fd = FT245RL_CAST(_fd);
(void)fd; //unused
uint8_t *buf = (uint8_t *)_buf;
size_t total_read = 0;
*/
static size_t ft245rl_write(struct KFile *_fd, const void *_buf, size_t size)
{
- Ft245rl *fd = FT245RL(_fd);
+ Ft245rl *fd = FT245RL_CAST(_fd);
(void)fd; //unused
const uint8_t *buf = (const uint8_t *)_buf;
size_t total_write = 0;