From 9b6300a872a1efd3ecb2b741b9b971ac12158edb Mon Sep 17 00:00:00 2001 From: "Scofield, Thomas" Date: Thu, 25 Jul 2019 23:02:51 -0400 Subject: [PATCH] impliment changes to allow probing to work and map the probe pin to p1.27 on the sbase board --- grbl/cpu_map.h | 9 +++++---- grbl/probe.c | 10 ++++++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/grbl/cpu_map.h b/grbl/cpu_map.h index c93b420..07a902a 100644 --- a/grbl/cpu_map.h +++ b/grbl/cpu_map.h @@ -534,10 +534,11 @@ #define CONTROL_INVERT_MASK CONTROL_MASK // May be re-defined to only invert certain control pins. // Define probe switch input pin. - #define PROBE_DDR NotUsed - #define PROBE_PIN NotUsed - #define PROBE_PORT NotUsed - #define PROBE_BIT 5 // Uno Analog Pin 5 + // Borrow Y Max limit port for probe + #define PROBE_DDR LPC_GPIO1->FIODIR + #define PROBE_PIN LPC_GPIO1->FIOPIN + #define PROBE_PORT LPC_GPIO1->FIOPIN + #define PROBE_BIT 27 // borrowing y-max pin #define PROBE_MASK (1<