#include "syscalls.h" #include #include "ehci_types.h" #include "usb.h" #include "ehci.h" static int heap=-1; void ehci_usleep(int usec); void ehci_msleep(int msec); extern u8 heap_space2[0xe000]; int usb_os_init(void) { heap = os_heap_create(heap_space2, 0xe000); //heap = os_heap_create((void*)0x13890000, 0x8000); if(heap<0) { return -1; } return 0; } void read_cache_data(char *in, int len) { int n; char t; for(n=0;n