home.c/.h: formattings

This commit is contained in:
Nico Tonnhofer 2017-12-08 18:22:08 +01:00
parent 5d5c169f07
commit a0936287f9
2 changed files with 13 additions and 13 deletions

10
home.c
View File

@ -1,14 +1,14 @@
#include "home.h" #include "home.h"
/** \file /** \file
\brief Homing routines \brief Homing routines
*/ */
#include <math.h> #include <math.h>
#include "dda.h" #include "dda.h"
#include "dda_queue.h" #include "dda_queue.h"
#include "pinio.h" #include "pinio.h"
#include "gcode_parse.h" #include "gcode_parse.h"
// Check configuration. // Check configuration.
#if defined X_MIN_PIN || defined X_MAX_PIN #if defined X_MIN_PIN || defined X_MAX_PIN

16
home.h
View File

@ -1,15 +1,15 @@
#ifndef _HOME_H #ifndef _HOME_H
#define _HOME_H #define _HOME_H
void home(void); void home(void);
enum axis_endstop_e { enum axis_endstop_e {
X_MIN_ENDSTOP = 0x01, X_MIN_ENDSTOP = 0x01,
X_MAX_ENDSTOP = 0x02, X_MAX_ENDSTOP = 0x02,
Y_MIN_ENDSTOP = 0x04, Y_MIN_ENDSTOP = 0x04,
Y_MAX_ENDSTOP = 0x08, Y_MAX_ENDSTOP = 0x08,
Z_MIN_ENDSTOP = 0x10, Z_MIN_ENDSTOP = 0x10,
Z_MAX_ENDSTOP = 0x20, Z_MAX_ENDSTOP = 0x20,
}; };
void home_x_negative(void); void home_x_negative(void);
@ -19,4 +19,4 @@ void home_y_positive(void);
void home_z_negative(void); void home_z_negative(void);
void home_z_positive(void); void home_z_positive(void);
#endif /* _HOME_H */ #endif /* _HOME_H */