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

Some RMT code needed #ifdef USE_RMT_STEP around it.

- Machine profiles that have RMT channels defined  would not compile when not using RMT
This commit is contained in:
bdring
2019-05-01 09:25:04 -05:00
parent 429f6d3dad
commit cd2cb12175

View File

@@ -434,6 +434,7 @@ void stepper_init()
} }
#ifdef USE_RMT_STEPS
void initRMT() void initRMT()
{ {
rmt_item32_t rmtItem[2]; rmt_item32_t rmtItem[2];
@@ -517,6 +518,7 @@ void initRMT()
} }
#endif
// enabled. Startup init and limits call this function but shouldn't start the cycle. // enabled. Startup init and limits call this function but shouldn't start the cycle.
void st_wake_up() void st_wake_up()
@@ -652,7 +654,7 @@ void set_stepper_pins_on(uint8_t onMask)
} }
#endif #endif
#ifdef USE_RMT_STEPS
// Set stepper pulse output pins // Set stepper pulse output pins
inline IRAM_ATTR static void stepperRMT_Outputs() inline IRAM_ATTR static void stepperRMT_Outputs()
{ {
@@ -701,6 +703,7 @@ inline IRAM_ATTR static void stepperRMT_Outputs()
} }
#endif #endif
} }
#endif
// Stepper shutdown // Stepper shutdown
void st_go_idle() void st_go_idle()