diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-01-29 00:44:59 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-01-29 00:44:59 +0000 |
commit | 3f709eada2d67418971ec1c5d907a06ba9161200 (patch) | |
tree | 0f9b49d23230904b1cc8f7f60684ed78d2a52b57 /firmware/export/config.h | |
parent | 70b99e3e2c8e27da87d045f1aaea47c9477b5f7f (diff) | |
download | rockbox-3f709eada2d67418971ec1c5d907a06ba9161200.tar.gz rockbox-3f709eada2d67418971ec1c5d907a06ba9161200.zip |
Convert AMS target USB detection to event-based (no more polling in a tick). Seems well on my Clip v1 and Fuze v2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29156 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r-- | firmware/export/config.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index f5ee003308..d59b259fb9 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -721,15 +721,19 @@ Lyre prototype 1 */ | |||
721 | 721 | ||
722 | #define HAVE_SEMAPHORE_OBJECTS | 722 | #define HAVE_SEMAPHORE_OBJECTS |
723 | 723 | ||
724 | #if defined(HAVE_USBSTACK) && CONFIG_USBOTG == USBOTG_ARC | 724 | #ifdef HAVE_USBSTACK |
725 | #if CONFIG_USBOTG == USBOTG_ARC | ||
725 | #define USB_STATUS_BY_EVENT | 726 | #define USB_STATUS_BY_EVENT |
726 | #define USB_DETECT_BY_DRV | 727 | #define USB_DETECT_BY_DRV |
727 | #define INCLUDE_TIMEOUT_API | 728 | #define INCLUDE_TIMEOUT_API |
728 | #endif /* HAVE_USBSTACK && USBOTG_ARC */ | 729 | #elif CONFIG_USBOTG == USBOTG_AS3525 |
729 | 730 | #define USB_STATUS_BY_EVENT | |
730 | #if defined(HAVE_USBSTACK) && CONFIG_USBOTG == USBOTG_AS3525 | ||
731 | #define USB_DETECT_BY_DRV | 731 | #define USB_DETECT_BY_DRV |
732 | #endif /* HAVE_USBSTACK && USBOTG_AS3525 */ | 732 | #elif CONFIG_USBOTG == USBOTG_AS3525v2 |
733 | #define USB_STATUS_BY_EVENT | ||
734 | #define USB_DETECT_BY_CORE | ||
735 | #endif /* CONFIG_USB == */ | ||
736 | #endif /* HAVE_USBSTACK */ | ||
733 | 737 | ||
734 | #endif /* BOOTLOADER */ | 738 | #endif /* BOOTLOADER */ |
735 | 739 | ||