From c2beecaf1757cce9dcc7028a2bd7da6e176e903a Mon Sep 17 00:00:00 2001 From: odaki Date: Wed, 8 May 2019 00:42:51 +0900 Subject: [PATCH 1/2] Change Build Status icon on README.md for my own forked repository. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index f8324f0d..6b29b1a0 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ### Project Overview -[![Build Status](https://travis-ci.org/bdring/Grbl_Esp32.svg?branch=master)](https://travis-ci.org/bdring/Grbl_Esp32) +[![Build Status](https://travis-ci.com/odaki/Grbl_Esp32.svg?branch=master)](https://travis-ci.com/odaki/Grbl_Esp32) This is a port of [Grbl](https://github.com/gnea/grbl) for the ESP32. The ESP32 is potentially a great target for Grbl for the following reasons @@ -54,4 +54,3 @@ Start asking questions...I'll put the frequent ones here. This project requires a lot of work and often expensive items for testing. Please consider a safe, secure and highly appreciated donation via the PayPal link below. [![](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TKNJ9Z775VXB2) - From ebc3ed3176014bbb2727ee5fa582341b92386413 Mon Sep 17 00:00:00 2001 From: odaki Date: Sun, 16 Jun 2019 20:21:03 +0900 Subject: [PATCH 2/2] FIX: suppress waring about static function and static variables --- Grbl_Esp32/grbl.h | 2 +- Grbl_Esp32/servo_pen.cpp | 2 + Grbl_Esp32/servo_pen.h | 2 - Grbl_Esp32/solenoid_pen.cpp | 2 + Grbl_Esp32/solenoid_pen.h | 2 +- Grbl_Esp32/stepper.cpp | 103 ++++++++++++++++++------------------ Grbl_Esp32/stepper.h | 1 - 7 files changed, 58 insertions(+), 56 deletions(-) diff --git a/Grbl_Esp32/grbl.h b/Grbl_Esp32/grbl.h index d93c3618..4203e775 100644 --- a/Grbl_Esp32/grbl.h +++ b/Grbl_Esp32/grbl.h @@ -20,7 +20,7 @@ // Grbl versioning system #define GRBL_VERSION "1.1f" -#define GRBL_VERSION_BUILD "20190602" +#define GRBL_VERSION_BUILD "20190616" //#include #include diff --git a/Grbl_Esp32/servo_pen.cpp b/Grbl_Esp32/servo_pen.cpp index 513d9114..6e575bfa 100644 --- a/Grbl_Esp32/servo_pen.cpp +++ b/Grbl_Esp32/servo_pen.cpp @@ -23,6 +23,8 @@ #ifdef USE_PEN_SERVO +static TaskHandle_t servoSyncTaskHandle = 0; + // used to delay turn on bool servo_pen_enable = false; diff --git a/Grbl_Esp32/servo_pen.h b/Grbl_Esp32/servo_pen.h index 1d1a0364..ab58bbcb 100644 --- a/Grbl_Esp32/servo_pen.h +++ b/Grbl_Esp32/servo_pen.h @@ -67,8 +67,6 @@ #ifndef servo_h #define servo_h -static TaskHandle_t servoSyncTaskHandle = 0; - void servo_init(); void servo_disable(); bool validate_servo_settings(bool verbose); diff --git a/Grbl_Esp32/solenoid_pen.cpp b/Grbl_Esp32/solenoid_pen.cpp index 3729124d..6b0b30c5 100644 --- a/Grbl_Esp32/solenoid_pen.cpp +++ b/Grbl_Esp32/solenoid_pen.cpp @@ -23,6 +23,8 @@ #ifdef USE_PEN_SOLENOID +static TaskHandle_t solenoidSyncTaskHandle = 0; + // used to delay turn on bool solenoid_pen_enable; uint16_t solenoide_hold_count; diff --git a/Grbl_Esp32/solenoid_pen.h b/Grbl_Esp32/solenoid_pen.h index 313b1078..cd7c328a 100644 --- a/Grbl_Esp32/solenoid_pen.h +++ b/Grbl_Esp32/solenoid_pen.h @@ -46,7 +46,7 @@ #ifndef solenoid_h #define solenoid_h -static TaskHandle_t solenoidSyncTaskHandle = 0; + void solenoid_init(); void solenoid_disable(); void solenoidSyncTask(void *pvParameters); diff --git a/Grbl_Esp32/stepper.cpp b/Grbl_Esp32/stepper.cpp index 2f198eaa..a395432b 100644 --- a/Grbl_Esp32/stepper.cpp +++ b/Grbl_Esp32/stepper.cpp @@ -198,6 +198,58 @@ static st_prep_t prep; */ + +#ifdef USE_RMT_STEPS +// Set stepper pulse output pins +inline IRAM_ATTR static void stepperRMT_Outputs() +{ + +#ifdef X_STEP_PIN + if(st.step_outbits & (1<