summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 9fd18187b3..ad4f2b9325 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -41,6 +41,9 @@
41#ifdef HAVE_MMC 41#ifdef HAVE_MMC
42#include "ata_mmc.h" 42#include "ata_mmc.h"
43#endif 43#endif
44#ifdef TARGET_TREE
45#include "usb-target.h"
46#endif
44 47
45extern void dbg_ports(void); /* NASTY! defined in apps/ */ 48extern void dbg_ports(void); /* NASTY! defined in apps/ */
46 49
@@ -99,6 +102,7 @@ static struct event_queue usb_queue;
99static bool last_usb_status; 102static bool last_usb_status;
100static bool usb_monitor_enabled; 103static bool usb_monitor_enabled;
101 104
105#ifndef TARGET_TREE
102void usb_enable(bool on) 106void usb_enable(bool on)
103{ 107{
104#ifdef USB_ENABLE_ONDIOSTYLE 108#ifdef USB_ENABLE_ONDIOSTYLE
@@ -203,6 +207,7 @@ void usb_enable(bool on)
203 or_b(0x04, &PAIORH); 207 or_b(0x04, &PAIORH);
204#endif 208#endif
205} 209}
210#endif
206 211
207#ifndef BOOTLOADER 212#ifndef BOOTLOADER
208static void usb_slave_mode(bool on) 213static void usb_slave_mode(bool on)
@@ -381,6 +386,7 @@ static void usb_thread(void)
381} 386}
382#endif 387#endif
383 388
389#ifndef TARGET_TREE
384bool usb_detect(void) 390bool usb_detect(void)
385{ 391{
386 bool current_status; 392 bool current_status;
@@ -414,6 +420,7 @@ bool usb_detect(void)
414#endif 420#endif
415 return current_status; 421 return current_status;
416} 422}
423#endif
417 424
418#ifndef BOOTLOADER 425#ifndef BOOTLOADER
419static void usb_tick(void) 426static void usb_tick(void)