mirror of
https://github.com/grblHAL/core.git
synced 2026-03-23 11:32:44 +08:00
Added support for named o-sub/o-call to flow control, for calling gcode subroutines stored on SD card or in littlefs.
Sub name matches filename with extension .macro. Added core event for handling special gcode comments used by expressions and flow control: DEBUG, PRINT and ABORT. Added overrideable default $-setting values for second PWM spindle to grbl/config.c.
This commit is contained in:
@@ -288,18 +288,22 @@
|
||||
// Driver spindle 1
|
||||
|
||||
#if SPINDLE_ENABLE & ((1<<SPINDLE_PWM1)|(1<<SPINDLE_PWM1_NODIR)|(1<<SPINDLE_ONOFF1)|(1<<SPINDLE_ONOFF1_DIR))
|
||||
#if N_SPINDLE > 1
|
||||
#define DRIVER_SPINDLE1_ENABLE 1
|
||||
#else
|
||||
#warning "Configure N_SPINDLE > 1 in grbl/config.h when enabling second driver spindle!"
|
||||
#endif
|
||||
#else
|
||||
#define DRIVER_SPINDLE1_ENABLE 0
|
||||
#endif
|
||||
|
||||
#if SPINDLE_ENABLE & ((1<<SPINDLE_PWM1)|(1<<SPINDLE_ONOFF1_DIR))
|
||||
#if DRIVER_SPINDLE1_ENABLE && (SPINDLE_ENABLE & ((1<<SPINDLE_PWM1)|(1<<SPINDLE_ONOFF1_DIR)))
|
||||
#define DRIVER_SPINDLE1_DIR_ENABLE 1
|
||||
#else
|
||||
#define DRIVER_SPINDLE1_DIR_ENABLE 0
|
||||
#endif
|
||||
|
||||
#if SPINDLE_ENABLE & ((1<<SPINDLE_PWM1)|(1<<SPINDLE_PWM1_NODIR))
|
||||
#if DRIVER_SPINDLE1_ENABLE && (SPINDLE_ENABLE & ((1<<SPINDLE_PWM1)|(1<<SPINDLE_PWM1_NODIR)))
|
||||
#define DRIVER_SPINDLE1_PWM_ENABLE 1
|
||||
#define DRIVER_SPINDLE1_NAME "PWM2"
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user