make globals extern
This commit is contained in:
parent
137d36cce5
commit
03787d2b28
@ -144,14 +144,14 @@ typedef struct {
|
|||||||
extern system_t sys;
|
extern system_t sys;
|
||||||
|
|
||||||
// NOTE: These position variables may need to be declared as volatiles, if problems arise.
|
// NOTE: These position variables may need to be declared as volatiles, if problems arise.
|
||||||
int32_t sys_position[N_AXIS]; // Real-time machine (aka home) position vector in steps.
|
extern 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.
|
extern 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.
|
extern 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.
|
extern 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.
|
extern 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.
|
extern 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.
|
extern volatile uint8_t sys_rt_exec_accessory_override; // Global realtime executor bitflag variable for spindle/coolant overrides.
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define EXEC_DEBUG_REPORT bit(0)
|
#define EXEC_DEBUG_REPORT bit(0)
|
||||||
|
@ -1,5 +1,15 @@
|
|||||||
|
#include "../grbl/grbl.h"
|
||||||
#include "mbed.h"
|
#include "mbed.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.
|
||||||
|
|
||||||
DigitalOut myled(LED1);
|
DigitalOut myled(LED1);
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user