|
|
@ -31,80 +31,20 @@
|
|
|
|
* - http://reprap.org/pipermail/reprap-dev/2011-May/003323.html
|
|
|
|
* - http://reprap.org/pipermail/reprap-dev/2011-May/003323.html
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "Marlin.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "ultralcd.h"
|
|
|
|
|
|
|
|
#include "planner.h"
|
|
|
|
|
|
|
|
#include "stepper.h"
|
|
|
|
|
|
|
|
#include "endstops.h"
|
|
|
|
|
|
|
|
#include "temperature.h"
|
|
|
|
|
|
|
|
#include "cardreader.h"
|
|
|
|
|
|
|
|
#include "configuration_store.h"
|
|
|
|
|
|
|
|
#include "language.h"
|
|
|
|
|
|
|
|
#include "pins_arduino.h"
|
|
|
|
|
|
|
|
#include "math.h"
|
|
|
|
|
|
|
|
#include "nozzle.h"
|
|
|
|
|
|
|
|
#include "duration_t.h"
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_ABL
|
|
|
|
|
|
|
|
#include "vector_3.h"
|
|
|
|
|
|
|
|
#if ENABLED(AUTO_BED_LEVELING_LINEAR)
|
|
|
|
|
|
|
|
#include "qr_solve.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#elif ENABLED(MESH_BED_LEVELING)
|
|
|
|
|
|
|
|
#include "mesh_bed_leveling.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(BEZIER_CURVE_SUPPORT)
|
|
|
|
|
|
|
|
#include "planner_bezier.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_BUZZER && DISABLED(LCD_USE_I2C_BUZZER)
|
|
|
|
|
|
|
|
#include "buzzer.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(USE_WATCHDOG)
|
|
|
|
|
|
|
|
#include "watchdog.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(BLINKM)
|
|
|
|
|
|
|
|
#include "blinkm.h"
|
|
|
|
|
|
|
|
#include "Wire.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_SERVOS
|
|
|
|
|
|
|
|
#include "servo.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_DIGIPOTSS
|
|
|
|
|
|
|
|
#include <SPI.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(DAC_STEPPER_CURRENT)
|
|
|
|
|
|
|
|
#include "stepper_dac.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(EXPERIMENTAL_I2CBUS)
|
|
|
|
|
|
|
|
#include "twibus.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
|
|
|
|
|
|
|
|
#include "endstop_interrupts.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Look here for descriptions of G-codes:
|
|
|
|
* -----------------
|
|
|
|
|
|
|
|
* G-Codes in Marlin
|
|
|
|
|
|
|
|
* -----------------
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* Helpful G-code references:
|
|
|
|
* - http://linuxcnc.org/handbook/gcode/g-code.html
|
|
|
|
* - http://linuxcnc.org/handbook/gcode/g-code.html
|
|
|
|
* - http://objects.reprap.org/wiki/Mendel_User_Manual:_RepRapGCodes
|
|
|
|
* - http://objects.reprap.org/wiki/Mendel_User_Manual:_RepRapGCodes
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Help us document these G-codes online:
|
|
|
|
* Help to document Marlin's G-codes online:
|
|
|
|
* - https://github.com/MarlinFirmware/Marlin/wiki/G-Code-in-Marlin
|
|
|
|
|
|
|
|
* - http://reprap.org/wiki/G-code
|
|
|
|
* - http://reprap.org/wiki/G-code
|
|
|
|
|
|
|
|
* - https://github.com/MarlinFirmware/MarlinDocumentation
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* -----------------
|
|
|
|
* -----------------
|
|
|
|
* Implemented Codes
|
|
|
|
|
|
|
|
* -----------------
|
|
|
|
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* "G" Codes
|
|
|
|
* "G" Codes
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -277,6 +217,68 @@
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "Marlin.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "ultralcd.h"
|
|
|
|
|
|
|
|
#include "planner.h"
|
|
|
|
|
|
|
|
#include "stepper.h"
|
|
|
|
|
|
|
|
#include "endstops.h"
|
|
|
|
|
|
|
|
#include "temperature.h"
|
|
|
|
|
|
|
|
#include "cardreader.h"
|
|
|
|
|
|
|
|
#include "configuration_store.h"
|
|
|
|
|
|
|
|
#include "language.h"
|
|
|
|
|
|
|
|
#include "pins_arduino.h"
|
|
|
|
|
|
|
|
#include "math.h"
|
|
|
|
|
|
|
|
#include "nozzle.h"
|
|
|
|
|
|
|
|
#include "duration_t.h"
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_ABL
|
|
|
|
|
|
|
|
#include "vector_3.h"
|
|
|
|
|
|
|
|
#if ENABLED(AUTO_BED_LEVELING_LINEAR)
|
|
|
|
|
|
|
|
#include "qr_solve.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#elif ENABLED(MESH_BED_LEVELING)
|
|
|
|
|
|
|
|
#include "mesh_bed_leveling.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(BEZIER_CURVE_SUPPORT)
|
|
|
|
|
|
|
|
#include "planner_bezier.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_BUZZER && DISABLED(LCD_USE_I2C_BUZZER)
|
|
|
|
|
|
|
|
#include "buzzer.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(USE_WATCHDOG)
|
|
|
|
|
|
|
|
#include "watchdog.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(BLINKM)
|
|
|
|
|
|
|
|
#include "blinkm.h"
|
|
|
|
|
|
|
|
#include "Wire.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_SERVOS
|
|
|
|
|
|
|
|
#include "servo.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_DIGIPOTSS
|
|
|
|
|
|
|
|
#include <SPI.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(DAC_STEPPER_CURRENT)
|
|
|
|
|
|
|
|
#include "stepper_dac.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(EXPERIMENTAL_I2CBUS)
|
|
|
|
|
|
|
|
#include "twibus.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
|
|
|
|
|
|
|
|
#include "endstop_interrupts.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(M100_FREE_MEMORY_WATCHER)
|
|
|
|
#if ENABLED(M100_FREE_MEMORY_WATCHER)
|
|
|
|
void gcode_M100();
|
|
|
|
void gcode_M100();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|