Prusa MINI Firmware overview
|
Go to the documentation of this file.
28 #include "../sd/cardreader.h"
29 #include "../inc/MarlinConfig.h"
31 #if ENABLED(MIXING_EXTRUDER)
32 #include "../feature/mixing.h"
35 #if !defined(POWER_LOSS_STATE) && PIN_EXISTS(POWER_LOSS)
36 #define POWER_LOSS_STATE HIGH
52 #if HAS_POSITION_SHIFT
63 int16_t target_temperature[
HOTENDS];
67 int16_t target_temperature_bed;
79 #if ENABLED(FWRETRACT)
84 #if ENABLED(MIXING_EXTRUDER)
87 #if ENABLED(GRADIENT_MIX)
121 #if PIN_EXISTS(POWER_LOSS)
122 #if ENABLED(POWER_LOSS_PULL)
123 #if POWER_LOSS_STATE == LOW
139 static void enable(
const bool onoff);
145 static inline bool exists() {
return card.jobRecoverFileExists(); }
146 static inline void open(
const bool read) { card.openJobRecoveryFile(
read); }
151 static void save(
const bool force=
152 #
if ENABLED(SAVE_EACH_CMD_MODE)
157 ,
const bool save_queue=
true
160 #if PIN_EXISTS(POWER_LOSS)
161 static inline void outage() {
169 #if ENABLED(DEBUG_POWER_LOSS_RECOVERY)
178 #if PIN_EXISTS(POWER_LOSS)
179 static void _outage();
bool seekSet(const uint32_t pos)
Definition: Marlin_CardReader.cpp:505
static void close()
Definition: power_loss_recovery.h:147
#define GET_TEXT(MSG)
Definition: multi_language.h:72
Definition: power_loss_recovery.h:106
T z
Definition: types.h:383
#define SET_INPUT_PULLDOWN(IO)
set pin as input with pulldown wrapper
Definition: fastio.h:95
static job_recovery_info_t info
Definition: power_loss_recovery.h:111
static bool exists()
Definition: power_loss_recovery.h:145
static uint32_t cmd_sdpos
SD position of the next command.
Definition: power_loss_recovery.h:114
GCodeQueue queue
Definition: queue.cpp:28
list gcode
Definition: g29_auto.py:44
#define DEBUG_EOL()
Definition: debug_out.h:86
#define DEBUG_ECHOLNPGM(...)
Definition: debug_out.h:79
static uint32_t command_sdpos()
Definition: power_loss_recovery.h:135
#define IS_SD_PRINTING()
Definition: cardreader.h:295
Stopwatch print_job_timer
Definition: printcounter.cpp:63
uint8_t axis_homed
Definition: motion.cpp:91
static bool leveling_active
Definition: planner.h:276
#define DEBUG_PRINT_P(P)
Definition: debug_out.h:71
static uint32_t sdpos[BUFSIZE]
SD positions of queued commands.
Definition: power_loss_recovery.h:114
static void commit_sdpos(const uint8_t index_w)
Definition: power_loss_recovery.h:136
#define Z_HOME_DIR
Definition: Configuration_A3ides_2209_MINI.h:975
char * dtostrf(double __val, signed char __width, unsigned char __prec, char *__s)
bool close()
Definition: Marlin_CardReader.cpp:535
#define PGM_P
Definition: pgmspace.h:30
T e
Definition: types.h:383
uint8_t i
Definition: screen_test_graph.c:72
#define STRINGIFY(M)
Definition: macros.h:73
AxisEnum
Definition: types.h:36
void kill(PGM_P const lcd_error, PGM_P const lcd_component, const bool steppers_off)
Definition: Marlin.cpp:718
uint32_t millis(void)
Definition: wiring_time.c:29
static SdFile file
Definition: power_loss_recovery.h:110
static uint8_t queue_index_r
Queue index of the active command.
Definition: power_loss_recovery.h:113
uint8_t axis_relative
Definition: power_loss_recovery.h:93
#define DEBUG_ECHOLNPAIR(...)
Definition: debug_out.h:82
#define IS_KINEMATIC
Definition: Conditionals_LCD.h:545
PrintJobRecovery recovery
#define sprintf_P(s,...)
Definition: pgmspace.h:72
#define update_workspace_offset(x)
Definition: motion.h:127
static const char filename[5]
Definition: power_loss_recovery.h:108
#define DEBUG_ECHOPGM(...)
Definition: debug_out.h:78
uint16_t feedrate
Definition: power_loss_recovery.h:56
xyz_pos_t position_shift
Definition: power_loss_recovery.h:53
int16_t read()
Definition: Marlin_CardReader.cpp:523
#define SET_INPUT_PULLUP(IO)
Definition: fastio.h:100
static bool valid()
Definition: power_loss_recovery.h:167
#define POWER_LOSS_STATE
Definition: pins_GT2560_V3.h:90
volatile uint32_t sdpos
Definition: power_loss_recovery.h:97
#define PSTR(str)
Definition: pgmspace.h:31
xyze_pos_t current_position
Definition: motion.cpp:102
#define SET_INPUT(IO)
Definition: fastio.h:99
#define LOOP_XYZ(VAR)
Definition: types.h:60
#define DISABLED(V...)
Definition: macros.h:178
static millis_t duration()
Get the running time.
Definition: stopwatch.cpp:108
void
Definition: png.h:1083
T x
Definition: types.h:383
SdBaseFile with Print.
Definition: SdFile.h:45
feedRate_t feedrate_mm_s
Definition: motion.cpp:138
#define HOTEND_LOOP()
Definition: Conditionals_LCD.h:436
char sd_filename[MAXPATHNAMELENGTH]
Definition: power_loss_recovery.h:96
uint8_t axis_known_position
Definition: motion.cpp:91
#define ELAPSED(NOW, SOON)
Definition: millis_t.h:29
#define POWER_LOSS_PIN
Definition: pins_GT2560_V3.h:89
const uint8_t[]
Definition: 404_html.c:3
uint8_t valid_head
Definition: power_loss_recovery.h:44
#define DEBUG_ECHO(...)
Definition: debug_out.h:75
xyze_pos_t current_position
Definition: power_loss_recovery.h:47
static void save(const bool force=false, const bool save_queue=true)
constexpr uint8_t xyz_bits
Definition: motion.h:43
static int read(struct _reent *_r, void *pv, char *pc, int n)
Definition: gcode_file.cpp:9
static void debug(PGM_P const)
Definition: power_loss_recovery.h:172
#define MAXPATHNAMELENGTH
Definition: screen_filebrowser.cpp:26
Definition: power_loss_recovery.h:43
#define EXTRUDERS
Definition: Configuration_A3ides_2209_MINI.h:148
#define FAN_COUNT
Definition: Conditionals_post.h:1292
static void setup()
Definition: power_loss_recovery.h:120
millis_t print_job_elapsed
Definition: power_loss_recovery.h:100
#define MAX_CMD_SIZE
Definition: Configuration_A3ides_2209_MINI_adv.h:1173
xyz_pos_t home_offset
Definition: power_loss_recovery.h:50
#define HOTENDS
Definition: Conditionals_LCD.h:425
#define BUFSIZE
Definition: Configuration_A3ides_2209_MINI_adv.h:1174
static void inject_P(PGM_P const pgcode)
Definition: queue.cpp:206
#define DEBUG_CHAR(...)
Definition: debug_out.h:74
#define LOOP_XYZE(VAR)
Definition: types.h:61
#define READ(IO)
Definition: fastio.h:95
uint8_t valid_foot
Definition: power_loss_recovery.h:102
static void open(const bool read)
Definition: power_loss_recovery.h:146
Temperature thermalManager
Definition: temperature.cpp:89
uint32_t millis_t
Definition: millis_t.h:26
static bool enabled
Definition: power_loss_recovery.h:138
constexpr uint8_t active_extruder
Definition: motion.h:107
#define ENABLED(V...)
Definition: macros.h:177
Planner planner
Definition: planner.cpp:111
T y
Definition: types.h:383
static void enable(const bool onoff)