btstack_run_loop_posix: use run loop base (build)

This commit is contained in:
Matthias Ringwald 2021-03-04 11:48:40 +01:00
parent 075edf12f9
commit eda177a49c
10 changed files with 12 additions and 5 deletions

View File

@ -34,7 +34,7 @@ fi
case "$host_os" in
darwin*)
btstack_run_loop_SOURCES="btstack_run_loop_posix.o btstack_run_loop_corefoundation.m"
btstack_run_loop_SOURCES="btstack_run_loop_base.o btstack_run_loop_posix.o btstack_run_loop_corefoundation.m"
LDFLAGS+="-framework CoreFoundation -framework Foundation"
BTSTACK_LIB_LDFLAGS="-dynamiclib -install_name \$(prefix)/lib/libBTstack.dylib"
BTSTACK_LIB_EXTENSION="dylib"
@ -57,7 +57,7 @@ case "$host_os" in
UART_DRIVER=block_windows
;;
*)
btstack_run_loop_SOURCES="btstack_run_loop_posix.o"
btstack_run_loop_SOURCES="btstack_run_loop_base.o btstack_run_loop_posix.o"
BTSTACK_LIB_LDFLAGS="-shared -Wl,-rpath,\$(prefix)/lib"
BTSTACK_LIB_EXTENSION="so"
REMOTE_DEVICE_DB_SOURCES="rfcomm_service_db_memory.o"

View File

@ -3,7 +3,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_tlv.c btstack_link_key_db_tlv.c wav_util.c btstack_network_posix.c
COMMON += hci_transport_h2_libusb.c btstack_run_loop_base.c btstack_run_loop_posix.c le_device_db_tlv.c btstack_link_key_db_tlv.c wav_util.c btstack_network_posix.c
COMMON += btstack_audio_portaudio.c btstack_chipset_zephyr.c rijndael.c
include ${BTSTACK_ROOT}/example/Makefile.inc

View File

@ -3,6 +3,7 @@ BTSTACK_ROOT ?= ../..
CORE += \
btstack_chipset_atwilc3000.c \
btstack_run_loop_base.c \
btstack_run_loop_posix.c \
btstack_tlv_posix.c \
btstack_uart_posix.c \

View File

@ -4,6 +4,7 @@ BTSTACK_ROOT ?= ../..
CORE += \
btstack_chipset_da14581.c \
hci_581_active_uart.c \
btstack_run_loop_base.c \
btstack_run_loop_posix.c \
btstack_tlv_posix.c \
btstack_uart_posix.c \

View File

@ -3,6 +3,7 @@ BTSTACK_ROOT ?= ../..
CORE += \
btstack_chipset_da14581.c \
btstack_run_loop_base.c \
btstack_run_loop_posix.c \
btstack_tlv_posix.c \
btstack_uart_posix.c \

View File

@ -2,6 +2,7 @@
BTSTACK_ROOT ?= ../..
CORE += \
btstack_run_loop_base.c \
btstack_run_loop_posix.c \
btstack_tlv_posix.c \
btstack_uart_posix.c \

View File

@ -10,6 +10,7 @@ CORE += \
btstack_chipset_stlc2500d.c \
btstack_chipset_tc3566x.c \
btstack_link_key_db_tlv.c \
btstack_run_loop_base.c \
btstack_run_loop_posix.c \
btstack_audio.c \
btstack_audio_portaudio.c \

View File

@ -9,6 +9,7 @@ CORE += \
btstack_chipset_stlc2500d.c \
btstack_chipset_tc3566x.c \
btstack_link_key_db_tlv.c \
btstack_run_loop_base.c \
btstack_run_loop_posix.c \
btstack_tlv_posix.c \
btstack_uart_posix.c \

View File

@ -208,10 +208,10 @@ int main(int argc, const char * argv[]){
printf("Packet Log: %s\n", pklg_path);
// pick serial port
// config.device_name = "/dev/tty.usbserial-A900K2WS"; // DFROBOT
config.device_name = "/dev/tty.usbserial-A900K2WS"; // DFROBOT
// config.device_name = "/dev/tty.usbserial-A50285BI"; // BOOST-CC2564MODA New
// config.device_name = "/dev/tty.usbserial-A9OVNX5P"; // RedBear IoT pHAT breakout board
config.device_name = "/dev/tty.usbserial-A900K0VK"; // CSR8811 breakout board
// config.device_name = "/dev/tty.usbserial-A900K0VK"; // CSR8811 breakout board
// accept path from command line
if (argc >= 3 && strcmp(argv[1], "-u") == 0){

View File

@ -6,6 +6,7 @@ CORE += \
btstack_chipset_bcm_download_firmware.c \
btstack_control_raspi.c \
btstack_link_key_db_tlv.c \
btstack_run_loop_base.c \
btstack_run_loop_posix.c \
btstack_tlv_posix.c \
btstack_uart_posix.c \