This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 1381c1b2687 boards/stm32h7: nucleo-h743zi: fix implicit declaration of
cdcacm_initialize
1381c1b2687 is described below
commit 1381c1b26877efa181efc99b7322ddfee4096e79
Author: Sarthak Pandey <[email protected]>
AuthorDate: Mon Oct 12 01:18:40 2026 +0530
boards/stm32h7: nucleo-h743zi: fix implicit declaration of cdcacm_initialize
When CONFIG_CDCACM is enabled, stm32_bringup() calls cdcacm_initialize(0,
NULL).
However, nuttx/usb/cdcacm.h was not included, causing a compiler error:
'implicit declaration of function cdcacm_initialize'.
Include nuttx/usb/cdcacm.h under CONFIG_CDCACM to provide the function
prototype.
Fixes: #16757
Signed-off-by: Sarthak Pandey <[email protected]>
---
boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c
b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c
index fccb5081ffa..ed614922c43 100644
--- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c
+++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c
@@ -71,6 +71,10 @@
# include <nuttx/usb/rndis.h>
#endif
+#ifdef CONFIG_CDCACM
+# include <nuttx/usb/cdcacm.h>
+#endif
+
#include "stm32_gpio.h"
/****************************************************************************