|
@ -112,8 +112,7 @@ FORCE_INLINE signed char pgm_read_any(const signed char *p) { return pgm_read_by |
|
|
|
|
|
|
|
|
#define XYZ_DEFS(T, NAME, OPT) \ |
|
|
#define XYZ_DEFS(T, NAME, OPT) \ |
|
|
extern const XYZval<T> NAME##_P; \ |
|
|
extern const XYZval<T> NAME##_P; \ |
|
|
FORCE_INLINE T NAME(AxisEnum axis) { return pgm_read_any(&NAME##_P[axis]); } \ |
|
|
FORCE_INLINE T NAME(AxisEnum axis) { return pgm_read_any(&NAME##_P[axis]); } |
|
|
typedef void __void_##OPT##__ /* for semicolon */ |
|
|
|
|
|
|
|
|
|
|
|
XYZ_DEFS(float, base_min_pos, MIN_POS); |
|
|
XYZ_DEFS(float, base_min_pos, MIN_POS); |
|
|
XYZ_DEFS(float, base_max_pos, MAX_POS); |
|
|
XYZ_DEFS(float, base_max_pos, MAX_POS); |
|
|