diff --git a/grbl/config.h b/grbl/config.h index bb8b3f8..963e0e2 100644 --- a/grbl/config.h +++ b/grbl/config.h @@ -28,6 +28,7 @@ #ifndef config_h #define config_h #include "grbl.h" // For Arduino IDE compatibility. +#include "LPC17xx.h" // Define CPU pin map and default settings. @@ -584,26 +585,28 @@ #define SERIAL_UDRE USART_UDRE_vect // Define step pulse output pins. NOTE: All step bit pins must be on the same port. -#define STEP_DDR DDRD -#define STEP_PORT PORTD -#define X_STEP_BIT 2 // Uno Digital Pin 2 -#define Y_STEP_BIT 3 // Uno Digital Pin 3 -#define Z_STEP_BIT 4 // Uno Digital Pin 4 +#define STEP_DDR LPC_GPIO2->FIODIR +#define STEP_PORT LPC_GPIO2->FIOPIN +#define X_STEP_BIT 0 +#define Y_STEP_BIT 1 +#define Z_STEP_BIT 2 #define STEP_MASK ((1<FIODIR +#define DIRECTION_PORT LPC_GPIO0->FIOPIN +#define X_DIRECTION_BIT 5 +#define Y_DIRECTION_BIT 11 +#define Z_DIRECTION_BIT 20 #define DIRECTION_MASK ((1<FIODIR +#define STEPPERS_DISABLE_PORT LPC_GPIO0->FIOPIN +#define X_DISABLE_BIT 4 +#define Y_DISABLE_BIT 10 +#define Z_DISABLE_BIT 19 +#define STEPPERS_DISABLE_MASK ((1<