Skip to content

Commit

Permalink
Increase msys_1 blocks when privacy is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
h2zero committed Jan 12, 2025
1 parent 95598bd commit 90a193b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
4 changes: 3 additions & 1 deletion cores/nRF5/nimble_config/ext_nimble_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,6 @@

#ifndef max
#define max(a, b) ((a)>(b)?(a):(b))
#endif
#endif

#define CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE 1
36 changes: 20 additions & 16 deletions cores/nRF5/nimble_config/nrf51_nimconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,6 @@
# define CONFIG_BT_NIMBLE_MAX_CONNECTIONS 1
#endif

#if (DEVICE_RAM_SIZE) > 16
# ifndef CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
# define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT (12)
# endif
# ifndef CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE
# define CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE 2048
# endif
#else
# ifndef CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
# define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT (5)
# endif
# ifndef CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE
# define CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE 1152
# endif
#endif

#ifndef CONFIG_BT_NIMBLE_MAX_BONDS
# define CONFIG_BT_NIMBLE_MAX_BONDS 1
#endif
Expand All @@ -47,6 +31,26 @@
# endif
#endif

#if (DEVICE_RAM_SIZE) > 16
# ifndef CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
# define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT (12)
# endif
# ifndef CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE
# define CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE 2048
# endif
#else
# ifndef CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
# if CONFIG_BT_NIMBLE_ENABLE_PRIVACY
# define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT (7)
# else
# define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT (5)
# endif
# endif
# ifndef CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE
# define CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE 1152
# endif
#endif

#ifndef CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU
#define CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU (23)
#endif
Expand Down

0 comments on commit 90a193b

Please sign in to comment.