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