You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2022/09/27 06:32:50 UTC

[mynewt-nimble] branch master updated: porting/examples: Fix build error

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d21a386e porting/examples: Fix build error
d21a386e is described below

commit d21a386e96508928a78a533fedfe6d2497800461
Author: Hang Fan <fa...@xiaomi.com>
AuthorDate: Tue Sep 27 12:37:21 2022 +0800

    porting/examples: Fix build error
    
    Add default macro of MYNEWT_VAL_BLE_L2CAP_COC_SDU_BUFF_COUNT
    to avoid build error.
---
 porting/examples/linux/include/syscfg/syscfg.h         | 4 ++++
 porting/examples/linux_blemesh/include/syscfg/syscfg.h | 4 ++++
 porting/examples/nuttx/include/syscfg/syscfg.h         | 4 ++++
 porting/nimble/include/syscfg/syscfg.h                 | 4 ++++
 porting/npl/riot/include/syscfg/syscfg.h               | 4 ++++
 5 files changed, 20 insertions(+)

diff --git a/porting/examples/linux/include/syscfg/syscfg.h b/porting/examples/linux/include/syscfg/syscfg.h
index 3ba53c20..cfffe638 100644
--- a/porting/examples/linux/include/syscfg/syscfg.h
+++ b/porting/examples/linux/include/syscfg/syscfg.h
@@ -723,6 +723,10 @@
 #define MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC (0)
 #endif
 
+#ifndef MYNEWT_VAL_BLE_L2CAP_COC_SDU_BUFF_COUNT
+#define MYNEWT_VAL_BLE_L2CAP_COC_SDU_BUFF_COUNT (1)
+#endif
+
 #ifndef MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS
 #define MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS (1)
 #endif
diff --git a/porting/examples/linux_blemesh/include/syscfg/syscfg.h b/porting/examples/linux_blemesh/include/syscfg/syscfg.h
index 019cafac..a7cc7de5 100644
--- a/porting/examples/linux_blemesh/include/syscfg/syscfg.h
+++ b/porting/examples/linux_blemesh/include/syscfg/syscfg.h
@@ -724,6 +724,10 @@
 #define MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC (0)
 #endif
 
+#ifndef MYNEWT_VAL_BLE_L2CAP_COC_SDU_BUFF_COUNT
+#define MYNEWT_VAL_BLE_L2CAP_COC_SDU_BUFF_COUNT (1)
+#endif
+
 #ifndef MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS
 #define MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS (1)
 #endif
diff --git a/porting/examples/nuttx/include/syscfg/syscfg.h b/porting/examples/nuttx/include/syscfg/syscfg.h
index 040a1b3d..b257c9f9 100644
--- a/porting/examples/nuttx/include/syscfg/syscfg.h
+++ b/porting/examples/nuttx/include/syscfg/syscfg.h
@@ -723,6 +723,10 @@
 #define MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC (0)
 #endif
 
+#ifndef MYNEWT_VAL_BLE_L2CAP_COC_SDU_BUFF_COUNT
+#define MYNEWT_VAL_BLE_L2CAP_COC_SDU_BUFF_COUNT (1)
+#endif
+
 #ifndef MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS
 #define MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS (1)
 #endif
diff --git a/porting/nimble/include/syscfg/syscfg.h b/porting/nimble/include/syscfg/syscfg.h
index 7eb0856d..6f8710be 100644
--- a/porting/nimble/include/syscfg/syscfg.h
+++ b/porting/nimble/include/syscfg/syscfg.h
@@ -722,6 +722,10 @@
 #define MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC (0)
 #endif
 
+#ifndef MYNEWT_VAL_BLE_L2CAP_COC_SDU_BUFF_COUNT
+#define MYNEWT_VAL_BLE_L2CAP_COC_SDU_BUFF_COUNT (1)
+#endif
+
 #ifndef MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS
 #define MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS (1)
 #endif
diff --git a/porting/npl/riot/include/syscfg/syscfg.h b/porting/npl/riot/include/syscfg/syscfg.h
index c4055db2..280fac61 100644
--- a/porting/npl/riot/include/syscfg/syscfg.h
+++ b/porting/npl/riot/include/syscfg/syscfg.h
@@ -1503,6 +1503,10 @@
 #define MYNEWT_VAL_BLE_L2CAP_ENHANCED_COC (0)
 #endif
 
+#ifndef MYNEWT_VAL_BLE_L2CAP_COC_SDU_BUFF_COUNT
+#define MYNEWT_VAL_BLE_L2CAP_COC_SDU_BUFF_COUNT (1)
+#endif
+
 #ifndef MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS
 #define MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS (1)
 #endif