mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-02-16 22:37:35 +00:00
⚡️ Ethernet Buffer for Input Shaping on LPC (#26027)
This commit is contained in:
parent
97e15812fa
commit
d9349caeee
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@
|
|||
#ifdef __MARLIN_DEPS__
|
||||
#define NOT_TARGET(V...) 0
|
||||
#else
|
||||
#define NOT_TARGET(V...) NONE(V)
|
||||
#define NOT_TARGET NONE
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue