You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/12/17 08:53:26 UTC

[incubator-nuttx] 01/02: boards: stm32f4discovery: Call usbdev_adb_initialize() in stm32_bringup.c

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 9f586a604239cc2dedfc87a27c33db9332280e45
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Thu Dec 17 15:55:29 2020 +0900

    boards: stm32f4discovery: Call usbdev_adb_initialize() in stm32_bringup.c
    
    Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
 boards/arm/stm32/stm32f4discovery/src/stm32_bringup.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_bringup.c b/boards/arm/stm32/stm32f4discovery/src/stm32_bringup.c
index fedd8ec..0992baa 100644
--- a/boards/arm/stm32/stm32f4discovery/src/stm32_bringup.c
+++ b/boards/arm/stm32/stm32f4discovery/src/stm32_bringup.c
@@ -122,6 +122,10 @@
 #include "stm32_xen1210.h"
 #endif
 
+#ifdef CONFIG_USBADB
+#  include <nuttx/usb/adb.h>
+#endif
+
 /****************************************************************************
  * Public Functions
  ****************************************************************************/
@@ -526,5 +530,9 @@ int stm32_bringup(void)
     }
 #endif /* CONFIG_LPWAN_SX127X */
 
+#ifdef CONFIG_USBADB
+  usbdev_adb_initialize();
+#endif
+
   return ret;
 }