|
@ -28,17 +28,6 @@ |
|
|
#include "../feature/meatpack.h" |
|
|
#include "../feature/meatpack.h" |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
// Commonly-used strings in serial output
|
|
|
|
|
|
extern const char NUL_STR[], SP_P_STR[], SP_T_STR[], |
|
|
|
|
|
SP_A_STR[], SP_B_STR[], SP_C_STR[], |
|
|
|
|
|
LOGICAL_AXIS_LIST(SP_E_STR[], SP_X_STR[], SP_Y_STR[], SP_Z_STR[], SP_I_STR[], SP_J_STR[], SP_K_STR[], SP_U_STR[], SP_V_STR[], SP_W_STR[]), |
|
|
|
|
|
LOGICAL_AXIS_LIST(SP_E_LBL[], SP_X_LBL[], SP_Y_LBL[], SP_Z_LBL[], SP_I_LBL[], SP_J_LBL[], SP_K_LBL[], SP_U_LBL[], SP_V_LBL[], SP_W_LBL[]), |
|
|
|
|
|
LOGICAL_AXIS_LIST(E_STR[], X_STR[], Y_STR[], Z_STR[], I_STR[], J_STR[], K_STR[], U_STR[], V_STR[], W_STR[]), |
|
|
|
|
|
LOGICAL_AXIS_LIST(E_LBL[], X_LBL[], Y_LBL[], Z_LBL[], I_LBL[], J_LBL[], K_LBL[], U_LBL[], V_LBL[], W_LBL[]); |
|
|
|
|
|
|
|
|
|
|
|
PGM_P const SP_AXIS_LBL[] PROGMEM = LOGICAL_AXIS_ARRAY(SP_E_LBL, SP_X_LBL, SP_Y_LBL, SP_Z_LBL, SP_I_LBL, SP_J_LBL, SP_K_LBL, SP_U_LBL, SP_V_LBL, SP_W_LBL); |
|
|
|
|
|
PGM_P const SP_AXIS_STR[] PROGMEM = LOGICAL_AXIS_ARRAY(SP_E_STR, SP_X_STR, SP_Y_STR, SP_Z_STR, SP_I_STR, SP_J_STR, SP_K_STR, SP_U_STR, SP_V_STR, SP_W_STR); |
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
//
|
|
|
// Debugging flags for use by M111
|
|
|
// Debugging flags for use by M111
|
|
|
//
|
|
|
//
|
|
@ -354,3 +343,32 @@ inline void print_pos(const xyz_pos_t &xyz, FSTR_P const prefix=nullptr, FSTR_P |
|
|
|
|
|
|
|
|
#define SERIAL_POS(SUFFIX,VAR) do { print_pos(VAR, F(" " STRINGIFY(VAR) "="), F(" : " SUFFIX "\n")); }while(0) |
|
|
#define SERIAL_POS(SUFFIX,VAR) do { print_pos(VAR, F(" " STRINGIFY(VAR) "="), F(" : " SUFFIX "\n")); }while(0) |
|
|
#define SERIAL_XYZ(PREFIX,V...) do { print_pos(V, F(PREFIX)); }while(0) |
|
|
#define SERIAL_XYZ(PREFIX,V...) do { print_pos(V, F(PREFIX)); }while(0) |
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
// Commonly-used strings in serial output
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#define _N_STR(N) N##_STR |
|
|
|
|
|
#define _N_LBL(N) N##_LBL |
|
|
|
|
|
#define _N_STR_A(N) _N_STR(N)[] |
|
|
|
|
|
#define _N_LBL_A(N) _N_LBL(N)[] |
|
|
|
|
|
#define _SP_N_STR(N) SP_##N##_STR |
|
|
|
|
|
#define _SP_N_LBL(N) SP_##N##_LBL |
|
|
|
|
|
#define _SP_N_STR_A(N) _SP_N_STR(N)[] |
|
|
|
|
|
#define _SP_N_LBL_A(N) _SP_N_LBL(N)[] |
|
|
|
|
|
|
|
|
|
|
|
extern const char SP_A_STR[], SP_B_STR[], SP_C_STR[], SP_P_STR[], SP_T_STR[], NUL_STR[], |
|
|
|
|
|
MAPLIST(_N_STR_A, LOGICAL_AXIS_NAMES), MAPLIST(_SP_N_STR_A, LOGICAL_AXIS_NAMES), |
|
|
|
|
|
MAPLIST(_N_LBL_A, LOGICAL_AXIS_NAMES), MAPLIST(_SP_N_LBL_A, LOGICAL_AXIS_NAMES); |
|
|
|
|
|
|
|
|
|
|
|
PGM_P const SP_AXIS_LBL[] PROGMEM = { MAPLIST(_SP_N_LBL, LOGICAL_AXIS_NAMES) }; |
|
|
|
|
|
PGM_P const SP_AXIS_STR[] PROGMEM = { MAPLIST(_SP_N_STR, LOGICAL_AXIS_NAMES) }; |
|
|
|
|
|
|
|
|
|
|
|
#undef _N_STR |
|
|
|
|
|
#undef _N_LBL |
|
|
|
|
|
#undef _N_STR_A |
|
|
|
|
|
#undef _N_LBL_A |
|
|
|
|
|
#undef _SP_N_STR |
|
|
|
|
|
#undef _SP_N_LBL |
|
|
|
|
|
#undef _SP_N_STR_A |
|
|
|
|
|
#undef _SP_N_LBL_A |
|
|