samv71-xplained-atwilc3000: disable classic

This commit is contained in:
Matthias Ringwald 2017-11-27 21:01:35 +01:00
parent 8d995dff46
commit d0ec3fbfb2
4 changed files with 34 additions and 81 deletions

View File

@ -11,38 +11,37 @@
#define HAVE_BTSTACK_STDIN
#define ENABLE_BLE
#define ENABLE_CLASSIC
#define ENABLE_LOG_INFO
#define ENABLE_LOG_ERROR
#define ENABLE_LE_PERIPHERAL
#define ENABLE_LE_CENTRAL
#define HCI_ACL_PAYLOAD_SIZE 1021
#define HCI_ACL_PAYLOAD_SIZE 300
// memory config
#define MAX_NR_AVDTP_CONNECTIONS 1
#define MAX_NR_AVDTP_STREAM_ENDPOINTS 1
#define MAX_NR_AVRCP_CONNECTIONS 1
#define MAX_NR_BNEP_CHANNELS 1
#define MAX_NR_BNEP_SERVICES 1
#define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES 2
#define MAX_NR_DB_MEM_DEVICE_LINK_KEYS 2
#define MAX_NR_DB_MEM_SERVICES 1
#define MAX_NR_GATT_CLIENTS 1
#define MAX_NR_GATT_SUBCLIENTS 1
#define MAX_NR_HCI_CONNECTIONS 1
#define MAX_NR_HFP_CONNECTIONS 1
#define MAX_NR_L2CAP_CHANNELS 4
#define MAX_NR_L2CAP_SERVICES 3
#define MAX_NR_LE_DEVICE_DB_ENTRIES 1
#define MAX_NR_LE_DEVICE_DB_ENTRIES 1
#define MAX_NR_RFCOMM_CHANNELS 1
#define MAX_NR_RFCOMM_MULTIPLEXERS 1
#define MAX_NR_RFCOMM_SERVICES 2
#define MAX_NR_SERVICE_RECORD_ITEMS 2
#define MAX_NR_RFCOMM_CHANNELS 0
#define MAX_NR_RFCOMM_MULTIPLEXERS 0
#define MAX_NR_RFCOMM_SERVICES 0
#define MAX_NR_SERVICE_RECORD_ITEMS 0
#define MAX_NR_SM_LOOKUP_ENTRIES 1
#define MAX_NR_WHITELIST_ENTRIES 1
// no classic services
#define MAX_NR_AVDTP_CONNECTIONS 0
#define MAX_NR_AVDTP_STREAM_ENDPOINTS 0
#define MAX_NR_AVRCP_CONNECTIONS 0
#define MAX_NR_BNEP_CHANNELS 0
#define MAX_NR_BNEP_SERVICES 0
#define MAX_NR_DB_MEM_DEVICE_LINK_KEYS 0
#define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES 0
#define MAX_NR_HFP_CONNECTIONS 0
#define MAX_NR_L2CAP_CHANNELS 0
#define MAX_NR_L2CAP_SERVICES 0
#endif

View File

@ -113,16 +113,11 @@ INC_PATH = \
INC_PATH += ${BTSTACK_ROOT_CONFIG}/src/ble
INC_PATH += ${BTSTACK_ROOT_CONFIG}/src/ble/gatt-service
INC_PATH += ${BTSTACK_ROOT_CONFIG}/src/classic
INC_PATH += ${BTSTACK_ROOT_CONFIG}/src
INC_PATH += ${BTSTACK_ROOT_CONFIG}/3rd-party/micro-ecc
INC_PATH += ${BTSTACK_ROOT_CONFIG}/platform/embedded
INC_PATH += ${BTSTACK_ROOT_CONFIG}/chipset/atwilc3000
INC_PATH += ${BTSTACK_ROOT_CONFIG}/port/samv71-xplained-atwilc3000/example/template
INC_PATH += ${BTSTACK_ROOT_CONFIG}/3rd-party/hxcmod-player
INC_PATH += ${BTSTACK_ROOT_CONFIG}/3rd-party/hxcmod-player/mods
INC_PATH += ${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/encoder/include
INC_PATH += ${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/include
# VPATH += ${BTSTACK_ROOT_CONFIG}/src
@ -134,10 +129,7 @@ INC_PATH += ${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/include
# VPATH += ${BTSTACK_ROOT_CONFIG}/3rd-party/micro-ecc
CSRCS += \
${BTSTACK_ROOT_CONFIG}/3rd-party/hxcmod-player/hxcmod.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/hxcmod-player/mods/nao-deceased_by_disease.c \
${BTSTACK_ROOT_CONFIG}/chipset/atwilc3000/btstack_chipset_atwilc3000.c \
${BTSTACK_ROOT_CONFIG}/example/sco_demo_util.c \
${BTSTACK_ROOT_CONFIG}/platform/embedded/btstack_run_loop_embedded.c \
${BTSTACK_ROOT_CONFIG}/platform/embedded/btstack_uart_block_embedded.c \
${BTSTACK_ROOT_CONFIG}/src/ad_parser.c \
@ -157,64 +149,12 @@ CSRCS += \
${BTSTACK_ROOT_CONFIG}/src/btstack_run_loop.c \
${BTSTACK_ROOT_CONFIG}/src/btstack_util.c \
${BTSTACK_ROOT_CONFIG}/src/btstack_tlv.c \
${BTSTACK_ROOT_CONFIG}/src/classic/a2dp_sink.c \
${BTSTACK_ROOT_CONFIG}/src/classic/a2dp_source.c \
${BTSTACK_ROOT_CONFIG}/src/classic/avdtp.c \
${BTSTACK_ROOT_CONFIG}/src/classic/avdtp_acceptor.c \
${BTSTACK_ROOT_CONFIG}/src/classic/avdtp_initiator.c \
${BTSTACK_ROOT_CONFIG}/src/classic/avdtp_sink.c \
${BTSTACK_ROOT_CONFIG}/src/classic/avdtp_source.c \
${BTSTACK_ROOT_CONFIG}/src/classic/avdtp_util.c \
${BTSTACK_ROOT_CONFIG}/src/classic/avrcp.c \
${BTSTACK_ROOT_CONFIG}/src/classic/avrcp_controller.c \
${BTSTACK_ROOT_CONFIG}/src/classic/avrcp_target.c \
${BTSTACK_ROOT_CONFIG}/src/classic/btstack_sbc_bludroid.c \
${BTSTACK_ROOT_CONFIG}/src/classic/btstack_sbc_plc.c \
${BTSTACK_ROOT_CONFIG}/src/classic/hfp.c \
${BTSTACK_ROOT_CONFIG}/src/classic/hfp_ag.c \
${BTSTACK_ROOT_CONFIG}/src/classic/hfp_hf.c \
${BTSTACK_ROOT_CONFIG}/src/classic/hfp_msbc.c \
${BTSTACK_ROOT_CONFIG}/src/classic/hfp_gsm_model.c \
${BTSTACK_ROOT_CONFIG}/src/classic/hsp_hs.c \
${BTSTACK_ROOT_CONFIG}/src/classic/hsp_ag.c \
${BTSTACK_ROOT_CONFIG}/src/classic/btstack_link_key_db_memory.c \
${BTSTACK_ROOT_CONFIG}/src/classic/goep_client.c \
${BTSTACK_ROOT_CONFIG}/src/classic/obex_iterator.c \
${BTSTACK_ROOT_CONFIG}/src/classic/pbap_client.c \
${BTSTACK_ROOT_CONFIG}/src/classic/rfcomm.c \
${BTSTACK_ROOT_CONFIG}/src/classic/sdp_client.c \
${BTSTACK_ROOT_CONFIG}/src/classic/sdp_client_rfcomm.c \
${BTSTACK_ROOT_CONFIG}/src/classic/sdp_server.c \
${BTSTACK_ROOT_CONFIG}/src/classic/sdp_util.c \
${BTSTACK_ROOT_CONFIG}/src/classic/spp_server.c \
${BTSTACK_ROOT_CONFIG}/src/hci.c \
${BTSTACK_ROOT_CONFIG}/src/hci_cmd.c \
${BTSTACK_ROOT_CONFIG}/src/hci_dump.c \
${BTSTACK_ROOT_CONFIG}/src/hci_transport_h4.c \
${BTSTACK_ROOT_CONFIG}/src/l2cap.c \
${BTSTACK_ROOT_CONFIG}/src/l2cap_signaling.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/alloc.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/bitalloc-sbc.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/bitalloc.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/bitstream-decode.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/decoder-oina.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/decoder-private.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/decoder-sbc.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/dequant.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/framing-sbc.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/framing.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/oi_codec_version.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/synthesis-8-generated.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/synthesis-dct8.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/decoder/srce/synthesis-sbc.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/encoder/srce/sbc_analysis.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/encoder/srce/sbc_dct.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/encoder/srce/sbc_dct_coeffs.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/encoder/srce/sbc_enc_bit_alloc_mono.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/encoder/srce/sbc_enc_bit_alloc_ste.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/encoder/srce/sbc_enc_coeffs.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/encoder/srce/sbc_encoder.c \
${BTSTACK_ROOT_CONFIG}/3rd-party/bluedroid/encoder/srce/sbc_packing.c \
# Additional search paths for libraries.
LIB_PATH = \

View File

@ -11,7 +11,6 @@
#include "btstack_memory.h"
#include "btstack_run_loop.h"
#include "btstack_run_loop_embedded.h"
#include "classic/btstack_link_key_db.h"
#include "hal_uart_dma.h"
#include "hal_cpu.h"
#include "hal_tick.h"
@ -533,7 +532,6 @@ static void phase2(int status){
const hci_transport_t * transport = hci_transport_h4_instance(uart_driver);
hci_init(transport, (void*) &transport_config);
hci_set_chipset(btstack_chipset_atwilc3000_instance());
hci_set_link_key_db(btstack_link_key_db_memory_instance());
// setup app
btstack_main(0, NULL);

View File

@ -26,6 +26,22 @@ clean:
\tdone
'''
#
le_examples = [
'ancs_client_demo.c',
'gap_le_advertisements.c',
'gatt_battery_query.c',
'gatt_browser.c',
'hog_keyboard_demo.c',
'hog_mouse_demo.c',
'le_counter.c',
'le_streamer.c',
'le_streamer_client.c',
'led_counter.c',
'sm_pairing_central.c',
'sm_pairing_peripheral.c',
]
# get script path
script_path = os.path.abspath(os.path.dirname(sys.argv[0])) + '/../'
@ -56,7 +72,7 @@ examples = []
for file in example_files:
if not file.endswith(".c"):
continue
if file in ['panu_demo.c', 'sco_demo_util.c']:
if not file in le_examples:
continue
example = file[:-2]
examples.append(example)