Skip to content

Commit 359efbb

Browse files
committed
πŸ› Fix Teensy 4.x stepper timing (#28169)
πŸ§‘β€πŸ’» Timer general cleanup 🩹 Teensy 4.x timer mods
1 parent 9844add commit 359efbb

File tree

16 files changed

+103
-58
lines changed

16 files changed

+103
-58
lines changed

β€ŽMarlin/Version.hβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* Marlin release version identifier
3030
*/
31-
//#define SHORT_BUILD_VERSION "2.1.1.3"
31+
//#define SHORT_BUILD_VERSION "2.1.1.4"
3232

3333
/**
3434
* Verbose version identifier which should contain a reference to the location
@@ -41,7 +41,7 @@
4141
* here we define this default string as the date where the latest release
4242
* version was tagged.
4343
*/
44-
//#define STRING_DISTRIBUTION_DATE "2024-12-16"
44+
//#define STRING_DISTRIBUTION_DATE "2025-11-13"
4545

4646
/**
4747
* Defines a generic printer name to be output to the LCD after booting Marlin.

β€ŽMarlin/src/HAL/AVR/timers.hβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ FORCE_INLINE void HAL_timer_start(const uint8_t timer_num, const uint32_t) {
109109
* (otherwise, characters will be lost due to UART overflow).
110110
* Then: Stepper, Endstops, Temperature, and -finally- all others.
111111
*/
112-
#define HAL_timer_isr_prologue(T) NOOP
113-
#define HAL_timer_isr_epilogue(T) NOOP
112+
inline void HAL_timer_isr_prologue(const uint8_t) {}
113+
inline void HAL_timer_isr_epilogue(const uint8_t) {}
114114

115115
#ifndef HAL_STEP_TIMER_ISR
116116

β€ŽMarlin/src/HAL/DUE/timers.hβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,4 @@ FORCE_INLINE static void HAL_timer_isr_prologue(const uint8_t timer_num) {
126126
pConfig->pTimerRegs->TC_CHANNEL[pConfig->channel].TC_SR;
127127
}
128128

129-
#define HAL_timer_isr_epilogue(T) NOOP
129+
inline void HAL_timer_isr_epilogue(const uint8_t) {}

β€ŽMarlin/src/HAL/ESP32/timers.hβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,5 @@ void HAL_timer_enable_interrupt(const uint8_t timer_num);
136136
void HAL_timer_disable_interrupt(const uint8_t timer_num);
137137
bool HAL_timer_interrupt_enabled(const uint8_t timer_num);
138138

139-
#define HAL_timer_isr_prologue(T) NOOP
140-
#define HAL_timer_isr_epilogue(T) NOOP
139+
inline void HAL_timer_isr_prologue(const uint8_t) {}
140+
inline void HAL_timer_isr_epilogue(const uint8_t) {}

β€ŽMarlin/src/HAL/LINUX/timers.hβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ void HAL_timer_enable_interrupt(const uint8_t timer_num);
9292
void HAL_timer_disable_interrupt(const uint8_t timer_num);
9393
bool HAL_timer_interrupt_enabled(const uint8_t timer_num);
9494

95-
#define HAL_timer_isr_prologue(T) NOOP
96-
#define HAL_timer_isr_epilogue(T) NOOP
95+
inline void HAL_timer_isr_prologue(const uint8_t) {}
96+
inline void HAL_timer_isr_epilogue(const uint8_t) {}

β€ŽMarlin/src/HAL/LPC1768/timers.hβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,4 @@ FORCE_INLINE static void HAL_timer_isr_prologue(const uint8_t timer_num) {
170170
}
171171
}
172172

173-
#define HAL_timer_isr_epilogue(T) NOOP
173+
inline void HAL_timer_isr_epilogue(const uint8_t) {}

β€ŽMarlin/src/HAL/NATIVE_SIM/timers.hβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ void HAL_timer_enable_interrupt(const uint8_t timer_num);
8787
void HAL_timer_disable_interrupt(const uint8_t timer_num);
8888
bool HAL_timer_interrupt_enabled(const uint8_t timer_num);
8989

90-
#define HAL_timer_isr_prologue(T) NOOP
91-
#define HAL_timer_isr_epilogue(T) NOOP
90+
inline void HAL_timer_isr_prologue(const uint8_t) {}
91+
inline void HAL_timer_isr_epilogue(const uint8_t) {}

β€ŽMarlin/src/HAL/SAMD51/timers.hβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,4 @@ FORCE_INLINE static void HAL_timer_isr_prologue(const uint8_t timer_num) {
140140
}
141141
}
142142

143-
#define HAL_timer_isr_epilogue(timer_num)
143+
inline void HAL_timer_isr_epilogue(const uint8_t) {}

β€ŽMarlin/src/HAL/STM32/timers.hβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,5 @@ FORCE_INLINE static void HAL_timer_set_compare(const uint8_t timer_num, const ha
116116
}
117117
}
118118

119-
#define HAL_timer_isr_prologue(T) NOOP
120-
#define HAL_timer_isr_epilogue(T) NOOP
119+
inline void HAL_timer_isr_prologue(const uint8_t) {}
120+
inline void HAL_timer_isr_epilogue(const uint8_t) {}

β€ŽMarlin/src/HAL/STM32F1/timers.hβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ FORCE_INLINE static void HAL_timer_isr_prologue(const uint8_t timer_num) {
188188
}
189189
}
190190

191-
#define HAL_timer_isr_epilogue(T) NOOP
191+
inline void HAL_timer_isr_epilogue(const uint8_t) {}
192192

193193
// No command is available in framework to turn off ARPE bit, which is turned on by default in libmaple.
194194
// Needed here to reset ARPE=0 for stepper timer

0 commit comments

Comments
Β (0)