File tree Expand file tree Collapse file tree
lib/pbio/platform/virtual_hub Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88#define PBDRV_CONFIG_BLOCK_DEVICE_RAM_SIZE (50 * 1024)
99#define PBDRV_CONFIG_BLOCK_DEVICE_TEST (1)
1010
11+ // Use Bluetooth simulation locally.
12+ #ifndef PBDRV_CONFIG_RUN_ON_CI
1113#define PBDRV_CONFIG_BLUETOOTH (1)
1214#define PBDRV_CONFIG_BLUETOOTH_SIMULATION (1)
15+ #endif // PBDRV_CONFIG_RUN_ON_CI
1316
1417#define PBDRV_CONFIG_BUTTON (1)
1518#define PBDRV_CONFIG_BUTTON_TEST (1)
4649#define PBDRV_CONFIG_HAS_PORT_F (1)
4750#define PBDRV_CONFIG_HAS_PORT_VCC_CONTROL (1)
4851
49- #define PBDRV_CONFIG_USB (0)
52+ // USB mock driver used on CI.
53+ #ifdef PBDRV_CONFIG_RUN_ON_CI
54+ #define PBDRV_CONFIG_USB (1)
55+ #define PBDRV_CONFIG_USB_SIMULATION (1)
5056#define PBDRV_CONFIG_USB_MAX_PACKET_SIZE (64)
5157#define PBDRV_CONFIG_USB_NUM_BUFFERED_PACKETS (2)
52- #define PBDRV_CONFIG_USB_SIMULATION (0)
5358#define PBDRV_CONFIG_USB_MFG_STR u"Pybricks"
5459#define PBDRV_CONFIG_USB_PROD_STR u"Virtual Hub"
60+ #endif // PBDRV_CONFIG_RUN_ON_CI
You can’t perform that action at this time.
0 commit comments