mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-28 22:14:58 +08:00
testsuite/usb01: Support multiple BSPs
This commit is contained in:
parent
a52104cf46
commit
d1822e55c0
@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2010 embedded brains GmbH. All rights reserved.
|
* Copyright (c) 2010-2012 embedded brains GmbH. All rights reserved.
|
||||||
*
|
*
|
||||||
* embedded brains GmbH
|
* embedded brains GmbH
|
||||||
* Obere Lagerstr. 30
|
* Obere Lagerstr. 30
|
||||||
@ -260,7 +260,7 @@ static void Init(rtems_task_argument arg)
|
|||||||
sc = rtems_media_server_initialize(200, 32 * 1024, RTEMS_DEFAULT_MODES, RTEMS_DEFAULT_ATTRIBUTES);
|
sc = rtems_media_server_initialize(200, 32 * 1024, RTEMS_DEFAULT_MODES, RTEMS_DEFAULT_ATTRIBUTES);
|
||||||
ASSERT_SC(sc);
|
ASSERT_SC(sc);
|
||||||
|
|
||||||
sc = rtems_bsd_initialize();
|
sc = rtems_bsd_initialize_with_interrupt_server();
|
||||||
ASSERT_SC(sc);
|
ASSERT_SC(sc);
|
||||||
|
|
||||||
rtems_bsd_shell_initialize();
|
rtems_bsd_shell_initialize();
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009, 2010 embedded brains GmbH. All rights reserved.
|
* Copyright (c) 2009-2012 embedded brains GmbH. All rights reserved.
|
||||||
*
|
*
|
||||||
* embedded brains GmbH
|
* embedded brains GmbH
|
||||||
* Obere Lagerstr. 30
|
* Obere Lagerstr. 30
|
||||||
@ -26,22 +26,40 @@
|
|||||||
|
|
||||||
#ifdef USB_SYSINIT_INIT
|
#ifdef USB_SYSINIT_INIT
|
||||||
|
|
||||||
|
#if defined(LIBBSP_ARM_LPC24XX_BSP_H) || defined(LIBBSP_ARM_LPC32XX_BSP_H)
|
||||||
|
#define NEED_USB_OHCI
|
||||||
|
#elif defined(__GEN83xx_BSP_h) || defined(LIBBSP_POWERPC_QORIQ_BSP_H)
|
||||||
|
#define NEED_USB_EHCI
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(LIBBSP_POWERPC_QORIQ_BSP_H)
|
||||||
|
#define NEED_SDHC
|
||||||
|
#endif
|
||||||
|
|
||||||
SYSINIT_NEED_FREEBSD_CORE;
|
SYSINIT_NEED_FREEBSD_CORE;
|
||||||
SYSINIT_NEED_USB_CORE;
|
SYSINIT_NEED_USB_CORE;
|
||||||
#if defined(LIBBSP_ARM_LPC24XX_BSP_H) || defined(LIBBSP_ARM_LPC32XX_BSP_H)
|
#ifdef NEED_USB_OHCI
|
||||||
SYSINIT_NEED_USB_OHCI;
|
SYSINIT_NEED_USB_OHCI;
|
||||||
#elif defined(__GEN83xx_BSP_h)
|
#endif
|
||||||
|
#ifdef NEED_USB_EHCI
|
||||||
SYSINIT_NEED_USB_EHCI;
|
SYSINIT_NEED_USB_EHCI;
|
||||||
#endif
|
#endif
|
||||||
SYSINIT_NEED_USB_MASS_STORAGE;
|
SYSINIT_NEED_USB_MASS_STORAGE;
|
||||||
|
#ifdef NEED_SDHC
|
||||||
|
SYSINIT_NEED_SDHC;
|
||||||
|
#endif
|
||||||
|
|
||||||
const char *const _bsd_nexus_devices [] = {
|
const char *const _bsd_nexus_devices [] = {
|
||||||
#if defined(LIBBSP_ARM_LPC24XX_BSP_H) || defined(LIBBSP_ARM_LPC32XX_BSP_H)
|
#ifdef NEED_USB_OHCI
|
||||||
"ohci",
|
"ohci",
|
||||||
#elif defined(__GEN83xx_BSP_h)
|
#endif
|
||||||
"ehci",
|
#ifdef NEED_USB_EHCI
|
||||||
#endif
|
"ehci",
|
||||||
NULL
|
#endif
|
||||||
|
#ifdef NEED_SDHC
|
||||||
|
"sdhci",
|
||||||
|
#endif
|
||||||
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* USB_SYSINIT_INIT */
|
#endif /* USB_SYSINIT_INIT */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user