Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Marlin to 2.1.x #2488

Draft
wants to merge 226 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
226 commits
Select commit Hold shift + click to select a range
af504de
git subrepo commit lib/Marlin subrepo/lib/Marlin/fetch
mkbel Sep 6, 2022
295d1ca
marlin: add board and pin definitions for the A3IDES_2209_02 board
mkbel Dec 19, 2019
b2a7ff3
marlin: a3ides: proper TMC2209 configuration
mkbel Dec 17, 2019
8add766
marlin: add pragma marks disabling double-promotion warning in a head…
dragomirecky Nov 1, 2019
fb3b3fc
marlin: Merge pull request #2 from XPila/bugfix-2.0.x
XPila Nov 14, 2019
c7f6680
marlin: Merge pull request #3 from XPila/bugfix-2.0.x
DRracer Nov 14, 2019
4e19bad
marlin: Merge pull request #4 from XPila/bugfix-2.0.x
XPila Nov 14, 2019
4066faf
marlin: Merge pull request #5 from XPila/bugfix-2.0.x
DRracer Nov 15, 2019
8e076f8
marlin: Merge pull request #6 from XPila/bugfix-2.0.x
XPila Nov 16, 2019
2379a18
marlin: Merge pull request #8 from XPila/bugfix-2.0.x
XPila Nov 16, 2019
206a3c8
marlin: Merge pull request #10 from XPila/bugfix-2.0.x
XPila Nov 25, 2019
22942cb
marlin: Add safety timer.
Hagridpon3 Nov 26, 2019
f2e2311
marlin: text change M112 Shutdown -: Emergency stop (M112)
michalrudolf Nov 27, 2019
14ce034
marlin: Do not activate safety timer when printing is paused
dragomirecky Dec 6, 2019
bcccc1b
marlin: Remove relative path for Configuration.h.
mkbel Dec 12, 2019
cb0a2cd
marlin: Remove relative path for Configuration_adv.h. Remove Configur…
mkbel Dec 17, 2019
1c890f9
marlin: Modify unload seque. split to two part with diffrent size
mkbel Jan 9, 2020
49bdf96
marlin: fix ExtUI::onMeshUpdate calls for UBL
dragomirecky Jan 31, 2020
5ae08c0
marlin: do not deploy/stow probe in the main UBL procedure
dragomirecky Jan 31, 2020
1e20fa8
marlin: make UBL backward compatible with ABL
dragomirecky Jan 31, 2020
c361bce
marlin: Removed M876
RadekVana Feb 14, 2020
d6554a3
marlin: stdint needed for uint32_t
michalrudolf Feb 27, 2020
4bc2023
marlin: Diasble Buzzer in marlin, it is handled in GUI
RadekVana Apr 23, 2020
fb48ed3
marlin: queue - function enqueue_one added parametr 'echo' to allow e…
XPila Apr 23, 2020
3d1dc32
marlin: FIX_HEATING_FAILED_WHILE_IN_IDLE
RadekVana May 3, 2020
d4b54c2
marlin: Add board thermistor
Hagridpon3 May 12, 2020
8fc2a25
marlin: Add parameter to M104 for "visible" target temperature
RadekVana May 12, 2020
2d527ff
marlin: SD card commands M20-M34 enabled with macro SDCARD_GCODES
XPila May 18, 2020
3c48fe3
marlin: Use D as display instead of R for preheat
espr14 May 14, 2020
8b58e5c
marlin: Remove unnecessary board thermistor heater fce
Hagridpon3 May 20, 2020
fe3f9b7
marlin: Redefine HAL pins and ports. Use pin definitions from main.h
mkbel May 14, 2020
c06b1fa
marlin: Use alias THERM_BOARD_Pin.
mkbel Jun 4, 2020
0a105eb
marlin: M109: Remove first loop penalty
espr14 Jun 25, 2020
8140815
marlin: add PROCESS_CUSTOM_GCODE support
RadekVana Jun 30, 2020
c5df789
marlin: BFW-1053 - add M601 & M602 (pause/unpause & park/unpark)
Jul 21, 2020
80bd7ba
Refactor hwio (#624)
mkbel Oct 2, 2020
3e84bde
error: Fix bed/print head error texts
espr14 Oct 8, 2020
5cf2498
stepper position from startup
RadekVana Oct 15, 2020
166c96b
show dialog after safety timer expired (#1092)
Chleba Nov 27, 2020
f92522a
restoring condition (#1111)
michalrudolf Dec 1, 2020
c6ea6fc
Merge pull request #1150 from RadekVana/Merge_201211
RadekVana Dec 14, 2020
d5f1d07
Merge branch 'RELEASE' into MERGE_210108
RadekVana Jan 8, 2021
bb4b318
Merge branch 'master' into patch-1
DRracer Jul 14, 2021
2f46ee4
Merge pull request #1565 from RadekVana/MERGE_423_210902
RadekVana Sep 3, 2021
a2193c9
Rename board pin definitions from A3IDES to BUDDY
wavexx Sep 1, 2021
7beead2
Rename remaining references to A3ides to Buddy
wavexx Sep 1, 2021
4e6778d
Merge remote-tracking branch 'Upstream/RELEASE-4.3.3' into MERGE_433_…
RadekVana Sep 14, 2021
48c892e
Introduce "config_features.h"
wavexx Sep 25, 2021
2bf2d95
Merge pull request #1613 from prusa3d/WUI-V5
marekmosna-prusa3d Oct 19, 2021
fda9acf
Slowdown print moves only.
mkbel Oct 1, 2021
52d8b59
Marlin: Don't use clang-format
espr14 Nov 9, 2021
c599509
Use interrupts for endstops.
mkbel Nov 9, 2021
7d21d8f
marlin: Remove dbg.h usage
dragomirecky Aug 12, 2021
4b6ebf0
Fan: Use fan for nozzle cooling
espr14 Dec 8, 2021
0401549
Increase Marlin task priority, call osDelay only when waiting.
mkbel Sep 24, 2021
54e796b
Fix homing feedrate not respected by quick_home_xy
mkbel Feb 2, 2022
95cd806
Home: Make quick home movement code more readable
espr14 Feb 7, 2022
26af287
Marlin: add handy functions to planner and motion.
espr14 Mar 1, 2022
0111034
Marlin: Provide draining of motion buffer
espr14 Mar 15, 2022
7cf7bee
homing: Disable Stallguard filtering
espr14 Mar 22, 2022
e4743a1
crash: Remove sfilt from TMC2209
espr14 Mar 23, 2022
6bd03ef
Filament sensor patch
RadekVana Mar 24, 2022
3a33a78
Simplify reading/writing of EEPROM variables
espr14 Mar 25, 2022
fc0fea0
homing: Provide parser-less G28 function
espr14 Mar 29, 2022
3594255
filament: Fix homing in filament (un)load
espr14 Mar 29, 2022
e1cccbf
planner: Guard for an aborted block in buffer_sync_block
wavexx Mar 30, 2022
73f6f22
gcode: Update target temp in M109
espr14 Mar 30, 2022
1358f37
marlin: count steps, compare to limits, retry homing N times
RadekVana Apr 20, 2020
afccfa9
mmu: Fix namespace
RadekVana Apr 20, 2022
12028a1
Include Marlin.h in motion.cpp.
mkbel Apr 19, 2022
f36d255
Display QR code on homing error.
mkbel Apr 19, 2022
afa94fa
Return from homing if we have stopped, do not cause homing error
Apr 29, 2022
d24f8d1
Merge remote-tracking branch 'publicPrusa3d/RELEASE-4.4.0' into merge…
mkbel May 24, 2022
45a74c9
Change No Move to Motors enabled status message.
mkbel May 30, 2022
f51ae07
Add features
mkbel Jun 5, 2022
08a9e3a
Improve project structure
dragomirecky Jul 13, 2022
917ce54
Reimplement sdpos changes to queue.cpp/h
wavexx Aug 29, 2022
e72007c
Merge branch 'master' into update_marlin_2
mkbel Sep 6, 2022
3fa5637
Do not compile multi_language.cpp.
mkbel Sep 8, 2022
7fca1ef
Do not compile binary_protocol.cpp.
mkbel Sep 8, 2022
74cdabe
Do not compile power_loss_recovery.cpp.
mkbel Sep 8, 2022
9761c63
Do not compile xpt2046.cpp.
mkbel Sep 8, 2022
c03af3b
Track folder sdcard renamed to sd.
mkbel Sep 8, 2022
cfe5ec9
Track folder temperature renamed to temp.
mkbel Sep 8, 2022
e7bfc37
Switch to STM32 HAL.
mkbel Sep 8, 2022
900cfbe
Track extensible_ui renamed to extui.
mkbel Sep 8, 2022
22d647f
Marlin: Track file renames and removal.
mkbel Sep 8, 2022
f34cda8
Marlin: Switch to STM32 HAL.
mkbel Sep 9, 2022
676c669
Switch to STM32 HAL.
mkbel Sep 9, 2022
23b099b
Remove non-existing header file include.
mkbel Sep 9, 2022
c89d6e2
Merge remote-tracking branch 'prusa3d/master' into update_marlin_2
mkbel Sep 9, 2022
fefe01c
Fix error: SoftwareSerial.h: No such file or directory
mkbel Sep 14, 2022
d8ffdb8
Fix error "Unsupported Platform!"
mkbel Sep 14, 2022
c45ba91
fix error: Servo.h: No such file or directory
mkbel Sep 14, 2022
d0c2148
Update configuration_adv.h
mkbel Sep 14, 2022
a3fe2f9
Update Configuration.h
mkbel Sep 16, 2022
1388a02
Merge remote-tracking branch 'prusa3d/master' into update_marlin_2
mkbel Sep 27, 2022
8a4e888
Merge master.
mkbel Sep 29, 2022
f2ef2eb
Merge remote-tracking branch 'publicPrusa3d/master' into update_marlin_2
mkbel Oct 4, 2022
225cad7
Merge remote-tracking branch 'prusa3d/master' into update_marlin_2
mkbel Oct 18, 2022
d38d9a7
Marlin 2.1.x: configuration_store.h is now settings.h
wavexx Oct 18, 2022
b8e0f4e
Reflect ultralcd.h renamed to marlinui.h.
mkbel Oct 19, 2022
18c5bd4
Add missing serial_t symbol.
mkbel Oct 19, 2022
5e2814c
Do not include MarlinSerial.h.
mkbel Oct 20, 2022
c2d7849
Implement analogReadResolution().
mkbel Oct 20, 2022
2e9c68f
MINI: Disable USE_PRUSA_EEPROM_AS_SOURCE_OF_DEFAULT_VALUES
wavexx Oct 20, 2022
df765dc
Fix error: 'Z_MIN' was not declared in this scope
mkbel Oct 20, 2022
badbe41
Add missing semicolon
mkbel Oct 20, 2022
13506fd
Remove redundant brace.
mkbel Oct 20, 2022
2ffe91a
Fix warning: g29_size and g29_size_seen unused.
mkbel Oct 20, 2022
8aed50a
Adapt for XYZE_N renamed to DISTINCT_AXES.
mkbel Oct 20, 2022
9eac018
replace cleaning_buffer_counter by draining_buffer
mkbel Oct 20, 2022
5cc179d
Disable PID_EXTRUSION_SCALING.
mkbel Oct 20, 2022
57668e9
Remove duplicate code.
mkbel Oct 21, 2022
5662b8d
Adapt for set_status_P removed to set_status.
mkbel Oct 21, 2022
742c819
fixup! marlin: Add safety timer.
mkbel Oct 25, 2022
9c87951
fixup! Add features
mkbel Oct 25, 2022
a2994e0
fixup! marlin: make UBL backward compatible with ABL
mkbel Oct 25, 2022
4be4bbb
fixup! homing: Provide parser-less G28 function
mkbel Oct 25, 2022
1aa239b
fixup! CRASH_RECOVERY: Enable for MINI.
mkbel Oct 25, 2022
57d55d0
Merge branch 'master' into update_marlin_2
mkbel Oct 25, 2022
f29b3da
Add Arduino timer.h
mkbel Oct 25, 2022
8d72c18
fixup! Add features
mkbel Oct 26, 2022
f989884
fixup! marlin: queue - function enqueue_one added parametr 'echo' to …
mkbel Oct 26, 2022
0368a18
fixup! Merge branch 'RELEASE' into MERGE_210108
mkbel Oct 26, 2022
eefba9a
fixup! Marlin: Provide draining of motion buffer
mkbel Oct 26, 2022
d78be96
Add Arduion IWatchdog.h
mkbel Oct 26, 2022
62d591c
fixup! Include Marlin.h in motion.cpp.
mkbel Oct 26, 2022
1d94f4f
fixup! Marlin: add handy functions to planner and motion.
mkbel Oct 27, 2022
0675a77
fixup! Add features
mkbel Oct 27, 2022
b9830b3
fixup! Add features
mkbel Oct 30, 2022
634ecd4
fixup! Add features
mkbel Oct 30, 2022
7141a0a
fixup! Add features
mkbel Oct 30, 2022
0cf344c
fixup! Add features
mkbel Oct 30, 2022
2acf913
fixup! Add features
mkbel Oct 30, 2022
b38575c
fixup! Add features
mkbel Oct 30, 2022
1d93488
fixup! Add features
mkbel Oct 30, 2022
824a103
fixup! Add features
mkbel Oct 30, 2022
4158827
fixup! Add features
mkbel Oct 30, 2022
a520706
fixup! Add features
mkbel Oct 30, 2022
7fb8e07
fixup! Add features
mkbel Oct 30, 2022
29464a6
fixup! Add features
mkbel Oct 30, 2022
200de48
fixup! Add features
mkbel Oct 30, 2022
5c2d0ea
fixup! Add features
mkbel Oct 31, 2022
0070520
fixup! Add features
mkbel Oct 31, 2022
ed466a6
fixup! Add features
mkbel Oct 31, 2022
fbe45e1
fixup! Add features
mkbel Oct 31, 2022
96f89a1
fixup! Add features
mkbel Oct 31, 2022
048bda3
fixup! Add features
mkbel Oct 31, 2022
78fb9f4
fixup! Add features
mkbel Oct 31, 2022
687e89e
fixup! Add features
mkbel Oct 31, 2022
d23252e
fixup! Add features
mkbel Oct 31, 2022
fc1da9c
fixup! Add features
mkbel Oct 31, 2022
c1372aa
fixup! Add features
mkbel Oct 31, 2022
9b3d9de
fixup! Track extensible_ui renamed to extui.
mkbel Nov 1, 2022
f4f1922
fix warning implicit conversion from float to double.
mkbel Nov 1, 2022
83923ff
fixup! Marlin: Track file renames and removal.
mkbel Nov 1, 2022
7a08f01
Track soft_endstops_enabled relocated to soft_endstop._enabled
mkbel Nov 1, 2022
86f1031
Track disable_all_steppers relocated to stepper.disable_all_steppers
mkbel Nov 1, 2022
5e1c522
Track serial_echopair_PGM renamed to SERIAL_ECHOPGM.
mkbel Nov 1, 2022
b5a4479
Track probe_offset relocated to probe.offset
mkbel Nov 2, 2022
59128ba
Track manage_heater() renamed to task().
mkbel Nov 2, 2022
bc4024a
fixup! error: Fix bed/print head error texts
mkbel Nov 2, 2022
375d5bd
Remove non existing messages from fatal_error()
mkbel Nov 2, 2022
7d35c32
Track HAL_STM32_F4_F7 replaced by STM32.
mkbel Nov 2, 2022
47482d5
fix error: 'stepper' was not declared in this scope
mkbel Nov 2, 2022
630fa80
Track axis_known_position replaced by axis_is_trusted().
mkbel Nov 2, 2022
e0fd277
Track queue.length moved to queue.ring_buffer.length
mkbel Nov 2, 2022
24cca94
Fix compilation produced 153,652 lines of error messages
mkbel Nov 2, 2022
d6986e9
track Marlin.h renamed to MarlinCore.h, extensible_ui to extui
mkbel Nov 2, 2022
f83843e
fixup! Track serial_echopair_PGM renamed to SERIAL_ECHOPGM.
mkbel Nov 2, 2022
349b0af
fix error: 'get_steps_per_unit_x' was not declared in this scope
mkbel Nov 2, 2022
33dabc6
fix error: 'DEFAULT_Z_MAX_POS' was not declared in this scope
mkbel Nov 2, 2022
58687ce
Track prepare_move_to_destination renamed to prepare_line_to_destinat…
mkbel Nov 2, 2022
95e5135
fixup! Reflect ultralcd.h renamed to marlinui.h.
mkbel Nov 2, 2022
b75ac84
Reflect MSG_ERR_HOTEND_TOO_COLD renamed to STR_ERR_HOTEND_TOO_COLD
mkbel Nov 2, 2022
d2269dc
Revert "marlin: Make HOLD_MULTIPLIER array."
mkbel Nov 2, 2022
00b1e90
Track serialprintPGM renamed to serial_print_P
mkbel Nov 2, 2022
1908a97
Declare M32 only when HAS_MEDIA_SUBCALLS
mkbel Nov 3, 2022
94e50fb
fixup! Add features
mkbel Nov 3, 2022
23f86cd
fixup! Fix and unify critical sections.
mkbel Nov 3, 2022
709890a
Track axis_unhomed_error renamed to homing_needed_error
mkbel Nov 3, 2022
577b781
Queue: Add/use set_current_sdpos to set the current sdpos
wavexx Nov 3, 2022
0129ad7
Queue: use has_commands_queued() instead of .length
wavexx Nov 3, 2022
417221a
Queue: Synch media_queue with queue.ring_buffer
wavexx Nov 3, 2022
dd30cfb
fixup! marlin: FIX_HEATING_FAILED_WHILE_IN_IDLE
mkbel Nov 3, 2022
506f4a8
fixup! Add features
mkbel Nov 4, 2022
d83e3ea
fixup! Add features
mkbel Nov 4, 2022
997abb5
fixup! Add features
mkbel Nov 4, 2022
3dc5b07
Track all_axes_known renamed to all_axes_trusted
mkbel Nov 4, 2022
66fc371
Track probe_offset moved to probe.offset
mkbel Nov 4, 2022
78edeb7
fixup! Add features
mkbel Nov 4, 2022
186049e
fixup! Merge branch 'RELEASE' into MERGE_210108
mkbel Nov 4, 2022
572677c
fixup! Add features
mkbel Nov 4, 2022
22bebe4
Track SERIAL_ECHOPAIR_F renamed to SERIAL_ECHOPGM
mkbel Nov 7, 2022
4d71122
Ensure Z >= 10 mm in preheat.
mkbel Nov 7, 2022
75338a1
Track host_response_handler moved to HostUI::handle_response
mkbel Nov 7, 2022
9b017e9
Track enable/disable_e_steppers moved to stepper.enable/disable_e_ste…
mkbel Nov 7, 2022
c3644db
Replace axes_need_homing by axis_is_trusted
mkbel Nov 7, 2022
93b93b0
Remove set_all_unknown().
mkbel Nov 7, 2022
8ecf4d9
Replace LOOP_XYZ by LOOP_LOGICAL_AXES
mkbel Nov 7, 2022
9ce6023
Merge remote-tracking branch 'publicPrusa3d/master' into update_marlin_2
mkbel Nov 8, 2022
cd0f831
fixup! Add features
mkbel Nov 8, 2022
1139a7c
Rearange ExtUI handlers to match declaration order.
mkbel Nov 8, 2022
fe650de
Implement ExtUI event handlers.
mkbel Nov 8, 2022
c48f834
Reflect onMeshUpdate signature changed.
mkbel Nov 8, 2022
cee12fe
Compile M919 TMC Chopper Timing
mkbel Nov 8, 2022
7843b5d
Copy M603_report from marlin to marlin_stubs.
mkbel Nov 8, 2022
8966f80
Add onLevelingDone event handler.
mkbel Nov 8, 2022
53a1715
Fix warning: comparison of integer expressions of different signednes…
mkbel Nov 8, 2022
bc338bc
Copy HardwareTimer.cpp from Arduino
mkbel Nov 8, 2022
6fe7128
Use Error_Handler() declared in main.h
mkbel Nov 8, 2022
76890e9
Copy headers from Arduino.
mkbel Nov 8, 2022
946e494
Replace analogWrite by MarlinHAL::set_pwm_duty.
mkbel Nov 11, 2022
5865075
Remove duplicate symbols defined by HardwareTimer.
mkbel Nov 11, 2022
d26080b
Copy IWatchdog.cpp and headers needed from Arduino
mkbel Nov 11, 2022
0c68dd7
Disable M997 - Firmware Update
mkbel Nov 11, 2022
ba48d8a
Disable FASTIO_INIT
mkbel Nov 11, 2022
accd16b
Compile Marlin HAL Delay.cpp
mkbel Nov 11, 2022
aa07593
Compile Marlin HAL esp_wifi.cpp.
mkbel Nov 11, 2022
f38bfd1
Merge branch 'master' into update_marlin_2
mkbel Nov 11, 2022
ebd36f7
Merge remote-tracking branch 'publicPrusa3d/master' into update_marlin_2
mkbel Dec 7, 2022
385234e
Use timer 7 for temp timer.
mkbel Dec 7, 2022
5d3647a
Merge remote-tracking branch 'publicPrusa3d/master' into update_marlin_2
mkbel Dec 13, 2022
8fdc08a
Fix wrong ADC_RESOLUTION
mkbel Dec 17, 2022
ae026be
Merge remote-tracking branch 'publicPrusa3d/master' into update_marlin_2
mkbel Dec 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ target_compile_definitions(
)

if(MCU MATCHES "STM32")
target_compile_definitions(BuddyHeaders INTERFACE STM32GENERIC)
target_compile_definitions(BuddyHeaders INTERFACE ARDUINO_ARCH_STM32)
endif()

if(MCU MATCHES "STM32F4")
Expand Down
2,005 changes: 1,525 additions & 480 deletions include/marlin/Configuration_MINI.h

Large diffs are not rendered by default.

4,032 changes: 3,210 additions & 822 deletions include/marlin/Configuration_MINI_adv.h

Large diffs are not rendered by default.

67 changes: 28 additions & 39 deletions lib/AddMarlin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,25 @@ endif()

add_library(
Marlin
Marlin/Marlin/src/core/multi_language.cpp
Marlin/Marlin/src/core/serial.cpp
Marlin/Marlin/src/core/utility.cpp
Marlin/Marlin/src/feature/babystep.cpp
Marlin/Marlin/src/feature/backlash.cpp
Marlin/Marlin/src/feature/bedlevel/abl/abl.cpp
Marlin/Marlin/src/feature/bedlevel/bedlevel.cpp
Marlin/Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.cpp
Marlin/Marlin/src/feature/bedlevel/ubl/ubl.cpp
Marlin/Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
Marlin/Marlin/src/feature/bedlevel/ubl/ubl_motion.cpp
Marlin/Marlin/src/feature/binary_protocol.cpp
Marlin/Marlin/src/feature/host_actions.cpp
Marlin/Marlin/src/feature/joystick.cpp
Marlin/Marlin/src/feature/power.cpp
Marlin/Marlin/src/feature/power_loss_recovery.cpp
Marlin/Marlin/src/feature/print_area.cpp
Marlin/Marlin/src/feature/prusa/crash_recovery.cpp
Marlin/Marlin/src/feature/prusa/homing.cpp
Marlin/Marlin/src/feature/prusa/measure_axis.cpp
Marlin/Marlin/src/feature/runout.cpp
Marlin/Marlin/src/feature/spindle_laser.cpp
Marlin/Marlin/src/feature/tmc_util.cpp
Marlin/Marlin/src/feature/touch/xpt2046.cpp
Marlin/Marlin/src/gcode/bedlevel/abl/G29.cpp
Marlin/Marlin/src/gcode/bedlevel/abl/M421.cpp
Marlin/Marlin/src/gcode/bedlevel/G26.cpp
Expand Down Expand Up @@ -71,6 +66,7 @@ add_library(
Marlin/Marlin/src/gcode/feature/trinamic/M569.cpp
Marlin/Marlin/src/gcode/feature/trinamic/M906.cpp
Marlin/Marlin/src/gcode/feature/trinamic/M911-M914.cpp
Marlin/Marlin/src/gcode/feature/trinamic/M919.cpp
Marlin/Marlin/src/gcode/gcode.cpp
Marlin/Marlin/src/gcode/geometry/G53-G59.cpp
Marlin/Marlin/src/gcode/geometry/G92.cpp
Expand All @@ -97,34 +93,26 @@ add_library(
Marlin/Marlin/src/gcode/probe/M401_M402.cpp
Marlin/Marlin/src/gcode/probe/M851.cpp
Marlin/Marlin/src/gcode/queue.cpp
Marlin/Marlin/src/gcode/sdcard/M20.cpp
Marlin/Marlin/src/gcode/sdcard/M21_M22.cpp
Marlin/Marlin/src/gcode/sdcard/M23.cpp
Marlin/Marlin/src/gcode/sdcard/M24_M25.cpp
Marlin/Marlin/src/gcode/sdcard/M26.cpp
Marlin/Marlin/src/gcode/sdcard/M27.cpp
Marlin/Marlin/src/gcode/sdcard/M28_M29.cpp
Marlin/Marlin/src/gcode/sdcard/M30.cpp
Marlin/Marlin/src/gcode/sdcard/M32.cpp
Marlin/Marlin/src/gcode/sdcard/M524.cpp
Marlin/Marlin/src/gcode/sdcard/M928.cpp
Marlin/Marlin/src/gcode/sd/M20.cpp
Marlin/Marlin/src/gcode/sd/M21_M22.cpp
Marlin/Marlin/src/gcode/sd/M23.cpp
Marlin/Marlin/src/gcode/sd/M24_M25.cpp
Marlin/Marlin/src/gcode/sd/M26.cpp
Marlin/Marlin/src/gcode/sd/M27.cpp
Marlin/Marlin/src/gcode/sd/M28_M29.cpp
Marlin/Marlin/src/gcode/sd/M30.cpp
Marlin/Marlin/src/gcode/sd/M32.cpp
Marlin/Marlin/src/gcode/sd/M524.cpp
Marlin/Marlin/src/gcode/sd/M928.cpp
Marlin/Marlin/src/gcode/stats/M31.cpp
Marlin/Marlin/src/gcode/stats/M75-M78.cpp
Marlin/Marlin/src/gcode/temperature/M104_M109.cpp
Marlin/Marlin/src/gcode/temperature/M105.cpp
Marlin/Marlin/src/gcode/temperature/M106_M107.cpp
Marlin/Marlin/src/gcode/temperature/M140_M190.cpp
Marlin/Marlin/src/gcode/temperature/M155.cpp
Marlin/Marlin/src/gcode/temperature/M303.cpp
Marlin/Marlin/src/gcode/temp/M104_M109.cpp
Marlin/Marlin/src/gcode/temp/M105.cpp
Marlin/Marlin/src/gcode/temp/M106_M107.cpp
Marlin/Marlin/src/gcode/temp/M140_M190.cpp
Marlin/Marlin/src/gcode/temp/M155.cpp
Marlin/Marlin/src/gcode/temp/M303.cpp
Marlin/Marlin/src/gcode/units/M82_M83.cpp
Marlin/Marlin/src/HAL/HAL_STM32_F4_F7/eeprom_emul.cpp
Marlin/Marlin/src/HAL/HAL_STM32_F4_F7/EmulatedEeprom.cpp
Marlin/Marlin/src/HAL/HAL_STM32_F4_F7/HAL.cpp
Marlin/Marlin/src/HAL/HAL_STM32_F4_F7/persistent_store_eeprom.cpp
Marlin/Marlin/src/HAL/HAL_STM32_F4_F7/Servo.cpp
Marlin/Marlin/src/HAL/HAL_STM32_F4_F7/STM32F4/timers.cpp
Marlin/Marlin/src/HAL/HAL_STM32_F4_F7/STM32F7/timers.cpp
Marlin/Marlin/src/HAL/HAL_STM32_F4_F7/STM32F7/TMC2660.cpp
Marlin/Marlin/src/HAL/shared/backtrace/backtrace.cpp
Marlin/Marlin/src/HAL/shared/backtrace/unwarm.cpp
Marlin/Marlin/src/HAL/shared/backtrace/unwarm_arm.cpp
Expand All @@ -133,22 +121,23 @@ add_library(
Marlin/Marlin/src/HAL/shared/backtrace/unwarmmem.cpp
Marlin/Marlin/src/HAL/shared/backtrace/unwinder.cpp
Marlin/Marlin/src/HAL/shared/backtrace/unwmemaccess.cpp
Marlin/Marlin/src/HAL/shared/eeprom_spi.cpp
Marlin/Marlin/src/HAL/shared/HAL_spi_L6470.cpp
Marlin/Marlin/src/HAL/shared/persistent_store_api.cpp
Marlin/Marlin/src/lcd/extensible_ui/ui_api.cpp
Marlin/Marlin/src/lcd/ultralcd.cpp
Marlin/Marlin/src/HAL/shared/Delay.cpp
Marlin/Marlin/src/HAL/shared/esp_wifi.cpp
Marlin/Marlin/src/HAL/STM32/HAL.cpp
Marlin/Marlin/src/HAL/STM32/Servo.cpp
Marlin/Marlin/src/HAL/STM32/timers.cpp
Marlin/Marlin/src/lcd/extui/ui_api.cpp
Marlin/Marlin/src/lcd/marlinui.cpp
Marlin/Marlin/src/libs/buzzer.cpp
Marlin/Marlin/src/libs/crc16.cpp
Marlin/Marlin/src/libs/heatshrink/heatshrink_decoder.cpp
Marlin/Marlin/src/libs/hex_print_routines.cpp
Marlin/Marlin/src/libs/hex_print.cpp
Marlin/Marlin/src/libs/least_squares_fit.cpp
Marlin/Marlin/src/libs/nozzle.cpp
Marlin/Marlin/src/libs/numtostr.cpp
Marlin/Marlin/src/libs/stopwatch.cpp
Marlin/Marlin/src/libs/vector_3.cpp
Marlin/Marlin/src/Marlin.cpp
Marlin/Marlin/src/module/configuration_store.cpp
Marlin/Marlin/src/MarlinCore.cpp
Marlin/Marlin/src/module/delta.cpp
Marlin/Marlin/src/module/endstops.cpp
Marlin/Marlin/src/module/motion.cpp
Expand All @@ -159,9 +148,9 @@ add_library(
Marlin/Marlin/src/module/probe.cpp
Marlin/Marlin/src/module/scara.cpp
Marlin/Marlin/src/module/servo.cpp
Marlin/Marlin/src/module/settings.cpp
Marlin/Marlin/src/module/stepper.cpp
Marlin/Marlin/src/module/stepper/indirection.cpp
Marlin/Marlin/src/module/stepper/L6470.cpp
Marlin/Marlin/src/module/stepper/TMC26X.cpp
Marlin/Marlin/src/module/stepper/trinamic.cpp
Marlin/Marlin/src/module/temperature.cpp
Expand Down
14 changes: 11 additions & 3 deletions lib/Arduino_Core_Buddy/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
add_library(
CoreBuddy cores/arduino/Print.cpp cores/arduino/Stream.cpp cores/arduino/USBSerial.cpp
cores/arduino/Wire.cpp cores/arduino/wiring_time.c cores/arduino/WMath.cpp
CoreBuddy
cores/arduino/HardwareTimer.cpp
cores/arduino/Print.cpp
cores/arduino/Stream.cpp
cores/arduino/USBSerial.cpp
cores/arduino/Wire.cpp
cores/arduino/wiring_time.c
cores/arduino/WMath.cpp
lib/IWatchdog/IWatchdog.cpp
lib/SrcWrapper/src/stm32/timer.c
)

target_include_directories(
CoreBuddy PUBLIC variants/BUDDY_F407VET6_2209 cores/arduino/stm32 cores/arduino
CoreBuddy PUBLIC variants/BUDDY_F407VET6_2209 cores/arduino/stm32 cores/arduino lib/IWatchdog
)

target_compile_definitions(CoreBuddy PUBLIC ARDUINO=187 HAVE_HWSERIAL2 USBD_USE_CDC USBCON)
Expand Down
5 changes: 4 additions & 1 deletion lib/Arduino_Core_Buddy/cores/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
//#include "wiring_digital.h"
#include "wiring.h"
#include "variant.h"
//#include "HardwareSerial.h"
#include "HardwareSerial.h"
//#include "binary.h"

//typedef uint8_t byte;
Expand All @@ -41,3 +41,6 @@ void yield(void);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus

// Include pins variant
#include "pins_arduino.h"
8 changes: 6 additions & 2 deletions lib/Arduino_Core_Buddy/cores/arduino/HardwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
#ifndef _HARDWARESERIAL_H
#define _HARDWARESERIAL_H

#include <inttypes.h>
#include "Stream.h"
#ifdef __cplusplus

#include <inttypes.h>
#include "Stream.h"
#include "uart.h"

class HardwareSerial : public Stream {
public:
Expand All @@ -22,4 +25,5 @@ class HardwareSerial : public Stream {

extern HardwareSerial Serial3;

#endif //__cplusplus
#endif //_HARDWARESERIAL_H
Loading