Skip to content

Commit 90a193b

Browse files
committed
Increase msys_1 blocks when privacy is enabled.
1 parent 95598bd commit 90a193b

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

cores/nRF5/nimble_config/ext_nimble_config.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,6 @@
6767

6868
#ifndef max
6969
#define max(a, b) ((a)>(b)?(a):(b))
70-
#endif
70+
#endif
71+
72+
#define CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE 1

cores/nRF5/nimble_config/nrf51_nimconfig.h

+20-16
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,6 @@
1313
# define CONFIG_BT_NIMBLE_MAX_CONNECTIONS 1
1414
#endif
1515

16-
#if (DEVICE_RAM_SIZE) > 16
17-
# ifndef CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
18-
# define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT (12)
19-
# endif
20-
# ifndef CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE
21-
# define CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE 2048
22-
# endif
23-
#else
24-
# ifndef CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
25-
# define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT (5)
26-
# endif
27-
# ifndef CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE
28-
# define CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE 1152
29-
# endif
30-
#endif
31-
3216
#ifndef CONFIG_BT_NIMBLE_MAX_BONDS
3317
# define CONFIG_BT_NIMBLE_MAX_BONDS 1
3418
#endif
@@ -47,6 +31,26 @@
4731
# endif
4832
#endif
4933

34+
#if (DEVICE_RAM_SIZE) > 16
35+
# ifndef CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
36+
# define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT (12)
37+
# endif
38+
# ifndef CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE
39+
# define CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE 2048
40+
# endif
41+
#else
42+
# ifndef CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
43+
# if CONFIG_BT_NIMBLE_ENABLE_PRIVACY
44+
# define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT (7)
45+
# else
46+
# define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT (5)
47+
# endif
48+
# endif
49+
# ifndef CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE
50+
# define CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE 1152
51+
# endif
52+
#endif
53+
5054
#ifndef CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU
5155
#define CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU (23)
5256
#endif

0 commit comments

Comments
 (0)