Skip to content

Commit

Permalink
Merge pull request #3631 from thinkyhead/rc_singletons
Browse files Browse the repository at this point in the history
Encapsulate Stepper, Planner, Endstops in singleton classes
  • Loading branch information
thinkyhead committed May 1, 2016
2 parents 77d6e52 + 24a1533 commit c214556
Show file tree
Hide file tree
Showing 13 changed files with 1,601 additions and 1,302 deletions.
8 changes: 7 additions & 1 deletion Marlin/Marlin.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void manage_inactivity(bool ignore_stepper_queue = false);
*/
enum AxisEnum {X_AXIS = 0, A_AXIS = 0, Y_AXIS = 1, B_AXIS = 1, Z_AXIS = 2, C_AXIS = 2, E_AXIS = 3, X_HEAD = 4, Y_HEAD = 5, Z_HEAD = 5};

enum EndstopEnum {X_MIN = 0, Y_MIN = 1, Z_MIN = 2, Z_MIN_PROBE = 3, X_MAX = 4, Y_MAX = 5, Z_MAX = 6, Z2_MIN = 7, Z2_MAX = 8};
#define _AXIS(AXIS) AXIS ##_AXIS

void enable_all_steppers();
void disable_all_steppers();
Expand Down Expand Up @@ -283,6 +283,12 @@ extern float sw_endstop_max[3]; // axis[n].sw_endstop_max
extern bool axis_known_position[3]; // axis[n].is_known
extern bool axis_homed[3]; // axis[n].is_homed

// GCode support for external objects
extern bool code_seen(char);
extern float code_value();
extern long code_value_long();
extern int16_t code_value_short();

#if ENABLED(DELTA)
#ifndef DELTA_RADIUS_TRIM_TOWER_1
#define DELTA_RADIUS_TRIM_TOWER_1 0.0
Expand Down
Loading

0 comments on commit c214556

Please sign in to comment.