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 2023/07/14 01:49:56 UTC
[nuttx-apps] branch master updated (4df395bfc -> 5dba460f5)
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
from 4df395bfc cmake: add support for boot utils
new 355153cff examples/nimble: fix assertion during pthread create with zero priority
new 0c7788cf2 wireless/bluetooth/nimble: fix build issue with nimBLE example
new 4ac830ef1 wireless/bluetooth/nimble: add option to configure stack size of NimBLE NPL callout thread
new 5dba460f5 wireless/bluetooth/nimble: increase number of ACL buffers available for controller
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
examples/nimble/nimble_main.c | 4 ++--
wireless/bluetooth/nimble/Kconfig | 4 ++++
wireless/bluetooth/nimble/Makefile.nimble | 2 +-
wireless/bluetooth/nimble/include/syscfg/syscfg.h | 6 +++---
4 files changed, 10 insertions(+), 6 deletions(-)
[nuttx-apps] 03/04: wireless/bluetooth/nimble: add option to configure stack size of NimBLE NPL callout thread
Posted by xi...@apache.org.
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/nuttx-apps.git
commit 4ac830ef1eaf5383d91b7bca14fab79e3b454f71
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Thu Jul 13 23:24:03 2023 +0300
wireless/bluetooth/nimble: add option to configure stack size of NimBLE NPL callout thread
Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
wireless/bluetooth/nimble/Kconfig | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/wireless/bluetooth/nimble/Kconfig b/wireless/bluetooth/nimble/Kconfig
index 975e4723d..a583e3119 100644
--- a/wireless/bluetooth/nimble/Kconfig
+++ b/wireless/bluetooth/nimble/Kconfig
@@ -14,6 +14,10 @@ config NIMBLE_REF
---help---
Git ref name to use when downloading from NimBLE repo
+config NIMBLE_CALLOUT_THREAD_STACKSIZE
+ int "Stack size of NimBLE NPL callout thread"
+ default DEFAULT_TASK_STACKSIZE
+
if DEBUG_FEATURES
config NIMBLE_DEBUG_ERROR
[nuttx-apps] 01/04: examples/nimble: fix assertion during pthread create with zero priority
Posted by xi...@apache.org.
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/nuttx-apps.git
commit 355153cff5bf17fa6d6c94ff656ad1aaaf1cd196
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Thu Jul 13 23:20:28 2023 +0300
examples/nimble: fix assertion during pthread create with zero priority
Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
examples/nimble/nimble_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/nimble/nimble_main.c b/examples/nimble/nimble_main.c
index 4bc3d013e..c3864077d 100644
--- a/examples/nimble/nimble_main.c
+++ b/examples/nimble/nimble_main.c
@@ -59,7 +59,7 @@
/* Not used now */
-#define TASK_DEFAULT_PRIORITY 0
+#define TASK_DEFAULT_PRIORITY CONFIG_EXAMPLES_NIMBLE_PRIORITY
#define TASK_DEFAULT_STACK NULL
#define TASK_DEFAULT_STACK_SIZE 0
@@ -67,7 +67,7 @@
* External Functions Prototypes
****************************************************************************/
-void ble_hci_sock_ack_handler(void *param);
+void ble_hci_sock_ack_handler(FAR void *param);
void ble_hci_sock_init(void);
void ble_hci_sock_set_device(int dev);
[nuttx-apps] 02/04: wireless/bluetooth/nimble: fix build issue with nimBLE example
Posted by xi...@apache.org.
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/nuttx-apps.git
commit 0c7788cf26660f3337b741225e094cc28a8ae0ce
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Thu Jul 13 23:21:35 2023 +0300
wireless/bluetooth/nimble: fix build issue with nimBLE example
The NimBLE source code is downloaded at the first pass of the
make system so some makefiles to include might be not in place
initially, but included after code is fetched
Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
wireless/bluetooth/nimble/Makefile.nimble | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wireless/bluetooth/nimble/Makefile.nimble b/wireless/bluetooth/nimble/Makefile.nimble
index 84f7cb5af..e6d7fa456 100644
--- a/wireless/bluetooth/nimble/Makefile.nimble
+++ b/wireless/bluetooth/nimble/Makefile.nimble
@@ -38,7 +38,7 @@ NIMBLE_IGNORE += $(NIMBLE_ROOT)/porting/nimble/src/os_cputime_pwr2.c
# include NimBLE porting defs
-include $(NIMBLE_ROOT)/porting/nimble/Makefile.defs
+-include $(NIMBLE_ROOT)/porting/nimble/Makefile.defs
CSRCS += $(NIMBLE_SRC)
[nuttx-apps] 04/04: wireless/bluetooth/nimble: increase number of ACL buffers available for controller
Posted by xi...@apache.org.
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/nuttx-apps.git
commit 5dba460f5fd6f295f8510a0d052c39fc5d00358e
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Thu Jul 13 23:25:57 2023 +0300
wireless/bluetooth/nimble: increase number of ACL buffers available for controller
Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
wireless/bluetooth/nimble/include/syscfg/syscfg.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/wireless/bluetooth/nimble/include/syscfg/syscfg.h b/wireless/bluetooth/nimble/include/syscfg/syscfg.h
index 9be9a5eec..e4d063ed0 100644
--- a/wireless/bluetooth/nimble/include/syscfg/syscfg.h
+++ b/wireless/bluetooth/nimble/include/syscfg/syscfg.h
@@ -56,7 +56,7 @@
/* Transport configuration */
#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_HS_COUNT (10)
-#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_LL_COUNT (0)
+#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_LL_COUNT (10)
#define MYNEWT_VAL_BLE_TRANSPORT_ACL_SIZE (251)
#define MYNEWT_VAL_BLE_TRANSPORT_EVT_COUNT (4)
#define MYNEWT_VAL_BLE_TRANSPORT_EVT_DISCARDABLE_COUNT (16)
@@ -134,7 +134,7 @@
#endif
#ifdef CONFIG_NIMBLE_BLE_EXT_ADV
-# define MYNEWT_VAL_BLE_EXT_ADV (1)
+# define MYNEWT_VAL_BLE_EXT_ADV (1)
# define MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE (CONFIG_NIMBLE_BLE_EXT_ADV_MAX_SIZE)
#else
# define MYNEWT_VAL_BLE_EXT_ADV (0)
@@ -236,7 +236,7 @@
#ifdef CONFIG_NIMBLE_BLE_SM_SC
# define MYNEWT_VAL_BLE_SM_SC (1)
#else
-# define MYNEWT_VAL_BLE_SM_SC (0)
+# define MYNEWT_VAL_BLE_SM_SC (0)
#endif
#ifdef CONFIG_NIMBLE_BLE_SM_SC_DEBUG