1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-29 09:10:03 +02:00

Fixed some compile issues

This commit is contained in:
bdring
2019-10-01 10:05:25 -05:00
parent a894ddb0f5
commit 4a24a54b0a
2 changed files with 9 additions and 1 deletions

View File

@@ -20,12 +20,16 @@
along with Grbl. If not, see <http://www.gnu.org/licenses/>.
*/
#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);
@@ -169,4 +173,6 @@ void Trinamic_Init()
#endif
// TODO ABC Axes
}
}
#endif

View File

@@ -82,8 +82,10 @@ extern uint8_t ganged_mode;
void IRAM_ATTR onSteppertimer();
void IRAM_ATTR onStepperOffTimer();
#ifdef USE_RMT_STEPS
void initRMT();
inline IRAM_ATTR static void stepperRMT_Outputs();
#endif
void stepper_init();