Reorg'd files to allow build from Arduino IDE.

To build Hibiscus, it is only necessary now to sym link to
ArduinoAddons/arduino-1.8.3/libraries/TMC2130Stepper from
the Arduino libs directory.
master
Marcio Teixeira 6 years ago
parent 6640d8175f
commit b65c4e06d2

@ -1,7 +1,7 @@
#ifndef TMC2130Stepper_MACROS_H #ifndef TMC2130Stepper_MACROS_H
#define TMC2130Stepper_MACROS_H #define TMC2130Stepper_MACROS_H
#include "TMC2130Stepper.h" #include "TMC2130Stepper.h"
#include "../TMC2130Stepper_REGDEFS.h" #include "TMC2130Stepper_REGDEFS.h"
#define WRITE_REG(R) send2130(TMC2130_WRITE|REG_##R, &R##_sr); #define WRITE_REG(R) send2130(TMC2130_WRITE|REG_##R, &R##_sr);

@ -1,6 +1,7 @@
#ifndef TMC2130Stepper_UTILITY_h #ifndef TMC2130Stepper_UTILITY_h
#define TMC2130Stepper_UTILITY_h #define TMC2130Stepper_UTILITY_h
#ifdef TMC2130DEBUG
void print_HEX(uint32_t data) { void print_HEX(uint32_t data) {
for(uint8_t B=24; B>=4; B-=8){ for(uint8_t B=24; B>=4; B-=8){
Serial.print((data>>(B+4))&0xF, HEX); Serial.print((data>>(B+4))&0xF, HEX);
@ -29,5 +30,6 @@ void print_BIN(uint32_t data) {
Serial.print((data>>b)&0b1); Serial.print((data>>b)&0b1);
} }
} }
#endif
#endif #endif

@ -13,7 +13,7 @@
* got disabled. * got disabled.
*/ */
#define LULZBOT_FW_VERSION ".74" // Change this with each update #define LULZBOT_FW_VERSION ".75" // Change this with each update
#if ( \ #if ( \
!defined(LULZBOT_Gladiola_Mini) && \ !defined(LULZBOT_Gladiola_Mini) && \

@ -314,7 +314,6 @@ VPATH += $(ARDUINO_INSTALL_DIR)/libraries/U8glib/utility
endif endif
ifeq ($(TMC2630), 1) ifeq ($(TMC2630), 1)
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/TMC2130Stepper VPATH += $(ARDUINO_INSTALL_DIR)/libraries/TMC2130Stepper
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/TMC2130Stepper/source
endif endif
ifeq ($(HARDWARE_VARIANT), arduino) ifeq ($(HARDWARE_VARIANT), arduino)

Loading…
Cancel
Save