Skip to content

Commit

Permalink
Merge pull request #17 from fsantini/master
Browse files Browse the repository at this point in the history
Added system_declares.c
  • Loading branch information
chamnit authored Sep 6, 2018
2 parents 9fcf50e + 2910877 commit 9bdd165
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions system_declares.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "config.h"

int32_t sys_position[N_AXIS]; // Real-time machine (aka home) position vector in steps.
int32_t sys_probe_position[N_AXIS]; // Last probe position in machine coordinates and steps.

volatile uint8_t sys_probe_state; // Probing state value. Used to coordinate the probing cycle with stepper ISR.
volatile uint8_t sys_rt_exec_state; // Global realtime executor bitflag variable for state management. See EXEC bitmasks.
volatile uint8_t sys_rt_exec_alarm; // Global realtime executor bitflag variable for setting various alarms.
volatile uint8_t sys_rt_exec_motion_override; // Global realtime executor bitflag variable for motion-based overrides.
volatile uint8_t sys_rt_exec_accessory_override; // Global realtime executor bitflag variable for spindle/coolant overrides.

#ifdef DEBUG
#define EXEC_DEBUG_REPORT bit(0)
volatile uint8_t sys_rt_exec_debug;
#endif

0 comments on commit 9bdd165

Please sign in to comment.