Merge pull request #1940 from martinbudden/bf_gyro_struct_alignment
Improved gyro structure alignment
This commit is contained in:
commit
7728bd735e
|
@ -42,12 +42,12 @@ typedef struct gyroDev_s {
|
|||
sensorGyroInterruptStatusFuncPtr intStatus;
|
||||
extiCallbackRec_t exti;
|
||||
float scale; // scalefactor
|
||||
volatile bool dataReady;
|
||||
uint16_t lpf;
|
||||
int16_t gyroADCRaw[XYZ_AXIS_COUNT];
|
||||
uint16_t lpf;
|
||||
volatile bool dataReady;
|
||||
sensor_align_e gyroAlign;
|
||||
const extiConfig_t *mpuIntExtiConfig;
|
||||
mpuDetectionResult_t mpuDetectionResult;
|
||||
const extiConfig_t *mpuIntExtiConfig;
|
||||
mpuConfiguration_t mpuConfiguration;
|
||||
} gyroDev_t;
|
||||
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
#pragma once
|
||||
|
||||
typedef struct drv_adxl345_config_s {
|
||||
bool useFifo;
|
||||
uint16_t dataRate;
|
||||
bool useFifo;
|
||||
} drv_adxl345_config_t;
|
||||
|
||||
bool adxl345Detect(drv_adxl345_config_t *init, accDev_t *acc);
|
||||
|
|
|
@ -124,12 +124,12 @@ typedef void(*mpuResetFuncPtr)(void);
|
|||
extern mpuResetFuncPtr mpuReset;
|
||||
|
||||
typedef struct mpuConfiguration_s {
|
||||
uint8_t gyroReadXRegister; // Y and Z must registers follow this, 2 words each
|
||||
mpuReadRegisterFunc read;
|
||||
mpuWriteRegisterFunc write;
|
||||
mpuReadRegisterFunc slowread;
|
||||
mpuWriteRegisterFunc verifywrite;
|
||||
mpuResetFuncPtr reset;
|
||||
uint8_t gyroReadXRegister; // Y and Z must registers follow this, 2 words each
|
||||
} mpuConfiguration_t;
|
||||
|
||||
enum gyro_fsr_e {
|
||||
|
|
Loading…
Reference in New Issue