File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ INC += -I$(BTSTACK_DIR)/3rd-party/yxml
35
35
SRC_BTSTACK_C = \
36
36
$(addprefix lib/btstack/src/, $(SRC_FILES ) ) \
37
37
$(addprefix lib/btstack/src/ble/, $(filter-out % _tlv.c, $(SRC_BLE_FILES ) ) ) \
38
+ lib/btstack/platform/embedded/hci_dump_embedded_stdout.c \
38
39
39
40
ifeq ($(MICROPY_BLUETOOTH_BTSTACK_USB ) ,1)
40
41
ifeq ($(MICROPY_BLUETOOTH_BTSTACK_H4 ) ,1)
Original file line number Diff line number Diff line change 7
7
#define ENABLE_LE_CENTRAL
8
8
// #define ENABLE_CLASSIC
9
9
#define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE
10
+ #define ENABLE_PRINTF_HEXDUMP
10
11
// #define ENABLE_LOG_INFO
11
12
// #define ENABLE_LOG_DEBUG
12
13
#define ENABLE_LOG_ERROR
Original file line number Diff line number Diff line change 32
32
33
33
#include "lib/btstack/src/btstack.h"
34
34
#include "lib/btstack/src/hci_transport_h4.h"
35
+ #include "lib/btstack/platform/embedded/hci_dump_embedded_stdout.h"
35
36
#include "extmod/mpbthci.h"
36
37
#include "extmod/btstack/btstack_hci_uart.h"
37
38
#include "extmod/btstack/modbluetooth_btstack.h"
@@ -140,7 +141,7 @@ void mp_bluetooth_hci_poll(void) {
140
141
void mp_bluetooth_btstack_port_init (void ) {
141
142
btstack_run_loop_init (& mp_btstack_runloop_stm32 );
142
143
143
- // hci_dump_open(NULL, HCI_DUMP_STDOUT );
144
+ // hci_dump_init(hci_dump_embedded_stdout_get_instance() );
144
145
const hci_transport_t * transport = hci_transport_h4_instance_for_uart (& mp_bluetooth_btstack_hci_uart_block );
145
146
hci_init (transport , & hci_transport_config_uart );
146
147
Original file line number Diff line number Diff line change 35
35
#include "lib/btstack/platform/embedded/btstack_run_loop_embedded.h"
36
36
#include "lib/btstack/platform/embedded/hal_cpu.h"
37
37
#include "lib/btstack/platform/embedded/hal_time_ms.h"
38
+ #include "lib/btstack/platform/embedded/hci_dump_embedded_stdout.h"
38
39
39
40
#include "extmod/btstack/modbluetooth_btstack.h"
40
41
@@ -81,7 +82,7 @@ uint32_t hal_time_ms(void) {
81
82
void mp_bluetooth_btstack_port_init (void ) {
82
83
btstack_run_loop_init (btstack_run_loop_embedded_get_instance ());
83
84
84
- // hci_dump_open(NULL, HCI_DUMP_STDOUT );
85
+ // hci_dump_init(hci_dump_embedded_stdout_get_instance() );
85
86
86
87
#if MICROPY_BLUETOOTH_BTSTACK_H4
87
88
mp_bluetooth_btstack_port_init_h4 ();
You can’t perform that action at this time.
0 commit comments