pinio.h File Reference
I/O primitives - step, enable, direction, endstops etc.
More...
#include "config.h"
Go to the source code of this file.
Defines |
#define | _x_step(st) WRITE(X_STEP_PIN, st) |
#define | x_step() _x_step(1); |
#define | x_direction(dir) WRITE(X_DIR_PIN, dir) |
#define | x_min() (0) |
#define | _y_step(st) WRITE(Y_STEP_PIN, st) |
#define | y_step() _y_step(1); |
#define | y_direction(dir) WRITE(Y_DIR_PIN, dir) |
#define | y_min() (0) |
#define | _z_step(x) do { } while (0) |
#define | z_step() do { } while (0) |
#define | z_direction(x) do { } while (0) |
#define | z_min() (0) |
#define | estop_hit() (READ(ESTOP_IN_PIN) ? 1 : 0) |
#define | unstep() do { _x_step(0); _y_step(0); _z_step(0); } while (0) |
Detailed Description
I/O primitives - step, enable, direction, endstops etc.