Skip to content

Commit

Permalink
unused code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanix committed Aug 5, 2012
1 parent 9d27676 commit 67c0d65
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
23 changes: 0 additions & 23 deletions stepper.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ static uint32_t acceleration_tick_counter; // The cycles since last accelerat
static uint32_t adjusted_rate; // The current rate of step_events according to the speed profile
static bool processing_flag; // indicates if blocks are being processed
static volatile bool stop_requested; // when set to true stepper interrupt will go idle on next entry
static volatile bool warning_requested; // request a warning to be sent to the user interface
static volatile uint8_t stop_status; // yields the reason for a stop request
static volatile uint8_t warning_status; // yields the reason for a warning request


// prototypes for static functions (non-accesible from other files)
Expand Down Expand Up @@ -113,9 +111,7 @@ void stepper_init() {
acceleration_tick_counter = 0;
current_block = NULL;
stop_requested = false;
warning_requested = false;
stop_status = STATUS_OK;
warning_status = STATUS_OK;
busy = false;

// start in the idle state
Expand Down Expand Up @@ -171,25 +167,6 @@ void stepper_stop_resume() {
stop_requested = false;
}

// warning event handling
void stepper_request_warning(uint8_t status) {
warning_status = status;
warning_requested = true;
}

uint8_t stepper_warning_status() {
return warning_status;
}

bool stepper_warning_requested() {
return warning_requested;
}

void stepper_warning_handled() {
warning_requested = false;
}





Expand Down
6 changes: 0 additions & 6 deletions stepper.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ uint8_t stepper_stop_status();
bool stepper_stop_requested();
void stepper_stop_resume();

// warning function
void stepper_request_warning(uint8_t status);
uint8_t stepper_warning_status();
bool stepper_warning_requested();
void stepper_warning_handled();

// Get the actual position of the head in mm.
// This is as accurate as an open loop system can be.
double stepper_get_position_x();
Expand Down

0 comments on commit 67c0d65

Please sign in to comment.