mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Misc changes to get a clean compilation after incorporating all of Bob Doison's changes
This commit is contained in:
@@ -4,4 +4,10 @@
|
||||
#
|
||||
|
||||
if ARCH_BOARD_SAM4S_XPLAINED_PRO
|
||||
|
||||
config SAM4S_XPLAINED_PRO_CDCACM_DEVMINOR
|
||||
int "CDC/ACM Device Minor"
|
||||
default 0
|
||||
depends on SAM34_UDP && USBDEV && CDCACM
|
||||
|
||||
endif
|
||||
|
||||
@@ -341,6 +341,7 @@ CONFIG_NSH_MMCSDSLOTNO=0
|
||||
#
|
||||
# Board-Specific Options
|
||||
#
|
||||
CONFIG_SAM4S_XPLAINED_PRO_CDCACM_DEVMINOR=0
|
||||
|
||||
#
|
||||
# RTOS Features
|
||||
@@ -574,7 +575,6 @@ CONFIG_ARCH_USBDEV_STALLQUEUE=y
|
||||
# CONFIG_USBDEV_COMPOSITE is not set
|
||||
# CONFIG_PL2303 is not set
|
||||
CONFIG_CDCACM=y
|
||||
CONFIG_CDCACM_DEVMINOR=0
|
||||
# CONFIG_CDCACM_CONSOLE is not set
|
||||
CONFIG_CDCACM_EP0MAXPACKET=64
|
||||
CONFIG_CDCACM_EPINTIN=1
|
||||
@@ -747,6 +747,8 @@ CONFIG_BUILTIN_PROXY_STACKSIZE=1024
|
||||
# CONFIG_EXAMPLES_CAN is not set
|
||||
# CONFIG_EXAMPLES_CONFIGDATA is not set
|
||||
CONFIG_EXAMPLES_CPUHOG=y
|
||||
CONFIG_EXAMPLES_CPUHOG_STACKSIZE=2048
|
||||
CONFIG_EXAMPLES_CPUHOG_PRIORITY=50
|
||||
# CONFIG_EXAMPLES_CXXTEST is not set
|
||||
# CONFIG_EXAMPLES_DHCPD is not set
|
||||
# CONFIG_EXAMPLES_ELF is not set
|
||||
@@ -783,6 +785,8 @@ CONFIG_EXAMPLES_NSH_CXXINITIALIZE=y
|
||||
# CONFIG_EXAMPLES_SENDMAIL is not set
|
||||
CONFIG_EXAMPLES_SERIALBLASTER=y
|
||||
CONFIG_EXAMPLES_SERIALRX=y
|
||||
CONFIG_EXAMPLES_SERIALRX_STACKSIZE=2048
|
||||
CONFIG_EXAMPLES_SERIALRX_PRIORITY=50
|
||||
# CONFIG_EXAMPLES_SERLOOP is not set
|
||||
# CONFIG_EXAMPLES_SLCD is not set
|
||||
# CONFIG_EXAMPLES_SMART_TEST is not set
|
||||
|
||||
@@ -73,7 +73,7 @@ CSRCS += sam_wdt.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_TIMER),y)
|
||||
CSRCS += sam_tc.c
|
||||
# CSRCS += sam_tc.c
|
||||
endif
|
||||
|
||||
COBJS = $(CSRCS:.c=$(OBJEXT))
|
||||
|
||||
@@ -108,7 +108,7 @@ int nsh_archinitialize(void)
|
||||
|
||||
#ifdef HAVE_USBDEV
|
||||
message("Registering CDC/ACM serial driver\n");
|
||||
ret = cdcacm_initialize(CONFIG_CDCACM_DEVMINOR, NULL);
|
||||
ret = cdcacm_initialize(CONFIG_SAM4S_XPLAINED_PRO_CDCACM_DEVMINOR, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
message("ERROR: Failed to create the CDC/ACM serial device: %d\n", errno);
|
||||
|
||||
Reference in New Issue
Block a user