⚡️ Ethernet Buffer for Input Shaping on LPC (#26027)
This commit is contained in:
@@ -247,7 +247,13 @@ uint32_t Stepper::advance_divisor = 0,
|
|||||||
|
|
||||||
#if HAS_ZV_SHAPING
|
#if HAS_ZV_SHAPING
|
||||||
shaping_time_t ShapingQueue::now = 0;
|
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];
|
shaping_echo_axis_t ShapingQueue::echo_axes[shaping_echoes];
|
||||||
uint16_t ShapingQueue::tail = 0;
|
uint16_t ShapingQueue::tail = 0;
|
||||||
|
|
||||||
|
@@ -120,7 +120,7 @@
|
|||||||
#ifdef __MARLIN_DEPS__
|
#ifdef __MARLIN_DEPS__
|
||||||
#define NOT_TARGET(V...) 0
|
#define NOT_TARGET(V...) 0
|
||||||
#else
|
#else
|
||||||
#define NOT_TARGET(V...) NONE(V)
|
#define NOT_TARGET NONE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user