|
|
@@ -16,6 +16,10 @@
|
|
|
#include "stm32l4xx_hal.h"
|
|
|
#endif
|
|
|
|
|
|
+#if defined (STM32L031xx)
|
|
|
+#include "stm32l0xx_hal.h"
|
|
|
+#endif
|
|
|
+
|
|
|
#define ICM20948_ACCEL 0x10
|
|
|
#define ICM20948_GYRO 0x20
|
|
|
#define ICM20948_MAG 0x30
|
|
|
@@ -177,35 +181,34 @@ typedef struct{
|
|
|
uint16_t pin;
|
|
|
}McuPin_typeDef;
|
|
|
|
|
|
-
|
|
|
typedef struct
|
|
|
{
|
|
|
- accel_dlp_cfg low_pass_filter = ACCEL_lpf_OFF;
|
|
|
- accel_samplerate sample_rate = ACCEL_samplerate_562_5Hz;
|
|
|
- accel_full_scale full_scale = _4g;
|
|
|
+ accel_dlp_cfg low_pass_filter;// = ACCEL_lpf_OFF;
|
|
|
+ accel_samplerate sample_rate;// = ACCEL_samplerate_562_5Hz;
|
|
|
+ accel_full_scale full_scale;// = _4g;
|
|
|
}Config_Accel_t;
|
|
|
|
|
|
typedef struct
|
|
|
{
|
|
|
- gyro_dlp_cfg low_pass_filter = GYRO_low_pass_OFF;
|
|
|
- gyro_samplerate sample_rate = GYRO_samplerate_375_0Hz;
|
|
|
- gyro_full_scale full_scale = _250dps;
|
|
|
+ gyro_dlp_cfg low_pass_filter;// = GYRO_low_pass_OFF;
|
|
|
+ gyro_samplerate sample_rate;// = GYRO_samplerate_375_0Hz;
|
|
|
+ gyro_full_scale full_scale;// = _250dps;
|
|
|
}Config_Gyro_t;
|
|
|
|
|
|
typedef struct
|
|
|
{
|
|
|
- AK09916_operation_mode mode = mag_mode_power_down;
|
|
|
+ AK09916_operation_mode mode;// = mag_mode_power_down;
|
|
|
}Config_Mag_t;
|
|
|
|
|
|
typedef struct
|
|
|
{
|
|
|
- McuPin_typeDef *pinCS = NULL;
|
|
|
+ McuPin_typeDef *pinCS;// = NULL;
|
|
|
//McuPin_typeDef *pinINT = NULL;
|
|
|
- McuPin_typeDef *pinLED = NULL;
|
|
|
+ McuPin_typeDef *pinLED;// = NULL;
|
|
|
Config_Accel_t accel;
|
|
|
Config_Gyro_t gyro;
|
|
|
Config_Mag_t mag;
|
|
|
- interrupt_source_enum int_source = interrupt_disable;
|
|
|
+ interrupt_source_enum int_source;// = interrupt_disable;
|
|
|
}icm20948_Config;
|
|
|
|
|
|
|