diff --git a/port/apollo2-em9304/README.md b/port/apollo2-em9304/README.md index 177717a8e..771631d95 100644 --- a/port/apollo2-em9304/README.md +++ b/port/apollo2-em9304/README.md @@ -43,7 +43,7 @@ printf is routed over the USB connector of the EVB at 115200. In port/apollo2-em9304/btstack_config.h additional debug information can be enabled by uncommenting ENABLE_LOG_INFO. -Also, the full packet log can be enabled in src/btstack_port.c by uncommenting the hci_dump_open(..) line. The console output can then be converted into .pklg files for OS X PacketLogger or WireShark by running tool/create_packet_log.py +Also, the full packet log can be enabled in src/btstack_port.c by uncommenting the hci_dump_init(..) line. The console output can then be converted into .pklg files for OS X PacketLogger or WireShark by running tool/create_packet_log.py # TODO - BTstack's TLV persisten storage via Flash memory is not implemented yet. diff --git a/port/apollo2-em9304/btstack_port.c b/port/apollo2-em9304/btstack_port.c index b20728b4b..feea02c20 100644 --- a/port/apollo2-em9304/btstack_port.c +++ b/port/apollo2-em9304/btstack_port.c @@ -443,6 +443,7 @@ const uint8_t hci_reset_2[] = { 0x01, 0x03, 0x0c, 0x00 }; #include "btstack_run_loop.h" #include "btstack_run_loop_embedded.h" #include "hci_dump.h" +#include "hci_dump_embedded_stdout.h" static btstack_packet_callback_registration_t hci_event_callback_registration; int btstack_main(int argc, char ** argv); @@ -518,7 +519,7 @@ int main(void) // init HCI hci_init(hci_transport_em9304_spi_instance(btstack_em9304_spi_embedded_instance()), NULL); - // hci_dump_open( NULL, HCI_DUMP_STDOUT ); + // hci_dump_init(hci_dump_embedded_stdout_get_instance()); // inform about BTstack state hci_event_callback_registration.callback = &packet_handler; diff --git a/port/apollo2-em9304/example-template/gcc/Makefile b/port/apollo2-em9304/example-template/gcc/Makefile index 94c8c4eb5..08ee83b78 100644 --- a/port/apollo2-em9304/example-template/gcc/Makefile +++ b/port/apollo2-em9304/example-template/gcc/Makefile @@ -109,6 +109,7 @@ SRC += btstack_em9304_spi_embedded.c SRC += btstack_port.c SRC += btstack_run_loop_embedded.c SRC += btstack_uart_block_embedded.c +SRC += hci_dump_embedded_stdout.c SRC += uECC.c -include ${AM_SoftwareRoot}/third_party/btstack/src/Makefile.inc