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

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 1ff26fd87 tinyusb/cdc: Fix missing include file
1ff26fd87 is described below

commit 1ff26fd8788dd6ef16ee9c1813e2a1c1c7ba7530
Author: Jerzy Kasenberg <jerzy.kasenb...@codecoup.pl>
AuthorDate: Tue May 30 19:07:10 2023 +0200

    tinyusb/cdc: Fix missing include file
    
    cdc.c missed inclusion of os.h.
    In come BSP's when CDC was built following error happened:
    
    error: repos/apache-mynewt-core/hw/usb/tinyusb/cdc/src/cdc.c: In function 
'cdc_itf_add':
    repos/apache-mynewt-core/hw/usb/tinyusb/cdc/src/cdc.c:99:5: error: implicit 
declaration of function 'OS_ENTER_CRITICAL' 
[-Werror=implicit-function-declaration]
---
 hw/usb/tinyusb/cdc/src/cdc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/usb/tinyusb/cdc/src/cdc.c b/hw/usb/tinyusb/cdc/src/cdc.c
index ac7f2a1ef..5e57127dc 100644
--- a/hw/usb/tinyusb/cdc/src/cdc.c
+++ b/hw/usb/tinyusb/cdc/src/cdc.c
@@ -18,6 +18,7 @@
  */
 
 #include <assert.h>
+#include <os/os.h>
 #include <cdc/cdc.h>
 
 static cdc_itf_t *cdc_itfs[CFG_TUD_CDC];

Reply via email to