hci_dump: nrf5x

This commit is contained in:
Matthias Ringwald 2021-03-10 11:45:31 +01:00
parent 34c8f786e4
commit 8636a61217
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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