8chan Official well known idle stepper configuration #5197
only:alphax-8chan
This commit is contained in:
parent
ace046c6ed
commit
eff74fa5d1
|
@ -1,11 +1,11 @@
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "gm_sbc.h"
|
#include "gm_sbc.h"
|
||||||
|
#include "defaults.h"
|
||||||
|
|
||||||
#if HW_HELLEN
|
#if HW_HELLEN
|
||||||
#include "hellen_meta.h"
|
#include "hellen_meta.h"
|
||||||
#endif // HW_HELLEN
|
#endif // HW_HELLEN
|
||||||
|
|
||||||
|
|
||||||
void setStepperHw() {
|
void setStepperHw() {
|
||||||
engineConfiguration->useStepperIdle = true;
|
engineConfiguration->useStepperIdle = true;
|
||||||
engineConfiguration->useHbridgesToDriveIdleStepper = true;
|
engineConfiguration->useHbridgesToDriveIdleStepper = true;
|
||||||
|
@ -13,6 +13,7 @@ void setStepperHw() {
|
||||||
engineConfiguration->stepperDcInvertedPins = false; // or true?
|
engineConfiguration->stepperDcInvertedPins = false; // or true?
|
||||||
|
|
||||||
#if HW_HELLEN
|
#if HW_HELLEN
|
||||||
|
setPPSInputs(EFI_ADC_NONE, EFI_ADC_NONE);
|
||||||
// using 8chan pinout for DC1: A26 (OUT_DC1+) and A27 (OUT_DC1-)
|
// using 8chan pinout for DC1: A26 (OUT_DC1+) and A27 (OUT_DC1-)
|
||||||
engineConfiguration->stepperDcIo[0].controlPin = H144_GP4; // DC1_PWM
|
engineConfiguration->stepperDcIo[0].controlPin = H144_GP4; // DC1_PWM
|
||||||
engineConfiguration->stepperDcIo[0].directionPin1 = H144_GP3; // DC1_DIR
|
engineConfiguration->stepperDcIo[0].directionPin1 = H144_GP3; // DC1_DIR
|
||||||
|
|
Loading…
Reference in New Issue