pinio.h: cosmetics.
This commit is contained in:
parent
4cc0c2ca4f
commit
3ee3ee06a1
10
pinio.h
10
pinio.h
|
|
@ -102,13 +102,13 @@ Z Stepper
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined Z_STEP_PIN && defined Z_DIR_PIN
|
#if defined Z_STEP_PIN && defined Z_DIR_PIN
|
||||||
#define _z_step(st) WRITE(Z_STEP_PIN, st)
|
#define _z_step(st) WRITE(Z_STEP_PIN, st)
|
||||||
#define z_step() _z_step(1);
|
#define z_step() _z_step(1);
|
||||||
#ifndef Z_INVERT_DIR
|
#ifndef Z_INVERT_DIR
|
||||||
#define z_direction(dir) WRITE(Z_DIR_PIN, dir)
|
#define z_direction(dir) WRITE(Z_DIR_PIN, dir)
|
||||||
#else
|
#else
|
||||||
#define z_direction(dir) WRITE(Z_DIR_PIN, dir^1)
|
#define z_direction(dir) WRITE(Z_DIR_PIN, dir^1)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define _z_step(x) do { } while (0)
|
#define _z_step(x) do { } while (0)
|
||||||
#define z_step() do { } while (0)
|
#define z_step() do { } while (0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue