hci_dump: apollo2 port

This commit is contained in:
Matthias Ringwald 2021-03-10 10:42:36 +01:00
parent be2a754961
commit 287aaa024c
3 changed files with 4 additions and 2 deletions

View File

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

View File

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

View File

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