mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-29 17:19:50 +02:00
Fixed some compile issues
This commit is contained in:
@@ -20,12 +20,16 @@
|
|||||||
along with Grbl. If not, see <http://www.gnu.org/licenses/>.
|
along with Grbl. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef USE_TRINAMIC
|
||||||
|
|
||||||
#include "grbl.h"
|
#include "grbl.h"
|
||||||
|
|
||||||
|
|
||||||
// TODO try to use the #define ## method to clean this up
|
// 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);
|
//#define DRIVER(driver, axis) driver##Stepper = TRINAMIC_axis## = driver##Stepper(axis##_CS_PIN, axis##_RSENSE);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef X_TRINAMIC
|
#ifdef X_TRINAMIC
|
||||||
#ifdef X_DRIVER_TMC2130
|
#ifdef X_DRIVER_TMC2130
|
||||||
TMC2130Stepper TRINAMIC_X = TMC2130Stepper(X_CS_PIN, X_RSENSE);
|
TMC2130Stepper TRINAMIC_X = TMC2130Stepper(X_CS_PIN, X_RSENSE);
|
||||||
@@ -170,3 +174,5 @@ void Trinamic_Init()
|
|||||||
|
|
||||||
// TODO ABC Axes
|
// TODO ABC Axes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
@@ -82,8 +82,10 @@ extern uint8_t ganged_mode;
|
|||||||
void IRAM_ATTR onSteppertimer();
|
void IRAM_ATTR onSteppertimer();
|
||||||
void IRAM_ATTR onStepperOffTimer();
|
void IRAM_ATTR onStepperOffTimer();
|
||||||
|
|
||||||
|
#ifdef USE_RMT_STEPS
|
||||||
void initRMT();
|
void initRMT();
|
||||||
inline IRAM_ATTR static void stepperRMT_Outputs();
|
inline IRAM_ATTR static void stepperRMT_Outputs();
|
||||||
|
#endif
|
||||||
|
|
||||||
void stepper_init();
|
void stepper_init();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user