Move out of CMM (#3750)

This needs additional investigation. But allocating these structs
in CMM cause HardFault
This commit is contained in:
Andrey G 2022-01-07 18:09:48 +03:00 committed by GitHub
parent fcdb7b340d
commit 5bc9289d74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -17,8 +17,10 @@
#include "dc_motors.h"
#if ! EFI_UNIT_TEST
#include "stepper.h"
static StepDirectionStepper iacStepperHw CCM_OPTIONAL;
static DualHBridgeStepper iacHbridgeHw CCM_OPTIONAL;
/* Storing two following structs in CCM memory cause HardFault (at least on F4)
* This need deep debuging. Until it is moved out of CMM. */
static StepDirectionStepper iacStepperHw /*CCM_OPTIONAL*/;
static DualHBridgeStepper iacHbridgeHw /*CCM_OPTIONAL*/;
StepperMotor iacMotor CCM_OPTIONAL;
#endif /* EFI_UNIT_TEST */