Skip to content

Commit 84ddf86

Browse files
committed
add debug print
1 parent 3198a85 commit 84ddf86

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

lib/pbio/drv/bluetooth/bluetooth_stm32_cc2640.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
PROCESS(pbdrv_bluetooth_spi_process, "Bluetooth SPI");
4747

48-
#define DEBUG 0
48+
#define DEBUG 1
4949

5050
#if DEBUG
5151
#include <pbdrv/../../drv/uart/uart_debug_first_port.h>
@@ -1174,6 +1174,7 @@ static PT_THREAD(observe_task(struct pt *pt, pbio_task_t *task)) {
11741174
}
11751175

11761176
void pbdrv_bluetooth_start_observing(pbio_task_t *task, pbdrv_bluetooth_start_observing_callback_t callback) {
1177+
DEBUG_PRINT("pbdrv_bluetooth_start_observing\n");
11771178
observe_callback = callback;
11781179
start_task(task, observe_task, NULL);
11791180
}
@@ -1199,6 +1200,7 @@ static PT_THREAD(stop_observe_task(struct pt *pt, pbio_task_t *task)) {
11991200
}
12001201

12011202
void pbdrv_bluetooth_stop_observing(pbio_task_t *task) {
1203+
DEBUG_PRINT("pbdrv_bluetooth_stop_observing\n");
12021204
observe_callback = NULL;
12031205
// avoid restarting observing even if this task get queued
12041206
observe_restart_enabled = false;

lib/pbio/platform/technic_hub/pbdrvconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
#define PBDRV_CONFIG_RESET_STM32_HAS_BLE_BOOTLOADER (1)
8080

8181
#define PBDRV_CONFIG_UART (1)
82-
#define PBDRV_CONFIG_UART_DEBUG_FIRST_PORT (0)
82+
#define PBDRV_CONFIG_UART_DEBUG_FIRST_PORT (1)
8383
#define PBDRV_CONFIG_UART_STM32L4_LL_DMA (1)
8484
#define PBDRV_CONFIG_UART_STM32L4_LL_DMA_NUM_UART (4)
8585

lib/pbio/platform/technic_hub/pbsysconfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
#include "pbdrvconfig.h"
55

6-
#define PBSYS_CONFIG_FEATURE_BUILTIN_USER_PROGRAM_REPL (1)
7-
#define PBSYS_CONFIG_FEATURE_BUILTIN_USER_PROGRAM_PORT_VIEW (1)
6+
#define PBSYS_CONFIG_FEATURE_BUILTIN_USER_PROGRAM_REPL (0)
7+
#define PBSYS_CONFIG_FEATURE_BUILTIN_USER_PROGRAM_PORT_VIEW (0)
88
#define PBSYS_CONFIG_FEATURE_BUILTIN_USER_PROGRAM_IMU_CALIBRATION (0)
99
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6 (1)
1010
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6_1_NATIVE (0)

0 commit comments

Comments
 (0)