diff options
Diffstat (limited to 'firmware/target/arm/usb-tcc.c')
-rw-r--r-- | firmware/target/arm/usb-tcc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/usb-tcc.c b/firmware/target/arm/usb-tcc.c index aa4c2e4226..6f15e68af8 100644 --- a/firmware/target/arm/usb-tcc.c +++ b/firmware/target/arm/usb-tcc.c | |||
@@ -122,7 +122,7 @@ void usb_drv_release_endpoint(int ep) | |||
122 | int flags; | 122 | int flags; |
123 | ep = ep & 0x7f; | 123 | ep = ep & 0x7f; |
124 | 124 | ||
125 | if (ep < 1 || ep > NUM_ENDPOINTS) | 125 | if (ep < 1 || ep > USB_NUM_ENDPOINTS) |
126 | return ; | 126 | return ; |
127 | 127 | ||
128 | flags = disable_irq_save(); | 128 | flags = disable_irq_save(); |
@@ -744,6 +744,10 @@ void usb_enable(bool on) | |||
744 | usb_core_exit(); | 744 | usb_core_exit(); |
745 | } | 745 | } |
746 | 746 | ||
747 | void usb_attach(void) | ||
748 | { | ||
749 | usb_enable(true); | ||
750 | } | ||
747 | 751 | ||
748 | int usb_detect(void) | 752 | int usb_detect(void) |
749 | { | 753 | { |