Fix STM32F7 STEPPER_ENABLE_PIN

This commit is contained in:
Scott Lahteine 2019-08-18 23:24:55 -05:00
parent 08434b3605
commit 4d1a662571
2 changed files with 3 additions and 3 deletions

View file

@ -59,8 +59,9 @@ void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency) {
timerConfig[0].IRQ_Id = TIM5_IRQn; timerConfig[0].IRQ_Id = TIM5_IRQn;
timerConfig[0].callback = (uint32_t)TC5_Handler; timerConfig[0].callback = (uint32_t)TC5_Handler;
HAL_NVIC_SetPriority(timerConfig[0].IRQ_Id, 1, 0); HAL_NVIC_SetPriority(timerConfig[0].IRQ_Id, 1, 0);
SET_OUTPUT(STEPPER_ENABLE_PIN); #if PIN_EXISTS(STEPPER_ENABLE)
WRITE(STEPPER_ENABLE_PIN); OUT_WRITE(STEPPER_ENABLE_PIN, HIGH);
#endif
break; break;
case TEMP_TIMER_NUM: case TEMP_TIMER_NUM:
//TEMP TIMER TIM7 // any available 16bit Timer (1 already used for PWM) //TEMP TIMER TIM7 // any available 16bit Timer (1 already used for PWM)

View file

@ -189,7 +189,6 @@ void TMC26XStepper::start() {
pinMode(step_pin, OUTPUT); pinMode(step_pin, OUTPUT);
pinMode(dir_pin, OUTPUT); pinMode(dir_pin, OUTPUT);
pinMode(cs_pin, OUTPUT); pinMode(cs_pin, OUTPUT);
//SET_OUTPUT(STEPPER_ENABLE_PIN);
extDigitalWrite(step_pin, LOW); extDigitalWrite(step_pin, LOW);
extDigitalWrite(dir_pin, LOW); extDigitalWrite(dir_pin, LOW);
extDigitalWrite(cs_pin, HIGH); extDigitalWrite(cs_pin, HIGH);