This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch releases/13.1
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/releases/13.1 by this push:
new 794b4fbb053 boards/stm32h7: nucleo-h743zi: fix implicit declaration of
cdcacm_initialize
794b4fbb053 is described below
commit 794b4fbb053669bf4fc385ee9a228b3f3b0f9a51
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 ac08dece22d..690bf28e0ae 100644
--- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c
+++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c
@@ -70,6 +70,10 @@
# include <nuttx/usb/rndis.h>
#endif
+#ifdef CONFIG_CDCACM
+# include <nuttx/usb/cdcacm.h>
+#endif
+
#include "stm32_gpio.h"
/****************************************************************************