Subversion Repositories freemyipod

Rev

Rev 427 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 427 Rev 429
Line 46... Line 46...
46
    struct wakeup complete;
46
    struct wakeup complete;
47
} ;
47
} ;
48
 
48
 
49
static struct ep_type endpoints[5];
49
static struct ep_type endpoints[5];
50
static struct usb_ctrlrequest ctrlreq CACHEALIGN_ATTR;
50
static struct usb_ctrlrequest ctrlreq CACHEALIGN_ATTR;
-
 
51
static struct scheduler_thread synopsysotg_thread_handle;
51
static uint32_t synopsysotg_stack[0x40] STACK_ATTR;
52
static uint32_t synopsysotg_stack[0x40] STACK_ATTR;
52
 
53
 
53
int usb_drv_port_speed(void)
54
int usb_drv_port_speed(void)
54
{
55
{
55
    return (DSTS & 2) == 0 ? 1 : 0;
56
    return (DSTS & 2) == 0 ? 1 : 0;
Line 403... Line 404...
403
    PCGCCTL = 0;
404
    PCGCCTL = 0;
404
 
405
 
405
    /* unmask irq */
406
    /* unmask irq */
406
    interrupt_enable(IRQ_USB_FUNC, true);
407
    interrupt_enable(IRQ_USB_FUNC, true);
407
 
408
 
408
    thread_create("synopsysotg", usb_check_vbus, synopsysotg_stack,
409
    thread_create(&synopsysotg_thread_handle, "synopsysotg", usb_check_vbus,
409
                  sizeof(synopsysotg_stack), OS_THREAD, 63, true);
410
                  synopsysotg_stack, sizeof(synopsysotg_stack), OS_THREAD, 63, true);
410
 
411
 
411
    usb_drv_power_down();
412
    usb_drv_power_down();
412
}
413
}
413
 
414
 
414
void usb_drv_exit(void)
415
void usb_drv_exit(void)