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:
Terje Io
2024-11-16 22:02:00 +01:00
parent 43d694917c
commit 0b8bce16c6
14 changed files with 412 additions and 114 deletions

View File

@@ -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