map_client: enable ASSERT, fix compile

This commit is contained in:
Milanka Ringwald 2019-10-22 14:44:26 +02:00
parent 44547c84fa
commit 8fce0df8fe
3 changed files with 12 additions and 9 deletions

View File

@ -1,7 +1,7 @@
BTSTACK_ROOT = ../..
CORE += main.c btstack_stdin_posix.c btstack_tlv_posix.c
COMMON += hci_transport_h2_libusb.c btstack_run_loop_posix.c le_device_db_fs.c btstack_link_key_db_fs.c
COMMON += hci_transport_h2_libusb.c btstack_run_loop_posix.c btstack_chipset_zephyr.c btstack_link_key_db_tlv.c le_device_db_tlv.c
include ${BTSTACK_ROOT}/example/Makefile.inc
@ -16,12 +16,14 @@ CFLAGS += -g -std=c99 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -
CFLAGS += -I${BTSTACK_ROOT}/platform/posix \
-I${BTSTACK_ROOT}/platform/embedded \
-I${BTSTACK_ROOT}/3rd-party/tinydir
-I${BTSTACK_ROOT}/3rd-party/tinydir \
-I${BTSTACK_ROOT}/chipset/zephyr
VPATH += ${BTSTACK_ROOT}/platform/embedded
VPATH += ${BTSTACK_ROOT}/platform/posix
VPATH += ${BTSTACK_ROOT}/platform/libusb
VPATH += ${BTSTACK_ROOT}/port/libusb
VPATH += ${BTSTACK_ROOT}/chipset/zephyr
# use pkg-config
CFLAGS += $(shell pkg-config libusb-1.0 --cflags)

View File

@ -6,6 +6,7 @@
#define __BTSTACK_CONFIG
// Port related features
#define HAVE_ASSERT
#define HAVE_MALLOC
#define HAVE_POSIX_FILE_IO
#define HAVE_BTSTACK_STDIN

View File

@ -54,18 +54,18 @@
#include <stdlib.h>
#include <string.h>
#include "btstack_run_loop.h"
#include "l2cap.h"
#include "classic/rfcomm.h"
#include "btstack_event.h"
#include "bluetooth_sdp.h"
#include "btstack_event.h"
#include "btstack_run_loop.h"
#include "classic/goep_client.h"
#include "classic/obex.h"
#include "classic/rfcomm.h"
#include "classic/sdp_client.h"
#include "classic/sdp_server.h"
#include "classic/sdp_util.h"
#include "l2cap.h"
#include "map_client.h"
#include "map_server.h"
#include "classic/sdp_client.h"
#include "classic/sdp_util.h"
#include "classic/sdp_server.h"
#ifdef HAVE_BTSTACK_STDIN
#include "btstack_stdin.h"