1
0
mirror of https://github.com/bluekitchen/btstack.git synced 2025-03-25 16:43:28 +00:00

msp432p401lp-cc256x: rework Makefile, add all non-audio examples

This commit is contained in:
Matthias Ringwald 2020-11-26 23:05:05 +01:00
parent 4472ec1633
commit 6ea4c31d9c
2 changed files with 146 additions and 100 deletions
port/msp432p401lp-cc256x

@ -25,8 +25,10 @@ VPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/srce
VPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/srce
VPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player
VPATH += ${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods
VPATH += ${BTSTACK_ROOT}/3rd-party/md5
VPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc
VPATH += ${BTSTACK_ROOT}/3rd-party/segger-rtt
VPATH += ${BTSTACK_ROOT}/3rd-party/yxml
VPATH += ${BTSTACK_ROOT}/example
VPATH += ${BTSTACK_ROOT}/src
VPATH += ${BTSTACK_ROOT}/src/ble
@ -44,82 +46,122 @@ IPATH += ${BTSTACK_ROOT}/3rd-party/md5
IPATH += ${BTSTACK_ROOT}/3rd-party/yxml
IPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include
IPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include
IPATH += ${BTSTACK_ROOT}/3rd-party/lwip/core/src/include
IPATH += ${BTSTACK_ROOT}/3rd-party/lwip/dhcp-server
IPATH += ${BTSTACK_ROOT}/platform/lwip/
IPATH += ${BTSTACK_ROOT}/platform/lwip/port
IPATH += .
IPATH += ${COMPILER}
BTSTACK_SOURCES = \
a2dp_sink.c \
a2dp_source.c \
ad_parser.c \
ancs_client.c \
att_db.c \
att_dispatch.c \
att_server.c \
avdtp.c \
avdtp_acceptor.c \
avdtp_initiator.c \
avdtp_sink.c \
avdtp_source.c \
avdtp_util.c \
avrcp.c \
avrcp_browsing_controller.c \
avrcp_controller.c \
avrcp_media_item_iterator.c \
avrcp_target.c \
battery_service_server.c \
btstack_cvsd_plc.c \
btstack_crypto.c \
btstack_audio.c \
btstack_hid_parser.c \
btstack_link_key_db_tlv.c \
btstack_linked_list.c \
btstack_memory.c \
btstack_memory_pool.c \
btstack_resample.c \
btstack_ring_buffer.c \
btstack_run_loop.c \
btstack_run_loop_embedded.c \
btstack_sbc_decoder_bluedroid.c \
btstack_sbc_encoder_bluedroid.c \
btstack_sbc_plc.c \
btstack_tlv.c \
btstack_tlv_flash_bank.c \
btstack_uart_block_embedded.c \
btstack_util.c \
device_id_server.c \
device_information_service_server.c \
goep_client.c \
gatt_client.c \
hci.c \
hci_cmd.c \
hci_dump.c \
hci_transport_h4.c \
hfp.c \
hfp_ag.c \
hfp_gsm_model.c \
hfp_hf.c \
hfp_msbc.c \
hid_device.c \
hids_device.c \
hsp_ag.c \
hsp_hs.c \
hxcmod.c \
l2cap.c \
l2cap_signaling.c \
le_device_db_memory.c \
le_device_db_tlv.c \
nao-deceased_by_disease.c \
obex_iterator.c \
pbap_client.c \
rfcomm.c \
sco_demo_util.c \
sdp_client.c \
sdp_client_rfcomm.c \
sdp_server.c \
sdp_util.c \
sm.c \
spp_server.c \
uECC.c \
${BTSTACK_ROOT}/3rd-party/hxcmod-player/hxcmod.c \
${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods/nao-deceased_by_disease.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/def.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/inet_chksum.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/init.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ip.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/mem.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/memp.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/netif.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/pbuf.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/tcp.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/tcp_in.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/tcp_out.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/timeouts.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/udp.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv4/acd.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv4/dhcp.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv4/etharp.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv4/icmp.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv4/ip4.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv4/ip4_addr.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/core/ipv4/ip4_frag.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/netif/ethernet.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/apps/http/altcp_proxyconnect.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/apps/http/fs.c \
${BTSTACK_ROOT}/3rd-party/lwip/core/src/apps/http/httpd.c \
${BTSTACK_ROOT}/3rd-party/lwip/dhcp-server/dhserver.c \
${BTSTACK_ROOT}/3rd-party/md5/md5.c \
${BTSTACK_ROOT}/3rd-party/micro-ecc/uECC.c \
${BTSTACK_ROOT}/3rd-party/segger-rtt/SEGGER_RTT.c \
${BTSTACK_ROOT}/3rd-party/segger-rtt/SEGGER_RTT_printf.c \
${BTSTACK_ROOT}/3rd-party/segger-rtt/SEGGER_RTT_Syscalls_GCC.c \
${BTSTACK_ROOT}/3rd-party/yxml/yxml.c \
${BTSTACK_ROOT}/example/sco_demo_util.c \
${BTSTACK_ROOT}/src/ad_parser.c \
${BTSTACK_ROOT}/src/ble/ancs_client.c \
${BTSTACK_ROOT}/src/ble/att_db.c \
${BTSTACK_ROOT}/src/ble/att_dispatch.c \
${BTSTACK_ROOT}/src/ble/att_server.c \
${BTSTACK_ROOT}/src/ble/gatt-service/battery_service_server.c \
${BTSTACK_ROOT}/src/ble/gatt-service/device_information_service_server.c \
${BTSTACK_ROOT}/src/ble/gatt-service/hids_device.c \
${BTSTACK_ROOT}/src/ble/gatt_client.c \
${BTSTACK_ROOT}/src/ble/le_device_db_memory.c \
${BTSTACK_ROOT}/src/ble/le_device_db_tlv.c \
${BTSTACK_ROOT}/src/ble/sm.c \
${BTSTACK_ROOT}/src/btstack_crypto.c \
${BTSTACK_ROOT}/src/btstack_hid_parser.c \
${BTSTACK_ROOT}/src/btstack_linked_list.c \
${BTSTACK_ROOT}/src/btstack_memory.c \
${BTSTACK_ROOT}/src/btstack_memory_pool.c \
${BTSTACK_ROOT}/src/btstack_ring_buffer.c \
${BTSTACK_ROOT}/src/btstack_run_loop.c \
${BTSTACK_ROOT}/src/btstack_tlv.c \
${BTSTACK_ROOT}/src/btstack_util.c \
${BTSTACK_ROOT}/src/classic/a2dp_sink.c \
${BTSTACK_ROOT}/src/classic/a2dp_source.c \
${BTSTACK_ROOT}/src/classic/avdtp.c \
${BTSTACK_ROOT}/src/classic/avdtp_acceptor.c \
${BTSTACK_ROOT}/src/classic/avdtp_initiator.c \
${BTSTACK_ROOT}/src/classic/avdtp_sink.c \
${BTSTACK_ROOT}/src/classic/avdtp_source.c \
${BTSTACK_ROOT}/src/classic/avdtp_util.c \
${BTSTACK_ROOT}/src/classic/avrcp.c \
${BTSTACK_ROOT}/src/classic/avrcp_browsing_controller.c \
${BTSTACK_ROOT}/src/classic/avrcp_controller.c \
${BTSTACK_ROOT}/src/classic/avrcp_media_item_iterator.c \
${BTSTACK_ROOT}/src/classic/avrcp_target.c \
${BTSTACK_ROOT}/src/classic/bnep.c \
${BTSTACK_ROOT}/src/classic/btstack_cvsd_plc.c \
${BTSTACK_ROOT}/src/classic/btstack_link_key_db_tlv.c \
${BTSTACK_ROOT}/src/classic/btstack_sbc_decoder_bluedroid.c \
${BTSTACK_ROOT}/src/classic/btstack_sbc_encoder_bluedroid.c \
${BTSTACK_ROOT}/src/classic/btstack_sbc_plc.c \
${BTSTACK_ROOT}/src/classic/device_id_server.c \
${BTSTACK_ROOT}/src/classic/goep_client.c \
${BTSTACK_ROOT}/src/classic/hfp.c \
${BTSTACK_ROOT}/src/classic/hfp_ag.c \
${BTSTACK_ROOT}/src/classic/hfp_gsm_model.c \
${BTSTACK_ROOT}/src/classic/hfp_hf.c \
${BTSTACK_ROOT}/src/classic/hfp_msbc.c \
${BTSTACK_ROOT}/src/classic/hid_device.c \
${BTSTACK_ROOT}/src/classic/hsp_ag.c \
${BTSTACK_ROOT}/src/classic/hsp_hs.c \
${BTSTACK_ROOT}/src/classic/obex_iterator.c \
${BTSTACK_ROOT}/src/classic/obex_message_builder.c \
${BTSTACK_ROOT}/src/classic/pan.c \
${BTSTACK_ROOT}/src/classic/pbap_client.c \
${BTSTACK_ROOT}/src/classic/rfcomm.c \
${BTSTACK_ROOT}/src/classic/sdp_client.c \
${BTSTACK_ROOT}/src/classic/sdp_client_rfcomm.c \
${BTSTACK_ROOT}/src/classic/sdp_server.c \
${BTSTACK_ROOT}/src/classic/sdp_util.c \
${BTSTACK_ROOT}/src/classic/spp_server.c \
${BTSTACK_ROOT}/src/hci.c \
${BTSTACK_ROOT}/src/hci_cmd.c \
${BTSTACK_ROOT}/src/hci_dump.c \
${BTSTACK_ROOT}/src/hci_transport_h4.c \
${BTSTACK_ROOT}/src/l2cap.c \
${BTSTACK_ROOT}/src/l2cap_signaling.c \
${BTSTACK_ROOT}/platform/embedded/btstack_run_loop_embedded.c \
${BTSTACK_ROOT}/platform/embedded/btstack_stdin_embedded.c \
${BTSTACK_ROOT}/platform/embedded/btstack_tlv_flash_bank.c \
${BTSTACK_ROOT}/platform/embedded/btstack_uart_block_embedded.c \
${BTSTACK_ROOT}/platform/lwip/port/sys_arch.c \
${BTSTACK_ROOT}/platform/lwip/bnep_lwip.c \
# CC2564B
# - BOOST-CC2564MODA
@ -131,15 +173,12 @@ uECC.c \
INIT_SCRIPT = bluetooth_init_cc2564C_1.4
PORT_SOURCES = \
${INIT_SCRIPT}.o \
btstack_chipset_cc256x.o \
${BTSTACK_ROOT}/chipset/cc256x/${INIT_SCRIPT}.o \
${BTSTACK_ROOT}/chipset/cc256x/btstack_chipset_cc256x.o \
hal_flash_bank_msp432.o \
main.o \
startup_msp432p401r_${COMPILER}.o \
system_msp432p401r.o \
SEGGER_RTT.o \
SEGGER_RTT_Syscalls_GCC.o \
SEGGER_RTT_printf.o \
include ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc
include ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc
@ -147,44 +186,44 @@ include ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc
BTSTACK_SOURCES += ${SBC_ENCODER}
BTSTACK_SOURCES += ${SBC_DECODER}
EXAMPLES = \
audio_duplex \
a2dp_sink_demo \
EXAMPLES = \
a2dp_source_demo \
ancs_client_demo \
ancs_client_demo \
dut_mode_classic \
gap_dedicated_bonding \
gap_inquiry \
gap_inquiry \
gap_le_advertisements \
gatt_battery_query \
gatt_battery_query \
gatt_browser \
gatt_counter \
gatt_streamer_server \
hfp_ag_demo \
hfp_hf_demo \
hid_host_demo \
hid_keyboard_demo \
hid_keyboard_demo \
hid_mouse_demo \
hog_keyboard_demo \
hog_mouse_demo \
hsp_ag_demo \
hsp_hs_demo \
mod_player \
le_streamer_client \
led_counter \
sdp_bnep_query \
sdp_general_query \
sdp_rfcomm_query \
sine_player \
sdp_bnep_query \
sdp_general_query \
sdp_rfcomm_query \
sm_pairing_central \
sm_pairing_peripheral \
spp_and_gatt_counter \
spp_and_gatt_streamer \
spp_counter \
spp_streamer \
spp_and_gatt_counter \
spp_and_gatt_streamer \
spp_counter \
spp_streamer \
spp_streamer_client \
# pbap_client_demo \
# pan_lwip_http_server \
pbap_client_demo \
pan_lwip_http_server \
# audio_duplex \
# a2dp_sink_demo \
# hfp_ag_demo \
# hfp_hf_demo \
# hsp_ag_demo \
# hsp_hs_demo \
# mod_player \
# sine_player \
GATT_FILES = \
ancs_client_demo.gatt \
@ -234,7 +273,9 @@ $(COMPILER)/%.jdebug: ozone.jdebug | $(COMPILER)
##
# pick up sources
OBJECTS = $(BTSTACK_SOURCES:%.c=$(COMPILER)/%.o) $(PORT_SOURCES:%.o=$(COMPILER)/%.o)
C_SOURCES = $(BTSTACK_SOURCES) $(PORT_SOURCES)
OBJECTS = $(addprefix $(COMPILER)/,$(notdir $(C_SOURCES:.c=.o)))
vpath %.c $(sort $(dir $(C_SOURCES)))
LDFLAGS2 = ${CPU} ${FPU} -specs=nano.specs -lc -lm -lnosys -Wl,--gc-sections

@ -115,6 +115,11 @@ void * _sbrk(int incr){
return prev_heap;
}
void abort(void){
btstack_assert(false);
while (1);
}
#ifdef ENABLE_SEGGER_RTT
#include "SEGGER_RTT.h"