Prusa3d Marlin fork
power_panic.h
1 #pragma once
2 
3 namespace PowerPanic {
4 enum PowerPanicFlag : uint8_t {
5  NO_PENDING_RECOVERY = 0,
6  PENDING_RECOVERY = 1, // First power panic, print state is saved in EEPROM
7  PENDING_RECOVERY_RETRY = 2, // Power outage occured during recovery, print is still saved in EEPROM
8 };
9 
10 // Types of printjobs possible when power panic is triggered
11 enum PrintType : uint8_t {
12  PRINT_TYPE_SD = 0,
13  PRINT_TYPE_HOST = 1,
14  PRINT_TYPE_NONE = 2,
15 };
16 } // namespace PowerPanic
17 
18 void uvlo_();
19 void recover_print(uint8_t automatic);
20 void setup_uvlo_interrupt();