configs/pnev5180b/usbnsh-cdcecm: This new configuration includes a USB Composite Device with both CDC/ACM and CDC/ECM. NuttShell provides a terminal via CDC/ACM. A network interface (eth0) is provided via CDC/ECM.

This commit is contained in:
Michael Jung 2019-06-29 11:29:42 -06:00 committed by Gregory Nutt
parent 2dd1b330e5
commit 61f3881132
3 changed files with 54 additions and 6 deletions

View file

@ -106,3 +106,8 @@ Where <subdir> is one of the following:
nsh-cdcecm:
Configures the NuttShell (nsh) to provide a terminal on UART0. The
Configuration also provides network interface eth0 via CDC/ECM.
usbnsh-cdcecm:
This configuration includes a USB Composite Device with both CDC/ACM and
CDC/ECM. NuttShell provides a terminal via CDC/ACM. A network interface
(eth0) is also provided via CDC/ECM.

View file

@ -135,7 +135,7 @@ int pnev5180b_bringup(void)
}
#endif
#ifndef CONFIG_BOARDCTL_USBDEVCTRL
#if !defined(CONFIG_BOARDCTL_USBDEVCTRL) && !defined(CONFIG_USBDEV_COMPOSITE)
# ifdef CONFIG_CDCACM
ret = cdcacm_initialize(0, NULL);
if (ret < 0)
@ -145,7 +145,7 @@ int pnev5180b_bringup(void)
}
# endif
# if defined(CONFIG_NET_CDCECM) && !defined(CONFIG_CDCECM_COMPOSITE)
# ifdef CONFIG_NET_CDCECM
ret = cdcecm_initialize(0, NULL);
if (ret < 0)
{
@ -153,12 +153,12 @@ int pnev5180b_bringup(void)
goto done;
}
# endif
# if defined(CONFIG_CDCECM_COMPOSITE)
board_composite_connect(0, 0);
# endif
#endif /* CONFIG_BOARDCTL_USBDEVCTRL */
#if defined(CONFIG_USBDEV_COMPOSITE)
board_composite_connect(0, 0);
#endif
#ifdef CONFIG_USBMONITOR
ret = usbmonitor_start();
if (ret != OK)

View file

@ -0,0 +1,43 @@
#
# This file is autogenerated: PLEASE DO NOT EDIT IT.
#
# You can use "make menuconfig" to make any modifications to the installed .config file.
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="pnev5180b"
CONFIG_ARCH_BOARD_PNEV5180B=y
CONFIG_ARCH_CHIP_LPC1769=y
CONFIG_ARCH_CHIP_LPC17XX=y
CONFIG_BOARD_LOOPSPERMSEC=11992
CONFIG_BUILTIN=y
CONFIG_CDCACM=y
CONFIG_CDCACM_COMPOSITE=y
CONFIG_CDCACM_CONSOLE=y
CONFIG_CDCECM_COMPOSITE=y
CONFIG_COMPOSITE_IAD=y
CONFIG_FS_BINFS=y
CONFIG_FS_PROCFS=y
CONFIG_LPC17_UART0=y
CONFIG_LPC17_USBDEV=y
CONFIG_LPC17_USBDEV_NOVBUS=y
CONFIG_MM_REGIONS=2
CONFIG_NETINIT_NOMAC=y
CONFIG_NET_CDCECM=y
CONFIG_NET_ICMP=y
CONFIG_NET_ICMP_SOCKET=y
CONFIG_NET_SOCKOPTS=y
CONFIG_NET_TCP=y
CONFIG_NET_UDP=y
CONFIG_NSH_ARCHINIT=y
CONFIG_NSH_BUILTIN_APPS=y
CONFIG_NSH_USBCONSOLE=y
CONFIG_OTHER_SERIAL_CONSOLE=y
CONFIG_RAM_SIZE=32768
CONFIG_RAM_START=0x10000000
CONFIG_SCHED_LPWORK=y
CONFIG_SYSTEM_NSH=y
CONFIG_SYSTEM_PING=y
CONFIG_USBDEV_COMPOSITE=y
CONFIG_USER_ENTRYPOINT="nsh_main"