aboutsummaryrefslogtreecommitdiffstats
path: root/os/ex/ST/l3gd20.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/ex/ST/l3gd20.c')
-rw-r--r--os/ex/ST/l3gd20.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/os/ex/ST/l3gd20.c b/os/ex/ST/l3gd20.c
index 46f9bb434..4c6965875 100644
--- a/os/ex/ST/l3gd20.c
+++ b/os/ex/ST/l3gd20.c
@@ -287,11 +287,11 @@ static msg_t calibrate(void *ip) {
return MSG_OK;
}
-static const struct BaseSensorVMT vmtse = {
+static const struct BaseSensorVMT vmt_basesensor = {
get_axes_number, read_raw, read_cooked
};
-static const struct BaseGyroscopeVMT vmtgy = {
+static const struct BaseGyroscopeVMT vmt_basegyroscope = {
get_axes_number, read_raw, read_cooked,
reset_calibration, calibrate
};
@@ -311,9 +311,9 @@ static const struct BaseGyroscopeVMT vmtgy = {
void l3gd20ObjectInit(L3GD20Driver *devp) {
uint32_t i;
- devp->vmtse = &vmtse;
- devp->vmtgy = &vmtgy;
- devp->vmt = (struct L3GD20VMT*) &vmtgy;
+ devp->vmt_basesensor = &vmt_basesensor;
+ devp->vmt_basegyroscope = &vmt_basegyroscope;
+ devp->vmt = (struct L3GD20VMT*) &vmt_basegyroscope;
devp->state = L3GD20_STOP;
devp->config = NULL;
for(i = 0; i < L3GD20_NUMBER_OF_AXES; i++)