mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Removed to unnecessary, cloned USB-related logic
This commit is contained in:
@@ -103,9 +103,9 @@ void lpc31_boardinitialize(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize USB if the 1) the HS host or device controller is in the
|
/* Initialize USB if the 1) the HS host or device controller is in the
|
||||||
* configuration and 2) the weak function sam_usbinitialize() has been brought
|
* configuration and 2) the weak function lpc31_usbhost_bootinitialize() has
|
||||||
* into the build. Presumeably either CONFIG_USBDEV or CONFIG_USBHOST is also
|
* been brought into the build. Presumably either CONFIG_USBDEV or CONFIG_USBHOST
|
||||||
* selected.
|
* is also selected.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_SAMA5_UHPHS) || defined(CONFIG_SAMA5_UDPHS)
|
#if defined(CONFIG_SAMA5_UHPHS) || defined(CONFIG_SAMA5_UDPHS)
|
||||||
|
|||||||
@@ -102,9 +102,9 @@ void lpc31_boardinitialize(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize USB if the 1) the HS host or device controller is in the
|
/* Initialize USB if the 1) the HS host or device controller is in the
|
||||||
* configuration and 2) the weak function sam_usbinitialize() has been brought
|
* configuration and 2) the weak function lpc31_usbhost_bootinitialize() has
|
||||||
* into the build. Presumeably either CONFIG_USBDEV or CONFIG_USBHOST is also
|
* been brought into the build. Presumably either CONFIG_USBDEV or
|
||||||
* selected.
|
* CONFIG_USBHOST is also selected.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_USBHOST
|
#ifdef HAVE_USBHOST
|
||||||
|
|||||||
@@ -221,16 +221,6 @@
|
|||||||
|
|
||||||
void weak_function sam_spiinitialize(void);
|
void weak_function sam_spiinitialize(void);
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Name: sam_usbinitialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Called to setup USB-related GPIO pins for the SAM3U-EK board.
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
void weak_function sam_usbinitialize(void);
|
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: sam_hsmciinit
|
* Name: sam_hsmciinit
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -81,18 +81,6 @@ void sam_boardinitialize(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize USB if 1) USBDEV is selected, 2) the USB controller is not
|
|
||||||
* disabled, and 3) the weak function sam_usbinitialize() has been brought
|
|
||||||
* into the build.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if defined(CONFIG_USBDEV) && defined(CONFIG_SAM34_USB)
|
|
||||||
if (sam_usbinitialize)
|
|
||||||
{
|
|
||||||
sam_usbinitialize();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
|
|||||||
@@ -62,35 +62,6 @@
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Name: sam_usbinitialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Called to setup USB-related GPIO pins for the SAM3U-EK board.
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
void sam_usbinitialize(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Name: sam_usbpullup
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* If USB is supported and the board supports a pullup via GPIO (for USB software
|
|
||||||
* connect and disconnect), then the board software must provide sam_pullup.
|
|
||||||
* See include/nuttx/usb/usbdev.h for additional description of this method.
|
|
||||||
* Alternatively, if no pull-up GPIO the following EXTERN can be redefined to be
|
|
||||||
* NULL.
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
int sam_usbpullup(FAR struct usbdev_s *dev, bool enable)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: sam_usbsuspend
|
* Name: sam_usbsuspend
|
||||||
*
|
*
|
||||||
@@ -106,4 +77,3 @@ void sam_usbsuspend(FAR struct usbdev_s *dev, bool resume)
|
|||||||
{
|
{
|
||||||
ulldbg("resume: %d\n", resume);
|
ulldbg("resume: %d\n", resume);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ CFLAGS += -I$(TOPDIR)/sched
|
|||||||
ASRCS =
|
ASRCS =
|
||||||
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
||||||
|
|
||||||
CSRCS = sam_boot.c sam_leds.c sam_buttons.c sam_usbdev.c
|
CSRCS = sam_boot.c sam_leds.c sam_buttons.c sam_udp.c
|
||||||
|
|
||||||
ifeq ($(CONFIG_HAVE_CXXINITIALIZE),y)
|
ifeq ($(CONFIG_HAVE_CXXINITIALIZE),y)
|
||||||
CSRCS += sam_cxxinitialize.c
|
CSRCS += sam_cxxinitialize.c
|
||||||
|
|||||||
@@ -393,16 +393,6 @@
|
|||||||
|
|
||||||
void weak_function sam_spiinitialize(void);
|
void weak_function sam_spiinitialize(void);
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Name: sam_usbinitialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Called to setup USB-related GPIO pins for the SAM4E-EK board.
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
void weak_function sam_usbinitialize(void);
|
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: sam_hsmci_initialize
|
* Name: sam_hsmci_initialize
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -110,18 +110,6 @@ void sam_boardinitialize(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize USB if 1) USBDEV is selected, 2) the USB controller is not
|
|
||||||
* disabled, and 3) the weak function sam_usbinitialize() has been brought
|
|
||||||
* into the build.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if defined(CONFIG_USBDEV) && defined(CONFIG_SAM34_UDP)
|
|
||||||
if (sam_usbinitialize)
|
|
||||||
{
|
|
||||||
sam_usbinitialize();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* configs/sam4e-ek/src/sam_usbdev.c
|
* configs/sam4e-ek/src/sam_udp.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
@@ -62,35 +62,6 @@
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Name: sam_usbinitialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Called to setup USB-related GPIO pins for the SAM4E-EK board.
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
void sam_usbinitialize(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Name: sam_usbpullup
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* If USB is supported and the board supports a pullup via GPIO (for USB software
|
|
||||||
* connect and disconnect), then the board software must provide sam_pullup.
|
|
||||||
* See include/nuttx/usb/usbdev.h for additional description of this method.
|
|
||||||
* Alternatively, if no pull-up GPIO the following EXTERN can be redefined to be
|
|
||||||
* NULL.
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
int sam_usbpullup(FAR struct usbdev_s *dev, bool enable)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: sam_udp_suspend
|
* Name: sam_udp_suspend
|
||||||
*
|
*
|
||||||
Reference in New Issue
Block a user