From d404b4c0c2c7ab72a7c2e396696634acd83762d5 Mon Sep 17 00:00:00 2001 From: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Thu, 29 Jun 2023 13:27:25 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Ethernet=20Buffer=20for=20?= =?UTF-8?q?Input=20Shaping=20on=20LPC=20(#26027)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/module/stepper.cpp | 8 +++++++- Marlin/src/pins/pins.h | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Marlin/src/module/stepper.cpp b/Marlin/src/module/stepper.cpp index af2701c941cd..181c2558bc06 100644 --- a/Marlin/src/module/stepper.cpp +++ b/Marlin/src/module/stepper.cpp @@ -247,7 +247,13 @@ uint32_t Stepper::advance_divisor = 0, #if HAS_ZV_SHAPING shaping_time_t ShapingQueue::now = 0; - shaping_time_t ShapingQueue::times[shaping_echoes]; + #if ANY(MCU_LPC1768, MCU_LPC1769) && DISABLED(NO_LPC_ETHERNET_BUFFER) + // Use the 16K LPC Ethernet buffer: https://github.com/MarlinFirmware/Marlin/issues/25432#issuecomment-1450420638 + #define _ATTR_BUFFER __attribute__((section("AHBSRAM1"),aligned)) + #else + #define _ATTR_BUFFER + #endif + shaping_time_t ShapingQueue::times[shaping_echoes] _ATTR_BUFFER; shaping_echo_axis_t ShapingQueue::echo_axes[shaping_echoes]; uint16_t ShapingQueue::tail = 0; diff --git a/Marlin/src/pins/pins.h b/Marlin/src/pins/pins.h index 0c92654806a4..e780840183ef 100644 --- a/Marlin/src/pins/pins.h +++ b/Marlin/src/pins/pins.h @@ -120,7 +120,7 @@ #ifdef __MARLIN_DEPS__ #define NOT_TARGET(V...) 0 #else - #define NOT_TARGET(V...) NONE(V) + #define NOT_TARGET NONE #endif //