Add support for STM32F7 MCU
This commit is contained in:
@ -41,7 +41,12 @@
|
||||
#if ENABLED(HAVE_TMCDRIVER)
|
||||
|
||||
#include <SPI.h>
|
||||
#include <TMC26XStepper.h>
|
||||
|
||||
#if defined(STM32F7)
|
||||
#include "../HAL/HAL_STM32F7/TMC2660.h"
|
||||
#else
|
||||
#include <TMC26XStepper.h>
|
||||
#endif
|
||||
|
||||
#define _TMC_DEFINE(ST) TMC26XStepper stepper##ST(200, ST##_ENABLE_PIN, ST##_STEP_PIN, ST##_DIR_PIN, ST##_MAX_CURRENT, ST##_SENSE_RESISTOR)
|
||||
|
||||
|
@ -49,7 +49,11 @@
|
||||
// TMC26X drivers have STEP/DIR on normal pins, but ENABLE via SPI
|
||||
#if ENABLED(HAVE_TMCDRIVER)
|
||||
#include <SPI.h>
|
||||
#include <TMC26XStepper.h>
|
||||
#if defined(STM32F7)
|
||||
#include "../HAL/HAL_STM32F7/TMC2660.h"
|
||||
#else
|
||||
#include <TMC26XStepper.h>
|
||||
#endif
|
||||
void tmc_init();
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user