2017-10-03 11:01:59 +00:00
|
|
|
#ifndef DCODES_H
|
|
|
|
#define DCODES_H
|
|
|
|
|
2017-11-24 20:53:35 +00:00
|
|
|
extern void dcode__1(); //D-1 - Endless loop (to simulate deadlock)
|
2017-11-13 17:45:11 +00:00
|
|
|
extern void dcode_0(); //D0 - Reset
|
|
|
|
extern void dcode_1(); //D1 - Clear EEPROM
|
2021-05-22 13:03:26 +00:00
|
|
|
|
|
|
|
#if defined DEBUG_DCODE2 || defined DEBUG_DCODES
|
2017-11-13 17:45:11 +00:00
|
|
|
extern void dcode_2(); //D2 - Read/Write RAM
|
2021-05-22 13:03:26 +00:00
|
|
|
#endif
|
2020-03-30 14:53:58 +00:00
|
|
|
|
2020-04-07 09:22:48 +00:00
|
|
|
#if defined DEBUG_DCODE3 || defined DEBUG_DCODES
|
2017-11-13 17:45:11 +00:00
|
|
|
extern void dcode_3(); //D3 - Read/Write EEPROM
|
2020-03-30 14:53:58 +00:00
|
|
|
#endif //DEBUG_DCODE3
|
|
|
|
|
2017-11-13 17:45:11 +00:00
|
|
|
extern void dcode_4(); //D4 - Read/Write PIN
|
2020-03-30 14:53:58 +00:00
|
|
|
|
2020-04-07 09:22:48 +00:00
|
|
|
#if defined DEBUG_DCODE5 || defined DEBUG_DCODES
|
2017-11-13 17:45:11 +00:00
|
|
|
extern void dcode_5(); //D5 - Read/Write FLASH
|
2020-03-30 14:53:58 +00:00
|
|
|
#endif //DEBUG_DCODE5
|
|
|
|
|
2021-06-07 16:50:45 +00:00
|
|
|
#if defined DEBUG_DCODE6 || defined DEBUG_DCODES
|
2017-11-16 19:51:50 +00:00
|
|
|
extern void dcode_6(); //D6 - Read/Write external FLASH
|
2021-06-07 16:50:45 +00:00
|
|
|
#endif
|
|
|
|
|
2017-11-16 19:51:50 +00:00
|
|
|
extern void dcode_7(); //D7 - Read/Write Bootloader
|
|
|
|
extern void dcode_8(); //D8 - Read/Write PINDA
|
2017-12-20 12:42:20 +00:00
|
|
|
extern void dcode_9(); //D9 - Read/Write ADC (Write=enable simulated, Read=disable simulated)
|
2017-11-16 19:51:50 +00:00
|
|
|
extern void dcode_10(); //D10 - XYZ calibration = OK
|
2020-03-30 14:53:58 +00:00
|
|
|
extern void dcode_12(); //D12 - Log time. Writes the current time in the log file.
|
|
|
|
|
2021-06-08 13:34:39 +00:00
|
|
|
#ifdef XFLASH_DUMP
|
|
|
|
extern void dcode_20(); //D20 - Generate an offline crash dump
|
|
|
|
extern void dcode_21(); //D21 - Print crash dump to serial
|
|
|
|
extern void dcode_22(); //D22 - Clear crash dump state
|
|
|
|
#endif
|
|
|
|
|
2021-06-12 11:37:20 +00:00
|
|
|
#ifdef EMERGENCY_SERIAL_DUMP
|
|
|
|
#include "xflash_dump.h"
|
2021-06-24 15:35:55 +00:00
|
|
|
extern void dcode_23(); //D23 - Request/generate an online serial crash dump
|
|
|
|
extern bool emergency_serial_dump; //emergency dump enabled flag
|
2021-06-16 21:58:00 +00:00
|
|
|
extern void serial_dump_and_reset(dump_crash_reason);
|
2021-06-12 11:37:20 +00:00
|
|
|
#endif
|
|
|
|
|
2020-03-30 14:53:58 +00:00
|
|
|
#ifdef HEATBED_ANALYSIS
|
|
|
|
extern void dcode_80(); //D80 - Bed check. This command will log data to SD card file "mesh.txt".
|
|
|
|
extern void dcode_81(); //D81 - Bed analysis. This command will log data to SD card file "wldsd.txt".
|
|
|
|
#endif //HEATBED_ANALYSIS
|
|
|
|
|
|
|
|
extern void dcode_106(); //D106 - Print measured fan speed for different pwm values
|
2017-10-24 17:45:15 +00:00
|
|
|
|
2018-02-08 17:56:15 +00:00
|
|
|
#ifdef TMC2130
|
2020-03-30 14:53:58 +00:00
|
|
|
extern void dcode_2130(); //D2130 - TMC2130
|
2018-02-08 17:56:15 +00:00
|
|
|
#endif //TMC2130
|
|
|
|
|
|
|
|
#ifdef PAT9125
|
2020-03-30 14:53:58 +00:00
|
|
|
extern void dcode_9125(); //D9125 - PAT9125
|
2018-02-08 17:56:15 +00:00
|
|
|
#endif //PAT9125
|
|
|
|
|
2017-10-03 11:01:59 +00:00
|
|
|
|
|
|
|
#endif //DCODES_H
|