config_wrapper.h: move #include "arduino.h" here.
This #include "../arduino.h" was the only reason prohibiting Configtool users from storing printer and board configuration files wherever they wanted. Good reason to remove this restriciton. This also solves a part of issue #152.
This commit is contained in:
parent
da7a0d72a7
commit
104ed2f503
|
|
@ -42,8 +42,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO54
|
#define X_STEP_PIN DIO54
|
||||||
#define X_DIR_PIN DIO55
|
#define X_DIR_PIN DIO55
|
||||||
#define X_MIN_PIN DIO3
|
#define X_MIN_PIN DIO3
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO15
|
#define X_STEP_PIN DIO15
|
||||||
#define X_DIR_PIN DIO18
|
#define X_DIR_PIN DIO18
|
||||||
#define X_MIN_PIN DIO20
|
#define X_MIN_PIN DIO20
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO15
|
#define X_STEP_PIN DIO15
|
||||||
#define X_DIR_PIN DIO18
|
#define X_DIR_PIN DIO18
|
||||||
#define X_MIN_PIN DIO20
|
#define X_MIN_PIN DIO20
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO19
|
#define X_STEP_PIN DIO19
|
||||||
#define X_DIR_PIN DIO18
|
#define X_DIR_PIN DIO18
|
||||||
#define X_MIN_PIN DIO7
|
#define X_MIN_PIN DIO7
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO29
|
#define X_STEP_PIN DIO29
|
||||||
#define X_DIR_PIN DIO28
|
#define X_DIR_PIN DIO28
|
||||||
#define X_MIN_PIN DIO0
|
#define X_MIN_PIN DIO0
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO26
|
#define X_STEP_PIN DIO26
|
||||||
#define X_DIR_PIN DIO28
|
#define X_DIR_PIN DIO28
|
||||||
#define X_MIN_PIN DIO3
|
#define X_MIN_PIN DIO3
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO54
|
#define X_STEP_PIN DIO54
|
||||||
#define X_DIR_PIN DIO55
|
#define X_DIR_PIN DIO55
|
||||||
#define X_MIN_PIN DIO3
|
#define X_MIN_PIN DIO3
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO17
|
#define X_STEP_PIN DIO17
|
||||||
#define X_DIR_PIN DIO16
|
#define X_DIR_PIN DIO16
|
||||||
#define X_MIN_PIN DIO37
|
#define X_MIN_PIN DIO37
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO15
|
#define X_STEP_PIN DIO15
|
||||||
#define X_DIR_PIN DIO21
|
#define X_DIR_PIN DIO21
|
||||||
#define X_MIN_PIN DIO18
|
#define X_MIN_PIN DIO18
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO15
|
#define X_STEP_PIN DIO15
|
||||||
#define X_DIR_PIN DIO21
|
#define X_DIR_PIN DIO21
|
||||||
#define X_MIN_PIN DIO18
|
#define X_MIN_PIN DIO18
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO28
|
#define X_STEP_PIN DIO28
|
||||||
#define X_DIR_PIN DIO27
|
#define X_DIR_PIN DIO27
|
||||||
#define X_MIN_PIN DIO2
|
#define X_MIN_PIN DIO2
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO28
|
#define X_STEP_PIN DIO28
|
||||||
#define X_DIR_PIN DIO29
|
#define X_DIR_PIN DIO29
|
||||||
#define X_MIN_PIN DIO2
|
#define X_MIN_PIN DIO2
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,6 @@
|
||||||
* *
|
* *
|
||||||
\***************************************************************************/
|
\***************************************************************************/
|
||||||
|
|
||||||
#include "../arduino.h"
|
|
||||||
|
|
||||||
#define X_STEP_PIN DIO18
|
#define X_STEP_PIN DIO18
|
||||||
#define X_DIR_PIN DIO17
|
#define X_DIR_PIN DIO17
|
||||||
#define X_MIN_PIN DIO1
|
#define X_MIN_PIN DIO1
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,18 @@
|
||||||
/*
|
|
||||||
* This wrapper config header is used to allow makefiles and test scripts to
|
|
||||||
* replace or augment the user's 'config.h' file in a controlled manner. A
|
|
||||||
* makefile may add CFLAGS+=-DUSER_CONFIG=alternate_config.h to cause Teacup
|
|
||||||
* to build with a different config header.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
Some stuff common to all config.h files. Put it here to allow files like
|
||||||
|
board.*.config.h or printer.*.h to be moved to about everywhere in the
|
||||||
|
file system. Else we'd have to enforce the Configtool user to put these
|
||||||
|
files where we need them.
|
||||||
|
*/
|
||||||
|
#include "arduino.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
This wrapper config header is used to allow makefiles and test scripts to
|
||||||
|
replace or augment the user's 'config.h' file in a controlled manner. A
|
||||||
|
makefile may add CFLAGS+=-DUSER_CONFIG=alternate_config.h to cause Teacup
|
||||||
|
to build with a different config header.
|
||||||
|
*/
|
||||||
#ifndef USER_CONFIG
|
#ifndef USER_CONFIG
|
||||||
#define USER_CONFIG "config.h"
|
#define USER_CONFIG "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue