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:
Rocco Marco Guglielmi 2018-03-10 22:37:39 +00:00
parent d4c4f24cff
commit 99b89a4a02
2 changed files with 12 additions and 17 deletions

View File

@ -850,8 +850,6 @@ static const struct BaseCompassVMT vmt_compass = {
* @init
*/
void lsm303dlhcObjectInit(LSM303DLHCDriver *devp) {
uint32_t i;
devp->vmt = &vmt_device;
devp->acc_if.vmt = &vmt_accelerometer;
devp->comp_if.vmt = &vmt_compass;
@ -861,7 +859,6 @@ void lsm303dlhcObjectInit(LSM303DLHCDriver *devp) {
devp->accaxes = LSM303DLHC_ACC_NUMBER_OF_AXES;
devp->compaxes = LSM303DLHC_COMP_NUMBER_OF_AXES;
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++)
devp->accbias[i] = LSM303DLHC_ACC_BIAS;
/* Configuring Compass subsystem */
/* Multiple write starting address.*/
cr[0] = LSM303DLHC_AD_COMP_CRA_REG;

View File

@ -495,12 +495,11 @@ typedef struct {
*/
I2CDriver *i2cp;
/**
* @brief I2C configuration associated to this LSM303DLHC accelerometer
* subsystem.
* @brief I2C configuration associated to this LSM303DLHC.
*/
const I2CConfig *i2ccfg;
/**
* @brief LSM303DLHC initial sensitivity.
* @brief LSM303DLHC accelerometer subsystem initial sensitivity.
*/
float *accsensitivity;
/**