Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase msys_1 blocks when privacy is enabled. #65

Merged
merged 1 commit into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading