diff --git a/port/nrf5x/main.c b/port/nrf5x/main.c index 99f1f0f46..7553f69d8 100644 --- a/port/nrf5x/main.c +++ b/port/nrf5x/main.c @@ -34,6 +34,7 @@ #include "btstack_run_loop_embedded.h" #include "hci_transport.h" #include "hci_dump.h" +#include "hci_dump_embedded_stdout.h" #include "hal_cpu.h" #include "hal_time_ms.h" @@ -583,11 +584,11 @@ int main(void) // init HCI hci_init(&hci_transport, NULL); - - // enable full log output while porting - // hci_dump_open(NULL, HCI_DUMP_STDOUT); - // hand over to btstack embedded code + // uncomment for packet log + // hci_dump_init(hci_dump_embedded_stdout_get_instance()); + + // hand over to btstack embedded code btstack_main(); // go diff --git a/port/nrf5x/pca10028/armgcc/Makefile b/port/nrf5x/pca10028/armgcc/Makefile index 8cfd1facd..cef259be7 100755 --- a/port/nrf5x/pca10028/armgcc/Makefile +++ b/port/nrf5x/pca10028/armgcc/Makefile @@ -73,6 +73,7 @@ BTSTACK_ROOT ?= ../../../../../components/btstack C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/port/nrf5x/main.c) C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/port/retarget_blocking.c) C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/platform/embedded/btstack_run_loop_embedded.c) +C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/platform/embedded/hci_dump_embedded_stdout.c) C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/src/ad_parser.c) C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/src/btstack_linked_list.c) C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/src/btstack_memory.c) @@ -216,4 +217,4 @@ flash: $(MAKECMDGOALS) nrfjprog --program $(OUTPUT_BINARY_DIRECTORY)/$<.hex -f nrf51 --chiperase nrfjprog --reset -## Flash softdevice +## Flash softdevice