diff options
Diffstat (limited to 'nuttx/configs/sama5d3x-ek/src/sam_nsh.c')
-rw-r--r-- | nuttx/configs/sama5d3x-ek/src/sam_nsh.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/nuttx/configs/sama5d3x-ek/src/sam_nsh.c b/nuttx/configs/sama5d3x-ek/src/sam_nsh.c index 648a015a6..def866297 100644 --- a/nuttx/configs/sama5d3x-ek/src/sam_nsh.c +++ b/nuttx/configs/sama5d3x-ek/src/sam_nsh.c @@ -46,12 +46,8 @@ #include <errno.h> #include <debug.h> -#ifdef CONFIG_SAMA5_SPI0 -# include <nuttx/spi/spi.h> -# include <nuttx/mtd.h> -# include <nuttx/fs/nxffs.h> - -# include "sam_spi.h" +#ifdef CONFIG_SYSTEM_USBMONITOR +# include <apps/usbmonitor.h> #endif #include "sama5d3x-ek.h" @@ -118,7 +114,8 @@ int nsh_archinitialize(void) { -#if defined(HAVE_AT25_MTD) || defined(HAVE_HSMCI_MTD) || defined(HAVE_USBHOST) +#if defined(HAVE_AT25_MTD) || defined(HAVE_HSMCI_MTD) || defined(HAVE_USBHOST) || \ + defined(HAVE_USBMONITOR) int ret; #endif @@ -168,5 +165,15 @@ int nsh_archinitialize(void) } #endif +#ifdef HAVE_USBMONITOR + /* Start the USB Monitor */ + + ret = usbmonitor_start(0, NULL); + if (ret != OK) + { + message("nsh_archinitialize: Start USB monitor: %d\n", ret); + } +#endif + return OK; } |