Skip to content

Commit b3c9f81

Browse files
committed
pbio/platform: Drop unused sys/bluetooth config.
There is only a driver config flag.
1 parent 0c4f788 commit b3c9f81

File tree

9 files changed

+3
-12
lines changed

9 files changed

+3
-12
lines changed

lib/pbio/doc/doxygen.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,6 @@ PREDEFINED = \
21612161
PBDRV_CONFIG_HAS_PORT_2=1 \
21622162
PBDRV_CONFIG_HAS_PORT_3=1 \
21632163
PBDRV_CONFIG_HAS_PORT_4=1 \
2164-
PBSYS_CONFIG_BLUETOOTH=1 \
21652164
PBSYS_CONFIG_HUB_LIGHT_MATRIX=1 \
21662165
PBSYS_CONFIG_STATUS_LIGHT=1 \
21672166
PBSYS_CONFIG_STATUS_LIGHT_BATTERY=1 \

lib/pbio/platform/city_hub/pbsysconfig.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6 (1)
1010
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6_3_NATIVE (0)
1111
#define PBSYS_CONFIG_BATTERY_CHARGER (0)
12-
#define PBSYS_CONFIG_BLUETOOTH (1)
1312
#define PBSYS_CONFIG_HMI (1)
1413
#define PBSYS_CONFIG_HMI_STOP_BUTTON (1 << 5) // center
1514
#define PBSYS_CONFIG_HMI_PUP (1)

lib/pbio/platform/essential_hub/pbsysconfig.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6 (1)
88
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6_3_NATIVE (1)
99
#define PBSYS_CONFIG_BATTERY_CHARGER (1)
10-
#define PBSYS_CONFIG_BLUETOOTH (1)
1110
#define PBSYS_CONFIG_HMI (1)
1211
#define PBSYS_CONFIG_HMI_STOP_BUTTON (1 << 5) // center
1312
#define PBSYS_CONFIG_HMI_PUP (1)

lib/pbio/platform/move_hub/pbsysconfig.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6 (1)
1010
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6_3_NATIVE (0)
1111
#define PBSYS_CONFIG_BATTERY_CHARGER (0)
12-
#define PBSYS_CONFIG_BLUETOOTH (1)
1312
#define PBSYS_CONFIG_HMI (1)
1413
#define PBSYS_CONFIG_HMI_STOP_BUTTON (1 << 5) // center
1514
#define PBSYS_CONFIG_HMI_PUP (1)

lib/pbio/platform/prime_hub/pbsysconfig.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6 (1)
88
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6_3_NATIVE (1)
99
#define PBSYS_CONFIG_BATTERY_CHARGER (1)
10-
#define PBSYS_CONFIG_BLUETOOTH (1)
11-
#define PBSYS_CONFIG_BLUETOOTH_TOGGLE (1)
1210
#define PBSYS_CONFIG_HMI (1)
1311
#define PBSYS_CONFIG_HMI_STOP_BUTTON (1 << 5) // center
1412
#define PBSYS_CONFIG_HMI_NUM_SLOTS (5)

lib/pbio/platform/technic_hub/pbsysconfig.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6 (1)
1010
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6_3_NATIVE (0)
1111
#define PBSYS_CONFIG_BATTERY_CHARGER (0)
12-
#define PBSYS_CONFIG_BLUETOOTH (1)
1312
#define PBSYS_CONFIG_HMI (1)
1413
#define PBSYS_CONFIG_HMI_STOP_BUTTON (1 << 5) // center
1514
#define PBSYS_CONFIG_HMI_PUP (1)

lib/pbio/platform/test/pbsysconfig.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#define PBSYS_CONFIG_FEATURE_BUILTIN_USER_PROGRAM_IMU_CALIBRATION (0)
77
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6 (0)
88
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6_3_NATIVE (0)
9-
#define PBSYS_CONFIG_BLUETOOTH (1)
109
#define PBSYS_CONFIG_HOST (1)
1110
#define PBSYS_CONFIG_HOST_STDIN_BUF_SIZE (64)
1211
#define PBSYS_CONFIG_HMI_NUM_SLOTS (0)

lib/pbio/platform/virtual_hub/pbsysconfig.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#define PBSYS_CONFIG_FEATURE_PROGRAM_FORMAT_MULTI_MPY_V6_3_NATIVE (0)
99

1010
#define PBSYS_CONFIG_BATTERY_CHARGER (0)
11-
#define PBSYS_CONFIG_BLUETOOTH (1)
1211
#define PBSYS_CONFIG_HOST (1)
1312
#define PBSYS_CONFIG_HOST_STDIN_BUF_SIZE (21)
1413
#define PBSYS_CONFIG_HMI (1)

lib/pbio/sys/host.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#include <pbsys/command.h>
1414
#include <pbsys/host.h>
1515

16-
#define BLE_ONLY (PBSYS_CONFIG_BLUETOOTH && (!PBDRV_CONFIG_USB || PBDRV_CONFIG_USB_CHARGE_ONLY))
17-
#define USB_ONLY (!PBSYS_CONFIG_BLUETOOTH && PBDRV_CONFIG_USB && !PBDRV_CONFIG_USB_CHARGE_ONLY)
18-
#define BLE_AND_USB (PBSYS_CONFIG_BLUETOOTH && PBDRV_CONFIG_USB && !PBDRV_CONFIG_USB_CHARGE_ONLY)
16+
#define BLE_ONLY (PBDRV_CONFIG_BLUETOOTH && (!PBDRV_CONFIG_USB || PBDRV_CONFIG_USB_CHARGE_ONLY))
17+
#define USB_ONLY (!PBDRV_CONFIG_BLUETOOTH && PBDRV_CONFIG_USB && !PBDRV_CONFIG_USB_CHARGE_ONLY)
18+
#define BLE_AND_USB (PBDRV_CONFIG_BLUETOOTH && PBDRV_CONFIG_USB && !PBDRV_CONFIG_USB_CHARGE_ONLY)
1919

2020
static pbsys_host_stdin_event_callback_t pbsys_host_stdin_event_callback;
2121
static lwrb_t pbsys_host_stdin_ring_buf;

0 commit comments

Comments
 (0)