diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2018-03-12 21:36:48 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2018-03-12 21:36:48 +0000 |
commit | 9dc196bbdc63a97e28062058001d0ea2b98951c5 (patch) | |
tree | 256507198c86ebbfa06e695cd2a0dd44435b7a0b /os | |
parent | fce92777c829af6b3214375ed8643dbbd7a92da8 (diff) | |
download | ChibiOS-9dc196bbdc63a97e28062058001d0ea2b98951c5.tar.gz ChibiOS-9dc196bbdc63a97e28062058001d0ea2b98951c5.tar.bz2 ChibiOS-9dc196bbdc63a97e28062058001d0ea2b98951c5.zip |
Cosmetic changes
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11709 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os')
-rw-r--r-- | os/ex/ST/l3gd20.c | 15 | ||||
-rw-r--r-- | os/ex/ST/lsm303dlhc.c | 4 |
2 files changed, 11 insertions, 8 deletions
diff --git a/os/ex/ST/l3gd20.c b/os/ex/ST/l3gd20.c index 17100ca36..9a98ec145 100644 --- a/os/ex/ST/l3gd20.c +++ b/os/ex/ST/l3gd20.c @@ -247,7 +247,8 @@ static msg_t gyro_sample_bias(void *ip) { */ static msg_t gyro_set_bias(void *ip, float *bp) {
L3GD20Driver* devp; - uint32_t i; + uint32_t i;
+ msg_t msg = MSG_OK; osalDbgCheck((ip != NULL) && (bp != NULL));
@@ -260,7 +261,7 @@ static msg_t gyro_set_bias(void *ip, float *bp) { for(i = 0; i < L3GD20_GYRO_NUMBER_OF_AXES; i++) { devp->gyrobias[i] = bp[i]; } - return MSG_OK; + return msg; } /**
@@ -275,7 +276,8 @@ static msg_t gyro_set_bias(void *ip, float *bp) { */ static msg_t gyro_reset_bias(void *ip) {
L3GD20Driver* devp; - uint32_t i; + uint32_t i;
+ msg_t msg = MSG_OK; osalDbgCheck(ip != NULL);
@@ -287,7 +289,7 @@ static msg_t gyro_reset_bias(void *ip) { for(i = 0; i < L3GD20_GYRO_NUMBER_OF_AXES; i++) devp->gyrobias[i] = L3GD20_GYRO_BIAS; - return MSG_OK; + return msg; } /**
@@ -304,7 +306,8 @@ static msg_t gyro_reset_bias(void *ip) { */ static msg_t gyro_set_sensivity(void *ip, float *sp) {
L3GD20Driver* devp; - uint32_t i; + uint32_t i;
+ msg_t msg = MSG_OK; osalDbgCheck((ip != NULL) && (sp !=NULL)); @@ -317,7 +320,7 @@ static msg_t gyro_set_sensivity(void *ip, float *sp) { for(i = 0; i < L3GD20_GYRO_NUMBER_OF_AXES; i++) { devp->gyrosensitivity[i] = sp[i]; } - return MSG_OK; + return msg; } /**
diff --git a/os/ex/ST/lsm303dlhc.c b/os/ex/ST/lsm303dlhc.c index 53c49e680..e6a1817e3 100644 --- a/os/ex/ST/lsm303dlhc.c +++ b/os/ex/ST/lsm303dlhc.c @@ -854,7 +854,7 @@ void lsm303dlhcObjectInit(LSM303DLHCDriver *devp) { devp->accaxes = LSM303DLHC_ACC_NUMBER_OF_AXES;
devp->compaxes = LSM303DLHC_COMP_NUMBER_OF_AXES;
- devp->state = LSM303DLHC_STOP;
+ devp->state = LSM303DLHC_STOP;
}
/**
@@ -876,7 +876,7 @@ void lsm303dlhcStart(LSM303DLHCDriver *devp, const LSM303DLHCConfig *config) { devp->config = config;
- /* Configuring Accelerometer subsystem */
+ /* Configuring Accelerometer subsystem.*/
/* Multiple write starting address.*/
cr[0] = LSM303DLHC_AD_ACC_CTRL_REG1;
|