File tree Expand file tree Collapse file tree 19 files changed +71
-78
lines changed
buildroot/share/PlatformIO/scripts Expand file tree Collapse file tree 19 files changed +71
-78
lines changed Original file line number Diff line number Diff line change 3434#define MF_TIMER_TEMP 1
3535#define MF_TIMER_PULSE MF_TIMER_STEP
3636
37- # define hal_timer_t uint32_t
38- #define HAL_TIMER_TYPE_MAX UINT16_MAX
37+ typedef uint32_t hal_timer_t ;
38+ #define HAL_TIMER_TYPE_MAX hal_timer_t ( UINT16_MAX)
3939
4040extern uint32_t GetStepperTimerClkFreq();
4141
Original file line number Diff line number Diff line change 2727//
2828typedef Timer0 * timer_channel_t ;
2929typedef uint16_t hal_timer_t ;
30- #define HAL_TIMER_TYPE_MAX 0xFFFFU
30+ #define HAL_TIMER_TYPE_MAX hal_timer_t(UINT16_MAX)
3131
3232//
3333// Timer instances
Original file line number Diff line number Diff line change 3636#endif
3737
3838typedef uint64_t hal_timer_t ;
39- #define HAL_TIMER_TYPE_MAX 0xFFFF'FFFF'FFFF'FFFFULL
39+ #define HAL_TIMER_TYPE_MAX hal_timer_t(UINT64_MAX)
4040
4141#define HAL_TIMER_RATE ((SystemCoreClock) / 4) // frequency of timers peripherals
4242
Original file line number Diff line number Diff line change 4141#define _HAL_TIMER_ISR (T ) __HAL_TIMER_ISR(T)
4242
4343typedef uint64_t hal_timer_t ;
44- #define HAL_TIMER_TYPE_MAX 0xFFFF'FFFF'FFFF'FFFFULL
44+ #define HAL_TIMER_TYPE_MAX hal_timer_t(UINT64_MAX)
4545
4646#define HAL_TIMER_RATE (1'000'000ULL) // fixed value as we use a microsecond timesource
4747#ifndef MF_TIMER_STEP
Original file line number Diff line number Diff line change 3333// --------------------------------------------------------------------------
3434
3535typedef uint32_t hal_timer_t ;
36- #define HAL_TIMER_TYPE_MAX 0xFFFFFFFFUL
36+ #define HAL_TIMER_TYPE_MAX hal_timer_t(UINT32_MAX)
3737
3838#define HAL_TIMER_RATE F_CPU // frequency of timers peripherals
3939
Original file line number Diff line number Diff line change 4040 */
4141
4242typedef uint16_t hal_timer_t ;
43- #define HAL_TIMER_TYPE_MAX 0xFFFFU
43+ #define HAL_TIMER_TYPE_MAX hal_timer_t(UINT16_MAX)
4444
4545#define HAL_TIMER_RATE uint32_t(F_CPU) // frequency of timers peripherals
4646
Original file line number Diff line number Diff line change @@ -723,7 +723,7 @@ void Marlin::manage_inactivity(const bool no_stepper_sleep/*=false*/) {
723723 // handle delayed move timeout
724724 if (delayed_move_time && ELAPSED (ms, delayed_move_time) && isRunning ()) {
725725 // travel moves have been received so enact them
726- delayed_move_time = 0xFFFFFFFFUL ; // force moves to be done
726+ delayed_move_time = UINT32_MAX ; // force moves to be done
727727 destination = current_position;
728728 prepare_line_to_destination ();
729729 planner.synchronize ();
Original file line number Diff line number Diff line change 5353#else
5454 #undef EXTRUDERS
5555 #define EXTRUDERS 0
56- #undef TEMP_SENSOR_0
57- #undef TEMP_SENSOR_1
58- #undef TEMP_SENSOR_2
59- #undef TEMP_SENSOR_3
60- #undef TEMP_SENSOR_4
61- #undef TEMP_SENSOR_5
62- #undef TEMP_SENSOR_6
63- #undef TEMP_SENSOR_7
6456 #undef SINGLENOZZLE
6557 #undef SWITCHING_EXTRUDER
6658 #undef MECHANICAL_SWITCHING_EXTRUDER
222214 #undef HOTEND_OFFSET_Z
223215#endif
224216
217+ // Clean up unused temperature sensors and sub-options
218+ #define UNUSED_TEMP_SENSOR (N ) (!TEMP_SENSOR_##N || N >= HOTENDS)
219+ #if UNUSED_TEMP_SENSOR (0 )
220+ #undef TEMP_SENSOR_0
221+ #endif
222+ #if UNUSED_TEMP_SENSOR (1 )
223+ #undef TEMP_SENSOR_1
224+ #endif
225+ #if UNUSED_TEMP_SENSOR (2 )
226+ #undef TEMP_SENSOR_2
227+ #endif
228+ #if UNUSED_TEMP_SENSOR (3 )
229+ #undef TEMP_SENSOR_3
230+ #endif
231+ #if UNUSED_TEMP_SENSOR (4 )
232+ #undef TEMP_SENSOR_4
233+ #endif
234+ #if UNUSED_TEMP_SENSOR (5 )
235+ #undef TEMP_SENSOR_5
236+ #endif
237+ #if UNUSED_TEMP_SENSOR (6 )
238+ #undef TEMP_SENSOR_6
239+ #endif
240+ #if UNUSED_TEMP_SENSOR (7 )
241+ #undef TEMP_SENSOR_7
242+ #endif
243+ #if !TEMP_SENSOR_BED
244+ #undef TEMP_SENSOR_BED
245+ #endif
246+ #if !TEMP_SENSOR_CHAMBER
247+ #undef TEMP_SENSOR_CHAMBER
248+ #endif
249+ #if !TEMP_SENSOR_PROBE
250+ #undef TEMP_SENSOR_PROBE
251+ #endif
252+ #if !TEMP_SENSOR_REDUNDANT
253+ #undef TEMP_SENSOR_REDUNDANT
254+ #endif
255+ #if !TEMP_SENSOR_BOARD
256+ #undef TEMP_SENSOR_BOARD
257+ #endif
258+ #if !TEMP_SENSOR_SOC
259+ #undef TEMP_SENSOR_SOC
260+ #endif
261+ #undef UNUSED_TEMP_SENSOR
262+
225263/**
226264 * Number of Linear Axes (e.g., XYZIJKUVW)
227265 * All the logical axes except for the tool (E) axis
Original file line number Diff line number Diff line change 4040// Remove irrelevant Configuration.h settings
4141//
4242
43- // Clean up unused temperature sensors and sub-options
44-
45- #define UNUSED_TEMP_SENSOR (N ) (!TEMP_SENSOR_##N || N >= HOTENDS)
46- #if UNUSED_TEMP_SENSOR (0 )
47- #undef TEMP_SENSOR_0
48- #endif
49- #if UNUSED_TEMP_SENSOR (1 )
50- #undef TEMP_SENSOR_1
51- #endif
52- #if UNUSED_TEMP_SENSOR (2 )
53- #undef TEMP_SENSOR_2
54- #endif
55- #if UNUSED_TEMP_SENSOR (3 )
56- #undef TEMP_SENSOR_3
57- #endif
58- #if UNUSED_TEMP_SENSOR (4 )
59- #undef TEMP_SENSOR_4
60- #endif
61- #if UNUSED_TEMP_SENSOR (5 )
62- #undef TEMP_SENSOR_5
63- #endif
64- #if UNUSED_TEMP_SENSOR (6 )
65- #undef TEMP_SENSOR_6
66- #endif
67- #if UNUSED_TEMP_SENSOR (7 )
68- #undef TEMP_SENSOR_7
69- #endif
70- #undef UNUSED_TEMP_SENSOR
71-
7243#if !HAS_HOTEND
7344 #undef PREHEAT_1_TEMP_HOTEND
7445 #undef PREHEAT_2_TEMP_HOTEND
7546#endif
7647#if !TEMP_SENSOR_BED
77- #undef TEMP_SENSOR_BED
7848 #undef THERMAL_PROTECTION_BED
7949 #undef MAX_BED_POWER
8050 #undef PREHEAT_1_TEMP_BED
8151 #undef PREHEAT_2_TEMP_BED
8252#endif
8353#if !TEMP_SENSOR_CHAMBER
84- #undef TEMP_SENSOR_CHAMBER
8554 #undef THERMAL_PROTECTION_CHAMBER
8655 #undef MAX_CHAMBER_POWER
8756 #undef PREHEAT_1_TEMP_CHAMBER
9160 #undef TEMP_SENSOR_COOLER
9261 #undef THERMAL_PROTECTION_COOLER
9362#endif
94- #if !TEMP_SENSOR_PROBE
95- #undef TEMP_SENSOR_PROBE
96- #endif
97- #if !TEMP_SENSOR_REDUNDANT
98- #undef TEMP_SENSOR_REDUNDANT
99- #endif
100- #if !TEMP_SENSOR_BOARD
101- #undef TEMP_SENSOR_BOARD
102- #endif
103- #if !TEMP_SENSOR_SOC
104- #undef TEMP_SENSOR_SOC
105- #endif
10663#if !SOFT_PWM_SCALE
10764 #undef SOFT_PWM_SCALE
10865#endif
Original file line number Diff line number Diff line change 4242 * version was tagged.
4343 */
4444#ifndef STRING_DISTRIBUTION_DATE
45- #define STRING_DISTRIBUTION_DATE "2025-12-05 "
45+ #define STRING_DISTRIBUTION_DATE "2025-12-06 "
4646#endif
4747
4848/**
You can’t perform that action at this time.
0 commit comments