Minor fixes
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11687 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
parent
d4c4f24cff
commit
99b89a4a02
|
@ -850,8 +850,6 @@ static const struct BaseCompassVMT vmt_compass = {
|
||||||
* @init
|
* @init
|
||||||
*/
|
*/
|
||||||
void lsm303dlhcObjectInit(LSM303DLHCDriver *devp) {
|
void lsm303dlhcObjectInit(LSM303DLHCDriver *devp) {
|
||||||
uint32_t i;
|
|
||||||
|
|
||||||
devp->vmt = &vmt_device;
|
devp->vmt = &vmt_device;
|
||||||
devp->acc_if.vmt = &vmt_accelerometer;
|
devp->acc_if.vmt = &vmt_accelerometer;
|
||||||
devp->comp_if.vmt = &vmt_compass;
|
devp->comp_if.vmt = &vmt_compass;
|
||||||
|
@ -861,7 +859,6 @@ void lsm303dlhcObjectInit(LSM303DLHCDriver *devp) {
|
||||||
devp->accaxes = LSM303DLHC_ACC_NUMBER_OF_AXES;
|
devp->accaxes = LSM303DLHC_ACC_NUMBER_OF_AXES;
|
||||||
devp->compaxes = LSM303DLHC_COMP_NUMBER_OF_AXES;
|
devp->compaxes = LSM303DLHC_COMP_NUMBER_OF_AXES;
|
||||||
|
|
||||||
|
|
||||||
devp->state = LSM303DLHC_STOP;
|
devp->state = LSM303DLHC_STOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -977,7 +974,6 @@ void lsm303dlhcStart(LSM303DLHCDriver *devp, const LSM303DLHCConfig *config) {
|
||||||
for(i = 0; i < LSM303DLHC_ACC_NUMBER_OF_AXES; i++)
|
for(i = 0; i < LSM303DLHC_ACC_NUMBER_OF_AXES; i++)
|
||||||
devp->accbias[i] = LSM303DLHC_ACC_BIAS;
|
devp->accbias[i] = LSM303DLHC_ACC_BIAS;
|
||||||
|
|
||||||
|
|
||||||
/* Configuring Compass subsystem */
|
/* Configuring Compass subsystem */
|
||||||
/* Multiple write starting address.*/
|
/* Multiple write starting address.*/
|
||||||
cr[0] = LSM303DLHC_AD_COMP_CRA_REG;
|
cr[0] = LSM303DLHC_AD_COMP_CRA_REG;
|
||||||
|
|
|
@ -495,12 +495,11 @@ typedef struct {
|
||||||
*/
|
*/
|
||||||
I2CDriver *i2cp;
|
I2CDriver *i2cp;
|
||||||
/**
|
/**
|
||||||
* @brief I2C configuration associated to this LSM303DLHC accelerometer
|
* @brief I2C configuration associated to this LSM303DLHC.
|
||||||
* subsystem.
|
|
||||||
*/
|
*/
|
||||||
const I2CConfig *i2ccfg;
|
const I2CConfig *i2ccfg;
|
||||||
/**
|
/**
|
||||||
* @brief LSM303DLHC initial sensitivity.
|
* @brief LSM303DLHC accelerometer subsystem initial sensitivity.
|
||||||
*/
|
*/
|
||||||
float *accsensitivity;
|
float *accsensitivity;
|
||||||
/**
|
/**
|
||||||
|
@ -561,10 +560,10 @@ typedef struct {
|
||||||
* @brief @p LSM303DLHC specific methods.
|
* @brief @p LSM303DLHC specific methods.
|
||||||
*/
|
*/
|
||||||
#define _lsm303dlhc_methods_alone \
|
#define _lsm303dlhc_methods_alone \
|
||||||
/* Change full scale value of LSM303DLHC accelerometer subsystem .*/ \
|
/* Change full scale value of LSM303DLHC accelerometer subsystem.*/ \
|
||||||
msg_t (*acc_set_full_scale)(LSM303DLHCDriver *instance, \
|
msg_t (*acc_set_full_scale)(LSM303DLHCDriver *instance, \
|
||||||
lsm303dlhc_acc_fs_t fs); \
|
lsm303dlhc_acc_fs_t fs); \
|
||||||
/* Change full scale value of LSM303DLHC compass subsystem .*/ \
|
/* Change full scale value of LSM303DLHC compass subsystem.*/ \
|
||||||
msg_t (*comp_set_full_scale)(LSM303DLHCDriver *instance, \
|
msg_t (*comp_set_full_scale)(LSM303DLHCDriver *instance, \
|
||||||
lsm303dlhc_comp_fs_t fs); \
|
lsm303dlhc_comp_fs_t fs); \
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue