pinio.h: cosmetics.

This commit is contained in:
Markus Hitter 2011-03-04 22:51:14 +01:00
parent 4cc0c2ca4f
commit 3ee3ee06a1
1 changed files with 14 additions and 14 deletions

28
pinio.h
View File

@ -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)
@ -138,17 +138,17 @@ Extruder
*/ */
#if defined E_STEP_PIN && defined E_DIR_PIN #if defined E_STEP_PIN && defined E_DIR_PIN
#define _e_step(st) WRITE(E_STEP_PIN, st) #define _e_step(st) WRITE(E_STEP_PIN, st)
#define e_step() _e_step(1); #define e_step() _e_step(1);
#ifndef E_INVERT_DIR #ifndef E_INVERT_DIR
#define e_direction(dir) WRITE(E_DIR_PIN, dir) #define e_direction(dir) WRITE(E_DIR_PIN, dir)
#else #else
#define e_direction(dir) WRITE(E_DIR_PIN, dir^1) #define e_direction(dir) WRITE(E_DIR_PIN, dir^1)
#endif #endif
#else #else
#define _e_step(st) do { } while (0) #define _e_step(st) do { } while (0)
#define e_step() do { } while (0) #define e_step() do { } while (0)
#define e_direction(dir) do { } while (0) #define e_direction(dir) do { } while (0)
#endif #endif
/* /*