Skip to content

Commit

Permalink
⚡️ Ethernet Buffer for Input Shaping on LPC (MarlinFirmware#26027)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisiskeithb authored and Andy-Big committed Jul 19, 2023
1 parent e0639d3 commit d404b4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Marlin/src/module/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
#ifdef __MARLIN_DEPS__
#define NOT_TARGET(V...) 0
#else
#define NOT_TARGET(V...) NONE(V)
#define NOT_TARGET NONE
#endif

//
Expand Down

0 comments on commit d404b4c

Please sign in to comment.