1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-27 08:14:31 +02:00

Fixing more comiple issues with non default setups

This commit is contained in:
bdring
2019-10-01 11:14:02 -05:00
parent 4a24a54b0a
commit 414ce3528b
3 changed files with 3 additions and 8 deletions

View File

@@ -86,7 +86,6 @@
#endif
#ifdef USE_TRINAMIC
#include "grbl_trinamic.h"
//#include "TMCStepper.h" // https://github.com/teemuatlut/TMCStepper
#include "grbl_trinamic.h"
#endif

View File

@@ -19,17 +19,13 @@
You should have received a copy of the GNU General Public License
along with Grbl. If not, see <http://www.gnu.org/licenses/>.
*/
#include "grbl.h"
#ifdef USE_TRINAMIC
#include "grbl.h"
// TODO try to use the #define ## method to clean this up
//#define DRIVER(driver, axis) driver##Stepper = TRINAMIC_axis## = driver##Stepper(axis##_CS_PIN, axis##_RSENSE);
#ifdef X_TRINAMIC
#ifdef X_DRIVER_TMC2130
TMC2130Stepper TRINAMIC_X = TMC2130Stepper(X_CS_PIN, X_RSENSE);

View File

@@ -22,9 +22,9 @@
#define GRBL_TRINAMIC_h
#include "grbl.h"
#include <TMCStepper.h> // https://github.com/teemuatlut/TMCStepper
#ifdef USE_TRINAMIC
#include <TMCStepper.h> // https://github.com/teemuatlut/TMCStepper
void Trinamic_Init();
#endif