1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

Add fast RAM support, CCM or TCM depending on processor

This commit is contained in:
Martin Budden 2017-12-14 22:23:34 +00:00
parent 5892cac45d
commit a33a82725e
24 changed files with 105 additions and 59 deletions

View file

@ -67,7 +67,7 @@
#endif
acc_t acc; // acc access functions
FAST_RAM acc_t acc; // acc access functions
static float accumulatedMeasurements[XYZ_AXIS_COUNT];
static int accumulatedMeasurementCount;

View file

@ -74,12 +74,12 @@
#define USE_GYRO_SLEW_LIMITER
#endif
gyro_t gyro;
static uint8_t gyroDebugMode;
FAST_RAM gyro_t gyro;
static FAST_RAM uint8_t gyroDebugMode;
static float accumulatedMeasurements[XYZ_AXIS_COUNT];
static timeUs_t accumulatedMeasurementTimeUs;
static timeUs_t accumulationLastTimeSampledUs;
static FAST_RAM float accumulatedMeasurements[XYZ_AXIS_COUNT];
static FAST_RAM timeUs_t accumulatedMeasurementTimeUs;
static FAST_RAM timeUs_t accumulationLastTimeSampledUs;
typedef struct gyroCalibration_s {
int32_t sum[XYZ_AXIS_COUNT];
@ -111,7 +111,7 @@ typedef struct gyroSensor_s {
biquadFilter_t notchFilterDyn[XYZ_AXIS_COUNT];
} gyroSensor_t;
static gyroSensor_t gyroSensor1;
static FAST_RAM gyroSensor_t gyroSensor1;
static void gyroInitSensorFilters(gyroSensor_t *gyroSensor);