Skip to content

Commit

Permalink
Merge f41698a into c8b0557
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleech committed Dec 4, 2020
2 parents c8b0557 + f41698a commit d7125bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions extmod/btstack/btstack.mk
Expand Up @@ -11,6 +11,9 @@ EXTMOD_SRC_C += extmod/btstack/modbluetooth_btstack.c
INC += -I$(TOP)/$(BTSTACK_EXTMOD_DIR)

CFLAGS_MOD += -DMICROPY_BLUETOOTH_BTSTACK=1
ifneq ("$(MICROPY_PY_BLUETOOTH_MAX_ATT_DB_SIZE)", "")
CFLAGS_MOD += -DMAX_ATT_DB_SIZE=$(MICROPY_PY_BLUETOOTH_MAX_ATT_DB_SIZE)
endif

BTSTACK_DIR = $(TOP)/lib/btstack

Expand Down
4 changes: 3 additions & 1 deletion extmod/btstack/btstack_config.h
Expand Up @@ -37,7 +37,9 @@
// #define NVM_NUM_DEVICE_DB_ENTRIES 16

// We don't give btstack a malloc, so use a fixed-size ATT DB.
#define MAX_ATT_DB_SIZE 512
#ifndef MAX_ATT_DB_SIZE
#define MAX_ATT_DB_SIZE 1024
#endif

// BTstack HAL configuration
#define HAVE_EMBEDDED_TIME_MS
Expand Down

0 comments on commit d7125bd

Please sign in to comment.