Add support for STM32F7 MCU
This commit is contained in:
1 parent
a27fa80a7e
commit
a0246c5c96
32 files changed
+7633
-10
No files matched your search
@@ -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