Skip to content
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