/* stepper.h - stepper motor driver: executes motion plans of planner.c using the stepper motors Part of Grbl The MIT License (MIT) GRBL(tm) - Embedded CNC g-code interpreter and motion-controller Copyright (c) 2009-2011 Simen Svale Skogsrud Copyright (c) 2011 Sungeun K. Jeon Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef stepper_h #define stepper_h #include // Initialize and setup the stepper motor subsystem void st_init(); // Enable steppers, but cycle does not start unless called by motion control or runtime command. void st_wake_up(); // Immediately disables steppers void st_go_idle(); // Reset the stepper subsystem variables void st_reset(); // Notify the stepper subsystem to start executing the g-code program in buffer. void st_cycle_start(); // Reinitializes the buffer after a feed hold for a resume. void st_cycle_reinitialize(); // Initiates a feed hold of the running program void st_feed_hold(); #endif