Add support for STM32F7 MCU

This commit is contained in:
Morten
2018-01-11 22:29:08 +01:00
committed by Scott Lahteine
parent a27fa80a7e
commit a0246c5c96
32 changed files with 7633 additions and 10 deletions

View File

@ -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)