Skip to content

Commit 1fd2011

Browse files
committed
pbio/drv/motor_driver: Rename virtual to virtual_cpython.
This allows us to add other virtual implementations.
1 parent 72087d3 commit 1fd2011

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bricks/_common/sources.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ PBIO_SRC_C = $(addprefix lib/pbio/,\
163163
drv/motor_driver/motor_driver_ev3dev_stretch.c \
164164
drv/motor_driver/motor_driver_hbridge_pwm.c \
165165
drv/motor_driver/motor_driver_nxt.c \
166-
drv/motor_driver/motor_driver_virtual.c \
166+
drv/motor_driver/motor_driver_virtual_cpython.c \
167167
drv/pwm/pwm_core.c \
168168
drv/pwm/pwm_lp50xx_stm32.c \
169169
drv/pwm/pwm_stm32_tim.c \

lib/pbio/drv/motor_driver/motor_driver_virtual.c renamed to lib/pbio/drv/motor_driver/motor_driver_virtual_cpython.c

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

44
#include <pbdrv/config.h>
55

6-
#if PBDRV_CONFIG_MOTOR_DRIVER_VIRTUAL
6+
#if PBDRV_CONFIG_MOTOR_DRIVER_VIRTUAL_CPYTHON
77

88
#include <stdint.h>
99

@@ -44,4 +44,4 @@ void pbdrv_motor_driver_init(void) {
4444
}
4545
}
4646

47-
#endif // PBDRV_CONFIG_MOTOR_DRIVER_VIRTUAL
47+
#endif // PBDRV_CONFIG_MOTOR_DRIVER_VIRTUAL_CPYTHON

lib/pbio/platform/virtual_hub/pbdrvconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#define PBDRV_CONFIG_MOTOR_DRIVER (1)
2727
#define PBDRV_CONFIG_MOTOR_DRIVER_NUM_DEV (6)
28-
#define PBDRV_CONFIG_MOTOR_DRIVER_VIRTUAL (1)
28+
#define PBDRV_CONFIG_MOTOR_DRIVER_VIRTUAL_CPYTHON (1)
2929

3030
#define PBDRV_CONFIG_VIRTUAL (1)
3131

0 commit comments

Comments
 (0)