commit4b9fce2e85Merge:ecb08b15bee17d710c5cAuthor: Sergey <sergey@terentiev.me> Date: Mon Dec 27 16:47:22 2021 +0300 Merge branch '2.0.x' into vanilla_fb_2.0.x commite17d710c5cAuthor: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Sat Dec 25 22:13:20 2021 -0600 🔖 Marlin 2.0.9.3 commit9b13ae2399Author: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Sat Dec 25 19:41:01 2021 -0800 🐛 Fix MKS Robin E3 NeoPixel pin default (#23350) commit06f36dc746Author: kaidegit <60053077+kaidegit@users.noreply.github.com> Date: Sun Dec 26 10:12:20 2021 +0800 🐛 Fix open for bin rename (#23351) commit98eca9cb23Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Sat Dec 25 03:27:45 2021 -0600 🔧 Move MOTHERBOARD closer to top commit6268795003Author: fflosi <34758322+fflosi@users.noreply.github.com> Date: Sat Dec 25 05:57:07 2021 -0300 ✨ Per-axis TMC hold multiplier (#23345) commitb4f0922a7cAuthor: Sola <42537573+solawc@users.noreply.github.com> Date: Fri Dec 24 14:03:32 2021 +0800 ✨ MKS TinyBee board support (#23340) Co-Authored-By: Sola <42537573+solawc@users.noreply.github.com> commitaef613acd3Author: Robby Candra <robbycandra.mail@gmail.com> Date: Thu Dec 23 15:19:39 2021 +0700 🔧 Group FAST_PWM_FAN.options (#23331) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commit9ecfa1d252Author: InsanityAutomation <38436470+InsanityAutomation@users.noreply.github.com> Date: Tue Dec 21 23:09:55 2021 -0500 ✨ BLTouch High Speed mode runtime configuration (#22916, #23337) Co-Authored-By: Scott Lahteine <thinkyhead@users.noreply.github.com> commite0bed1e344Author: ellensp <530024+ellensp@users.noreply.github.com> Date: Wed Dec 22 15:44:04 2021 +1300 ✨ Option to reset EEPROM on first run (#23276) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commitd21fa25ab8Author: Spencer Owen <owenspencer@gmail.com> Date: Sat Dec 18 18:58:46 2021 -0700 ✨ Creality3D V4.2.3 / Ender-2 Pro board (#23307) commit0dc1a58b24Author: X-Ryl669 <boite.pour.spam@gmail.com> Date: Tue Dec 14 07:22:06 2021 +0100 ✨ Configurations embed and retrieve (#21321, #23303) commitf2ca70e232Author: John Lagonikas <39417467+zeleps@users.noreply.github.com> Date: Wed Dec 8 20:55:09 2021 +0200 🐛 Fix and improve MAX31865 (#23215) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commita6bed22839Author: BigTreeTech <38851044+bigtreetech@users.noreply.github.com> Date: Sat Dec 11 03:38:03 2021 +0800 ✨ BigTreeTech SKR mini E3 V3.0 (STM32G0B1RET6) (#23283) commitefd67cf80dAuthor: Giuseppe499 <giuseppe499@live.it> Date: Tue Dec 7 02:53:51 2021 +0100 ✨ X Twist Compensation & Calibration (#23238) commit15204470a8Author: ladismrkolj <ladismrkolj@gmail.com> Date: Sun Dec 5 22:41:39 2021 +0100 🔧 Chamber Fan index option (#23262) commit48358d6a5cAuthor: Mike La Spina <mike.laspina@shaw.ca> Date: Fri Dec 3 12:48:48 2021 -0600 🏗️ Fix Maple HAL/STM32F1 PWM (#23211) commitd7abb891cdAuthor: Tanguy Pruvot <tpruvot@users.noreply.github.com> Date: Fri Dec 3 19:31:48 2021 +0100 🏗️ Rework STM32 timer frequency protection (#23187) commit52a44eb200Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Tue Nov 30 15:04:05 2021 -0600 🐛 Fix STM32 FastPWM commit9b1c0a75e1Author: Scott Lahteine <github@thinkyhead.com> Date: Sat Nov 27 18:33:32 2021 -0600 🎨 Rename HAL timer elements commitd75e7784e5Author: schmttc <89831403+schmttc@users.noreply.github.com> Date: Wed Nov 24 08:52:18 2021 +1100 ✨ EasyThreeD ET4000+ board and UI (#23080) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commit0e60c8b7e0Author: John Robertson <john@cirtech.co.uk> Date: Tue Nov 23 21:24:24 2021 +0000 ✨ MarkForged YX kinematics (#23163) commit018c7b1cf4Author: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Sun Nov 21 11:25:06 2021 -0800 ✨ BigTreeTech Mini 12864 V1.0 (#23130) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commitaf1d603374Author: Giuliano Zaro <3684609+GMagician@users.noreply.github.com> Date: Tue Nov 23 21:01:53 2021 +0100 ✨ Fan tachometer support (#23086, #23180, #23199) Co-Authored-By: Scott Lahteine <github@thinkyhead.com> commit884308f964Author: Scott Lahteine <github@thinkyhead.com> Date: Tue Nov 16 08:54:30 2021 -0600 🔧 SOUND_MENU_ITEM for E3V2 commit7269990413Author: Miguel Risco-Castillo <mriscoc@users.noreply.github.com> Date: Wed Nov 10 11:31:35 2021 -0500 🚸 Expose sub-options for E3V2 Enhanced (#23099) commit2a90d93b17Author: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Wed Nov 17 09:33:42 2021 -0800 📌 Overridable probe-related pins (#23107) commit6e284f8823Author: BigTreeTech <38851044+bigtreetech@users.noreply.github.com> Date: Wed Nov 10 23:56:10 2021 +0800 ✨ Support for BIQU B1-SE-Plus strain gauge probe (#23101) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commita2349fc411Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Fri Dec 24 23:47:52 2021 -0600 🔨 Configurable firmware bin filename Configuration.h > FIRMWARE_BIN commita3964b2b40Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Fri Dec 24 20:59:28 2021 -0600 🔨 Ignore more generated files commit226ee7c1f3Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Fri Dec 24 01:46:51 2021 -0600 🔧 Sanity check MMU2_MENUS commit2c12171f46Author: Attila BODY <attila.body@gmail.com> Date: Fri Dec 24 06:57:20 2021 +0100 🐛 Fix Robin Nano v3 filament runout pins (#23344) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commitd034a9c295Author: MrAlvin <umo-testing@3iii.dk> Date: Thu Dec 23 10:47:52 2021 +0100 🚸 Show mm'ss during first hour (#23335) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commitd2c7104bb3Author: Robby Candra <robbycandra.mail@gmail.com> Date: Wed Dec 15 07:51:19 2021 +0700 🚸 Change "SD" to "Media" or "SD/FD" (#23297) commit570c7e8638Author: ellensp <530024+ellensp@users.noreply.github.com> Date: Wed Dec 22 13:48:38 2021 +1300 🐛 Fix Chitu Z_STOP_PIN (#23330) commitcc4578a3d3Author: Tanguy Pruvot <tpruvot@users.noreply.github.com> Date: Thu Dec 23 07:49:15 2021 +0100 🩹 Fix settings G21 report (#23338) commit1db84be66aAuthor: Mike La Spina <mike.laspina@shaw.ca> Date: Tue Dec 21 01:26:31 2021 -0600 🚑️ FAST_PWM_FAN default 1KHz base freq. (#23326) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commit77c9668fe2Author: ellensp <530024+ellensp@users.noreply.github.com> Date: Tue Dec 14 19:25:28 2021 +1300 🐛 Fix LCD_BED_LEVELING compile (#23298) commit22cf9b444eAuthor: GHGiampy <83699429+GHGiampy@users.noreply.github.com> Date: Mon Dec 20 09:44:43 2021 +0100 🧑💻 Option allowing > 127 Neopixels (#23322) commit97798d1e47Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Thu Jul 8 01:33:49 2021 -0500 🎨 Update SKR V2 pins commitf4b808456aAuthor: Giuliano Zaro <3684609+GMagician@users.noreply.github.com> Date: Tue Dec 14 01:47:57 2021 +0100 🚸 Use M600 for disabled MMU (#21865) commit6264736968Author: Tanguy Pruvot <tpruvot@users.noreply.github.com> Date: Tue Dec 14 01:41:21 2021 +0100 🐛 Fix TFT_COLOR_UI Release Media issue (#23123) commit7a5f103bcfAuthor: John Lagonikas <39417467+zeleps@users.noreply.github.com> Date: Sat Dec 18 01:31:10 2021 +0200 🔧 Warning for IGNORE_THERMOCOUPLE_ERRORS (#23312) commit1a8307b196Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Sat Dec 18 17:38:29 2021 -0600 📝 Fix a config comment commit13a1c86ae8Author: ellensp <530024+ellensp@users.noreply.github.com> Date: Tue Dec 14 13:18:24 2021 +1300 ✨ M115 flag EXTENDED_M20 (#22941) commit15656201d2Author: ellensp <530024+ellensp@users.noreply.github.com> Date: Tue Dec 14 13:13:34 2021 +1300 ✏️ Clean up duplicate defs (#23182) commitf3e372cb4cAuthor: Robby Candra <robbycandra.mail@gmail.com> Date: Tue Dec 14 07:11:52 2021 +0700 🩹 Init fan speed at boot (#23181) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commitc781ecc437Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Mon Dec 13 16:15:46 2021 -0600 🔧 Fix unknown board test commitdaa8fff6c6Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Sun Dec 12 16:16:40 2021 -0600 🩹 SD abort requires open file See #22566 commitd481bba327Author: ellensp <530024+ellensp@users.noreply.github.com> Date: Sun Dec 12 11:06:45 2021 +1300 🐛 Fix MARLIN_F103Rx variant SCK / MOSI pins (#23282) commit32b08ae04cAuthor: Scott Alfter <scott@alfter.us> Date: Wed Dec 8 23:18:04 2021 -0800 Fix Endstops::report_states (#23280) Fix regression 4d45fdf0eb commitf00a0356c7Author: Scott Lahteine <github@thinkyhead.com> Date: Wed Dec 8 18:36:08 2021 -0600 🎨 Misc. probe / endstop cleanup commit9871800874Author: Sola <42537573+solawc@users.noreply.github.com> Date: Thu Dec 9 03:37:45 2021 +0800 🐛 Fix MKS LVGL UI retraction (#23267) commit39c2c038beAuthor: Robby Candra <robbycandra.mail@gmail.com> Date: Thu Dec 9 02:15:31 2021 +0700 🩹 Coerce pin_t in set_pwm_duty macros (#23273) commit285d6488a3Author: Jason Smith <jason.inet@gmail.com> Date: Wed Dec 8 11:10:37 2021 -0800 🐛 Fix ACTION_ITEM with nullptr (#23195) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commiteecbd09a46Author: Robby Candra <robbycandra.mail@gmail.com> Date: Thu Dec 9 01:57:50 2021 +0700 🚸 Onboard SD for SKR 2.0 / SKR PRO (#23274) commit8d4e4ac115Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Wed Dec 8 12:40:23 2021 -0600 🎨 Rename MAX31865 elements commitb77a5d4c8dAuthor: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Mon Dec 6 20:18:50 2021 -0600 ✏️ MAX31856 => MAX31865 commitc3b8b3e7e6Author: Mike La Spina <mike.laspina@shaw.ca> Date: Mon Dec 6 15:52:18 2021 -0600 🩹 Fix non-PWM cutter compile (#23169) commit7123b15801Author: Stuart Pittaway <1201909+stuartpittaway@users.noreply.github.com> Date: Mon Dec 6 21:40:18 2021 +0000 🐛 Fix TWIBus Wire.begin call (#23183) commit8a2f13d657Author: Chris Pepper <p3p@p3psoft.co.uk> Date: Sun Dec 5 22:18:02 2021 +0000 🐛 HAL_reboot for native HAL (#23246) commit251d9fc1d7Author: tommywienert <53783769+tommywienert@users.noreply.github.com> Date: Sun Dec 5 23:16:23 2021 +0100 🐛 Fix env:chitu_f103 (#23225) commit5eeb9650b5Author: ellensp <530024+ellensp@users.noreply.github.com> Date: Mon Dec 6 10:42:56 2021 +1300 📌 More Longer3D LKx Pro serial tests (#23260) commitc0addd1d33Author: Stuart Pittaway <1201909+stuartpittaway@users.noreply.github.com> Date: Sat Dec 4 23:44:10 2021 +0000 ✨ M3426 to read i2c MCP3426 ADC (#23184) commit05b57278d4Author: Scott Lahteine <github@thinkyhead.com> Date: Sat Dec 4 17:17:10 2021 -0600 🔧 Cutter pins for SKR 2.0 commitaa3ec2fbfdAuthor: Robby Candra <robbycandra.mail@gmail.com> Date: Sun Dec 5 05:14:19 2021 +0700 🚸 Park nozzle on "loud kill" (#23172) commit4468516aa2Author: ellensp <530024+ellensp@users.noreply.github.com> Date: Sun Dec 5 11:10:29 2021 +1300 ✨ BigTree SKR 2 with F429 (#23177) commit95d006b406Author: ellensp <530024+ellensp@users.noreply.github.com> Date: Sat Dec 4 09:48:54 2021 +1300 🐛 Fix TIMER_TONE for ZM3E4 (#23212) commit5b057b4bcfAuthor: Jiri Jirus <jiri.jirus@cloudaper.com> Date: Tue Nov 30 21:46:48 2021 +0100 🩹 Assume 4K EEPROM for RUMBA32 BTT (#23205) commit77af48e547Author: Scott Lahteine <github@thinkyhead.com> Date: Tue Nov 30 13:03:31 2021 -0600 🐛 Fix STM32 FastPWM commit0f7f709aadAuthor: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Sat Nov 27 14:59:32 2021 -0800 ✏️ Fix Unicode (#23186) commita8c0e11cb1Author: Jason Smith <jason.inet@gmail.com> Date: Sat Nov 27 13:54:39 2021 -0800 🩹 Handle nullptr in CardReader::printLongPath (#23197) commit0556da85b0Author: Anson Liu <ansonl@users.noreply.github.com> Date: Sat Nov 27 17:58:05 2021 -0500 🩹 UM2 extruder cooling fan on PJ6 (#23194) commit93652e5c6fAuthor: George Fu <nailao_5918@163.com> Date: Sun Nov 28 03:26:53 2021 +0800 ✨ FYSETC Spider v2.2 (#23208) commitf3fc1d15a3Author: Giuliano Zaro <3684609+GMagician@users.noreply.github.com> Date: Tue Nov 23 22:33:33 2021 +0100 🩹 Fix include path (#23150) commit3148060550Author: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Tue Nov 23 13:54:31 2021 -0800 📌 Biqu BX temporary framework workaround (#23131) commit5f08864d1fAuthor: Mike La Spina <mike.laspina@shaw.ca> Date: Tue Nov 23 14:05:50 2021 -0600 🐛 Fix STM32 set_pwm_duty (#23125) commit184fc36a08Author: Tanguy Pruvot <tpruvot@users.noreply.github.com> Date: Sun Nov 21 20:13:01 2021 +0100 🐛 Fix TFT backlight sleep/wake (#23153) commit281ed99868Author: Tanguy Pruvot <tpruvot@users.noreply.github.com> Date: Sat Nov 20 02:44:53 2021 +0100 ⚡️ Reduce calls to set fan PWM (#23149) commit2cc4a1b326Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Wed Nov 17 13:01:44 2021 -0600 🎨 Misc formatting commitc5bd08755cAuthor: BigTreeTech <38851044+bigtreetech@users.noreply.github.com> Date: Thu Nov 18 01:35:28 2021 +0800 🐛 Init PROBE_ENABLE_PIN (#23133) commit99f58f63f2Author: luzpaz <luzpaz@users.noreply.github.com> Date: Wed Nov 17 12:09:01 2021 -0500 🎨 Fix misspelling (#23137) commitc2a674d2c1Author: espr14 <espr14@gmail.com> Date: Wed Nov 17 18:07:11 2021 +0100 🏗️ Planner::busy() (#23145) commitfeffc19867Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Tue Nov 16 14:06:36 2021 -0600 🐛 Fix fast PWM WGM code Followup to #23102 commitf637e1c501Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Tue Nov 16 12:49:25 2021 -0600 🔨 Bring Makefile up to date commit78240a279bAuthor: EvilGremlin <22657714+EvilGremlin@users.noreply.github.com> Date: Tue Nov 16 19:32:43 2021 +0300 🔨 Ignore sim flashdrive file (#23129) commit656034d2d9Author: Luc Van Daele <lvd@sound-silence.com> Date: Tue Nov 16 16:24:53 2021 +0100 🐛 Fix G33, Delta radii, reachable (#22795) commit39a81d167eAuthor: Mikhail Basov <github@basov.net> Date: Mon Nov 15 07:46:34 2021 +0300 🚸 LCD_SHOW_E_TOTAL for TFT_COLOR_UI (#23127) commitcb1570d162Author: Scott Lahteine <github@thinkyhead.com> Date: Sun Nov 14 17:19:57 2021 -0600 🐛 Fix SENSORLESS_HOMING for 6-axis commit8cb646cc20Author: EvilGremlin <22657714+EvilGremlin@users.noreply.github.com> Date: Mon Nov 15 00:15:07 2021 +0300 🚸 Simplify touchscreen calibration for SimUI (#23124) commit3cccb21dc9Author: Miguel Risco-Castillo <mriscoc@users.noreply.github.com> Date: Wed Nov 10 11:55:20 2021 -0500 🚸 Fix up E3V2 Enhanced (#23100) commit7f4a49cc44Author: Scott Lahteine <github@thinkyhead.com> Date: Fri Oct 22 13:21:26 2021 -0500 🎨 Misc. issue review patches commite0c439fe91Author: Mike La Spina <mike.laspina@shaw.ca> Date: Sun Nov 14 05:55:31 2021 -0600 ⚡️ Controller Fan software PWM (etc.) (#23102) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commit49e233e06fAuthor: Tanguy Pruvot <tpruvot@users.noreply.github.com> Date: Fri Nov 12 21:26:19 2021 +0100 🎨 MPX ARM Mini pins cleanup (#23113) commitb662dd1f92Author: Mike La Spina <mike.laspina@shaw.ca> Date: Fri Nov 12 12:14:28 2021 -0600 🐛 [LCP1768] Init PWM in set_pwm_duty (#23110) commit700cae43abAuthor: Skruppy <skruppy@onmars.eu> Date: Fri Nov 12 15:57:24 2021 +0100 🩹 Fix RGB case light compile (#23108) commit1c74c6e7acAuthor: George Fu <nailao_5918@163.com> Date: Wed Nov 10 23:58:20 2021 +0800 🐛 Fix FYSETC Cheetah 2.0 pins for production (#23104) commit757a9477dbAuthor: Minims <github@minims.fr> Date: Sun Oct 10 01:10:21 2021 +0200 🩹 Adjust GTR 1.0 ST7920 display delay (#22904) commit59d43408f6Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Sat Dec 25 00:57:30 2021 -0600 fix breaks in F() resolution commit1d8941d008Author: Scott Lahteine <github@thinkyhead.com> Date: Tue Oct 5 21:35:31 2021 -0500 🔨 Port libsdl2_net required for macOS simulator commit17f853d99cAuthor: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Tue Nov 9 08:30:02 2021 -0800 ⚡️ BTT002 (STM32F407VET6) variant, MK3_FAN_PINS flag (#23093) commit6f9f25dbb2Author: Scott Lahteine <github@thinkyhead.com> Date: Sun Nov 7 01:11:51 2021 -0600 🎨 Misc. code cleanup commit0273a68587Author: VragVideo <91742261+VragVideo@users.noreply.github.com> Date: Sun Oct 3 06:12:51 2021 +0300 ✨ WYH L12864 LCD (Alfawise Ex8) (#22863) commit58a26fcaacAuthor: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Sat Nov 6 23:09:15 2021 -0700 🚸 Indicate Preheating for probe / leveling (#23088) commit489aca03ffAuthor: Evgeniy Zhabotinskiy <evg-zhabotinsky@users.noreply.github.com> Date: Sun Nov 7 07:16:18 2021 +0300 🩹 Fix M503 report (#23084) commitf32e19e1c6Author: Jin <3448324+jinhong-@users.noreply.github.com> Date: Sun Nov 7 11:53:36 2021 +0800 🍻 Preliminary fix for Max31865 SPI (#22682) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commit57bd04b6ceAuthor: dwzg <50058606+dwzg@users.noreply.github.com> Date: Sun Nov 7 04:48:00 2021 +0100 🐛 Fix JyersUI scrolling filename, etc. (#23082) Co-authored-by: Scott Lahteine <github@thinkyhead.com> commit396df93220Author: ellensp <530024+ellensp@users.noreply.github.com> Date: Sun Nov 7 15:27:53 2021 +1300 🐛 Fix DGUS Reloaded status message (#23090) commit9b76b58b79Author: Scott Lahteine <github@thinkyhead.com> Date: Thu Nov 4 12:18:23 2021 -0500 🍻 Get/clear reset source earlier Followup to #23075 commit9fffed7160Author: Skruppy <skruppy@onmars.eu> Date: Thu Nov 4 18:11:57 2021 +0100 🐛 Prevent AVR watchdogpile (#23075) commitfd136d5501Author: Tanguy Pruvot <tpruvot@users.noreply.github.com> Date: Thu Nov 4 18:04:04 2021 +0100 🐛 Fix TFT backlight [STM32] (#23062) commit89ec1c71f0Author: BigTreeTech <38851044+bigtreetech@users.noreply.github.com> Date: Thu Nov 4 18:54:38 2021 +0800 🐛 Fix Octopus-Pro Max31865 / SPI (#23072) commitfc2020c6ecAuthor: Robby Candra <robbycandra.mail@gmail.com> Date: Thu Nov 4 17:28:42 2021 +0700 🔨 Fix IntelliSense / PIO conflicts (#23058) Co-authored-by: Scott Lahteine <github@thinkyhead.com> commitf97635de36Author: ellensp <530024+ellensp@users.noreply.github.com> Date: Thu Nov 4 14:04:06 2021 +1300 📌 'STOP' auto-assign, some Chitu V9 pins (#22889) Co-authored-by: Scott Lahteine <github@thinkyhead.com> commita0a57406a2Author: Scott Lahteine <github@thinkyhead.com> Date: Wed Nov 3 07:06:31 2021 -0500 🔨 Script 'mfprep' finds pending commits commit5efef86cfaAuthor: Scott Lahteine <github@thinkyhead.com> Date: Wed Nov 3 07:02:21 2021 -0500 🔨 Update git helper scripts commit20c747753dAuthor: Scott Lahteine <github@thinkyhead.com> Date: Tue Nov 2 01:28:00 2021 -0500 🔨 Support ABM in mf scripts commit08a9c61587Author: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Mon Nov 1 23:15:29 2021 -0700 📌 Default NeoPixel pin for MKS Robin E3/E3D (#23060) commit0d91b07797Author: Andrei M <22990561+andrei-moraru@users.noreply.github.com> Date: Tue Nov 2 01:47:16 2021 -0400 ⚗️ Use pwm_set_duty over analogWrite to set PWM (#23048) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commitb033da1782Author: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Mon Nov 1 22:43:40 2021 -0700 🔧 Endstop / DIAG homing conflict warning (#23050) commit4dcd872be5Author: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Mon Nov 1 21:23:54 2021 -0700 ✨ Allow Low EJERK with LA, optional (#23054) commit7e9e2a7435Author: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Mon Nov 1 20:23:24 2021 -0700 ✨ Artillery Ruby (STM32F401RCT6) (#23029) commit0b84194127Author: tombrazier <68918209+tombrazier@users.noreply.github.com> Date: Mon Nov 1 23:03:50 2021 +0000 🚸 More flexible Probe Temperature Compensation (#23033) commitefd9329c81Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Thu Jul 8 01:17:16 2021 -0500 📝 Tweak EXP comments commit5cbb820e29Author: Scott Lahteine <github@thinkyhead.com> Date: Sat Oct 30 23:43:19 2021 -0500 🔨 Help for GDB remote debugging commit5a0166489eAuthor: Scott Lahteine <github@thinkyhead.com> Date: Sat Oct 30 22:43:02 2021 -0500 🩹 Fix linker error (transfer_port_index) commit692c9a6312Author: Scott Lahteine <github@thinkyhead.com> Date: Sat Oct 30 04:16:37 2021 -0500 💚 Update Ender-3 V2 config path MarlinFirmware/Configurations#600 commit545d14f9a5Author: Scott Lahteine <github@thinkyhead.com> Date: Sat Oct 30 01:39:33 2021 -0500 🎨 Adjust Ender-3 V2 DWIN options commit7b9e01eb2bAuthor: aalku <aalku7@gmail.com> Date: Sat Oct 30 07:17:20 2021 +0200 ✨ Shutdown Host Action (#22908) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commit8562f0ec44Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Fri Oct 29 20:46:55 2021 -0500 ✨ "Rutilea" ESP32 board (#22880) commit6f59d8171fAuthor: Scott Lahteine <github@thinkyhead.com> Date: Fri Oct 29 20:42:52 2021 -0500 🔧 Configuration version 02000903 commitd29a9014f2Author: Scott Lahteine <github@thinkyhead.com> Date: Wed Oct 27 21:36:06 2021 -0500 🎨 Standard 'cooldown' method commit205d867e4bAuthor: Scott Lahteine <github@thinkyhead.com> Date: Wed Oct 27 20:01:44 2021 -0500 🎨 Standard material presets behavior commit84f9490149Author: Scott Lahteine <github@thinkyhead.com> Date: Wed Oct 27 21:15:58 2021 -0500 🎨 Define HAS_PREHEAT conditional commit1fd4258423Author: tome9111991 <57866234+tome9111991@users.noreply.github.com> Date: Sat Oct 30 00:49:12 2021 +0200 🐛 Fix E3V2 (CrealityUI) Tune/Prepare > Zoffset (#23040) commite8a55972a7Author: Scott Lahteine <github@thinkyhead.com> Date: Thu Oct 28 19:22:35 2021 -0500 🐛 Fix EZBoard V2 board name commitaef413202eAuthor: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Thu Oct 28 03:26:05 2021 -0700 🐛 Fix MKS Robin E3/E3D Z Stop/Probe pins (#23034) commitcbc7dadf42Author: Scott Lahteine <github@thinkyhead.com> Date: Tue Oct 26 21:54:43 2021 -0500 🎨 Apply HAS_MULTI_HOTEND conditional commitc508ecc414Author: Zlopi <zlopi.ru@gmail.com> Date: Wed Oct 27 23:10:46 2021 +0300 🚸 Scroll long filename on MKS TFT (#23031) commit384a31765fAuthor: ellensp <530024+ellensp@users.noreply.github.com> Date: Thu Oct 28 09:06:06 2021 +1300 🩹 Retain LCD pins with motor expansion (#23024) commit0f2c4fc40bAuthor: somehibs <hibs@circuitco.de> Date: Wed Oct 27 21:00:02 2021 +0100 🐛 Fix serial PORT_RESTORE (and BUFFER_MONITORING) (#23022) commit66a274452cAuthor: tome9111991 <57866234+tome9111991@users.noreply.github.com> Date: Wed Oct 27 21:58:32 2021 +0200 🐛 Fix E3V2 (CrealityUI) position display (#23023) Followup to #23005, #22778 commit12f8168d1eAuthor: Scott Lahteine <github@thinkyhead.com> Date: Tue Oct 26 19:36:16 2021 -0500 🚸 Tweaks to UBL G29 Q commit2142e1dae4Author: woisy00 <spam@bergermeier.info> Date: Wed Oct 27 01:05:34 2021 +0200 🐛 Fix AUTOTEMP bug (thermal runaway) (#23025) Regression from9823a37commit8d21ea55a2Author: tombrazier <68918209+tombrazier@users.noreply.github.com> Date: Mon Oct 25 06:33:40 2021 +0100 🐛 Add USE_TEMP_EXT_COMPENSATION options (#23007) commita0da7e8a1fAuthor: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Sun Oct 24 23:33:27 2021 -0500 🔧 Fewer alerts about Z_SAFE_HOMING commite2452d6c57Author: tome9111991 <57866234+tome9111991@users.noreply.github.com> Date: Fri Oct 22 18:16:07 2021 +0200 🐛 Fix SHOW_REMAINING_TIME option for JyersUI (#22999) commit5173a3140dAuthor: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Fri Oct 22 08:52:31 2021 -0700 ✨ BigTreeTech TFT35 SPI V1.0 (#22986) commite44f2b7d2dAuthor: Mike La Spina <mike.laspina@shaw.ca> Date: Tue Oct 19 06:05:23 2021 -0500 🩹 Fix pragma ignored for older GCC (#22978) commited78f7f4e6Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Tue Oct 19 05:59:48 2021 -0500 🎨 Refactor MOSFET pins layout (#22983) commitaa198e41ddAuthor: Scott Lahteine <github@thinkyhead.com> Date: Tue Oct 19 05:52:41 2021 -0500 🎨 Pragma GCC cleanup commit18b38fb58aAuthor: Jason Smith <jason.inet@gmail.com> Date: Mon Oct 18 01:11:16 2021 -0700 🐛 Fix max chamber fan speed (#22977) commit5d79d8fad6Author: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Mon Oct 18 00:57:54 2021 -0700 🐛 Fix I2C EEPROM SDA/SCL aliases with SKR Mini E3 V2 (#22955) commite7a746966dAuthor: ellensp <530024+ellensp@users.noreply.github.com> Date: Mon Oct 18 20:54:20 2021 +1300 🐛 Fix MMU1 compile (#22965) commit555f35d46fAuthor: Mike La Spina <mike.laspina@shaw.ca> Date: Mon Oct 18 02:40:47 2021 -0500 🎨 Suppress type warning (#22976) commitde77dfcbbdAuthor: Scott Lahteine <github@thinkyhead.com> Date: Sun Oct 17 22:10:08 2021 -0500 🎨 Add MKS UI goto_previous_ui commitaf08f16efcAuthor: Scott Lahteine <github@thinkyhead.com> Date: Sun Oct 17 20:24:41 2021 -0500 🚸 Tweak MKS UI G-code console commit01a0f3a8cfAuthor: Scott Lahteine <github@thinkyhead.com> Date: Sun Oct 17 18:11:16 2021 -0500 🎨 Fix up MKS UI defines commitf80bcdcc5cAuthor: Scott Lahteine <github@thinkyhead.com> Date: Fri Oct 15 00:24:08 2021 -0500 🎨 Refactor Host Actions as singleton commit1ead7ce681Author: ellensp <530024+ellensp@users.noreply.github.com> Date: Fri Oct 15 14:38:03 2021 +1300 🔧 Add, update TFT sanity checks (#22928) commitdffa56463eAuthor: InsanityAutomation <38436470+InsanityAutomation@users.noreply.github.com> Date: Tue Oct 12 23:19:05 2021 -0400 ⚡️ Formbot ST7920 delays, intentional X2 pins (#22915) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commitae98d2e5eaAuthor: Dmytro <svetotled@gmail.com> Date: Wed Oct 13 05:45:00 2021 +0300 🎨 Update MKS UI for no bed, extruder (#22938) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> commit5b1ef638eeAuthor: InsanityAutomation <38436470+InsanityAutomation@users.noreply.github.com> Date: Tue Oct 12 19:40:56 2021 -0400 🐛 Fix IDEX + DISABLE_INACTIVE_EXTRUDER (#22925) commitf3be03da20Author: Stuart Pittaway <1201909+stuartpittaway@users.noreply.github.com> Date: Mon Oct 11 23:42:29 2021 +0100 ✨ M261 S I2C output format (#22890) Co-authored-by: Scott Lahteine <github@thinkyhead.com> commit64128a5bcbAuthor: Tanguy Pruvot <tpruvot@users.noreply.github.com> Date: Sun Oct 10 01:05:24 2021 +0200 🐛 Queue string followup (#22900) commit0018c94a79Author: Pyro-Fox <36782094+Pyro-Fox@users.noreply.github.com> Date: Sat Oct 9 15:09:50 2021 -0700 🐛 LCD string followup (#22892) commitd48cb11537Author: Scott Lahteine <github@thinkyhead.com> Date: Tue Oct 5 21:19:28 2021 -0500 🐛 Followup to F() in config_line Followup to 1dafd1887e commitd9f7de7a24Author: Scott Lahteine <github@thinkyhead.com> Date: Mon Oct 4 19:50:14 2021 -0500 🐛 ExtUI F() followups Followup to 12b5d997a2 commit3d102a77caAuthor: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Tue Sep 28 20:15:52 2021 -0500 🎨 Apply F() to kill / sendinfoscreen commit492d70424dAuthor: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Tue Sep 28 19:28:29 2021 -0500 🎨 Apply F() to MKS UI errors, assets commit24dbeceb45Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Mon Sep 27 13:46:42 2021 -0500 🎨 Apply F() to various reports commitcabd538fddAuthor: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Mon Sep 27 13:40:01 2021 -0500 🎨 Apply F() to G-code report header commit9cf1c3cf05Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Sat Sep 25 23:52:41 2021 -0500 🎨 Apply F() to UTF-8/MMU2 string put commitc3ae221a10Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Sat Sep 25 22:11:48 2021 -0500 🎨 Apply F() to some ExtUI functions commit7626d859a6Author: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Mon Sep 27 11:55:08 2021 -0500 🎨 Apply F() to Host Actions strings commit360311f232Author: Scott Lahteine <github@thinkyhead.com> Date: Sat Sep 25 17:05:11 2021 -0500 🎨 Apply F() to status message commit433eedd50fAuthor: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Mon Sep 27 11:03:07 2021 -0500 🎨 Apply F() to serial macros commit46c53f6730Author: Scott Lahteine <github@thinkyhead.com> Date: Sat Sep 25 21:11:31 2021 -0500 🎨 Apply F() to G-code suite and queue commit2b9ae0cc33Author: Scott Lahteine <github@thinkyhead.com> Date: Sat Sep 25 18:43:52 2021 -0500 🎨 Apply F() to G-code subcommands commit433a27e475Author: Scott Lahteine <github@thinkyhead.com> Date: Sat Sep 25 18:22:37 2021 -0500 🎨 Update F string declarations commit1de265ea5dAuthor: Scott Lahteine <thinkyhead@users.noreply.github.com> Date: Mon Oct 4 00:24:41 2021 -0500 🎨 Axis name string interpolation, with examples (#22879) commitecb08b15beMerge:798d12c2af854ce63358Author: Sergey <sergey@terentiev.me> Date: Wed Dec 22 11:58:28 2021 +0300 Merge branch '2.0.x' into vanilla_fb_2.0.x commit854ce63358Author: Robby Candra <robbycandra.mail@gmail.com> Date: Sun Dec 19 05:33:21 2021 +0700 🐛 Fix loud_kill heater disable (#23314) commit170f77fadaAuthor: lukrow80 <64228214+lukrow80@users.noreply.github.com> Date: Tue Nov 23 22:30:13 2021 +0100 🐛 Fix homing current for extra axes (#23152) Followup to #19112 commit72b99bf1baAuthor: InsanityAutomation <38436470+InsanityAutomation@users.noreply.github.com> Date: Sat Oct 9 19:13:19 2021 -0400 🐛 Fix IDEX Duplication Mode Positioning (#22914) Fixing #22538 commit1a8583f4fcAuthor: Robby Candra <robbycandra.mail@gmail.com> Date: Wed Nov 24 04:19:32 2021 +0700 🐛 Fix serial_data_available (#23160)
1149 lines
38 KiB
Makefile
1149 lines
38 KiB
Makefile
# Marlin Firmware Arduino Project Makefile
|
|
#
|
|
# Makefile Based on:
|
|
# Arduino 0011 Makefile
|
|
# Arduino adaptation by mellis, eighthave, oli.keller
|
|
# Marlin adaption by Daid
|
|
# Marlin 2.0 support and RELOC_WORKAROUND by @marcio-ao
|
|
#
|
|
# This has been tested with Arduino 0022.
|
|
#
|
|
# This makefile allows you to build sketches from the command line
|
|
# without the Arduino environment (or Java).
|
|
#
|
|
# Detailed instructions for using the makefile:
|
|
#
|
|
# 1. Modify the line containing "ARDUINO_INSTALL_DIR" to point to the directory that
|
|
# contains the Arduino installation (for example, under macOS, this
|
|
# might be /Applications/Arduino.app/Contents/Resources/Java).
|
|
#
|
|
# 2. Modify the line containing "UPLOAD_PORT" to refer to the filename
|
|
# representing the USB or serial connection to your Arduino board
|
|
# (e.g. UPLOAD_PORT = /dev/tty.USB0). If the exact name of this file
|
|
# changes, you can use * as a wild card (e.g. UPLOAD_PORT = /dev/tty.usb*).
|
|
#
|
|
# 3. Set the line containing "MCU" to match your board's processor. Set
|
|
# "PROG_MCU" as the AVR part name corresponding to "MCU". You can use the
|
|
# following command to get a list of correspondences: `avrdude -c alf -p x`
|
|
# Older boards are atmega8 based, newer ones like Arduino Mini, Bluetooth
|
|
# or Diecimila have the atmega168. If you're using a LilyPad Arduino,
|
|
# change F_CPU to 8000000. If you are using Gen7 electronics, you
|
|
# probably need to use 20000000. Either way, you must regenerate
|
|
# the speed lookup table with create_speed_lookuptable.py.
|
|
#
|
|
# 4. Type "make" and press enter to compile/verify your program.
|
|
#
|
|
# 5. Type "make upload", reset your Arduino board, and press enter to
|
|
# upload your program to the Arduino board.
|
|
#
|
|
# Note that all settings at the top of this file can be overridden from
|
|
# the command line with, for example, "make HARDWARE_MOTHERBOARD=71"
|
|
#
|
|
# To compile for RAMPS (atmega2560) with Arduino 1.6.9 at root/arduino you would use...
|
|
#
|
|
# make ARDUINO_VERSION=10609 AVR_TOOLS_PATH=/root/arduino/hardware/tools/avr/bin/ \
|
|
# HARDWARE_MOTHERBOARD=1200 ARDUINO_INSTALL_DIR=/root/arduino
|
|
#
|
|
# To compile and upload simply add "upload" to the end of the line...
|
|
#
|
|
# make ARDUINO_VERSION=10609 AVR_TOOLS_PATH=/root/arduino/hardware/tools/avr/bin/ \
|
|
# HARDWARE_MOTHERBOARD=1200 ARDUINO_INSTALL_DIR=/root/arduino upload
|
|
#
|
|
# If uploading doesn't work try adding the parameter "AVRDUDE_PROGRAMMER=wiring" or
|
|
# start upload manually (using stk500) like so:
|
|
#
|
|
# avrdude -C /root/arduino/hardware/tools/avr/etc/avrdude.conf -v -p m2560 -c stk500 \
|
|
# -U flash:w:applet/Marlin.hex:i -P /dev/ttyUSB0
|
|
#
|
|
# Or, try disconnecting USB to power down and then reconnecting before running avrdude.
|
|
#
|
|
|
|
# This defines the board to compile for (see boards.h for your board's ID)
|
|
HARDWARE_MOTHERBOARD ?= 1020
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
# Windows
|
|
ARDUINO_INSTALL_DIR ?= ${HOME}/Arduino
|
|
ARDUINO_USER_DIR ?= ${HOME}/Arduino
|
|
else
|
|
UNAME_S := $(shell uname -s)
|
|
ifeq ($(UNAME_S),Linux)
|
|
# Linux
|
|
ARDUINO_INSTALL_DIR ?= /usr/share/arduino
|
|
ARDUINO_USER_DIR ?= ${HOME}/Arduino
|
|
endif
|
|
ifeq ($(UNAME_S),Darwin)
|
|
# Darwin (macOS)
|
|
ARDUINO_INSTALL_DIR ?= /Applications/Arduino.app/Contents/Java
|
|
ARDUINO_USER_DIR ?= ${HOME}/Documents/Arduino
|
|
AVR_TOOLS_PATH ?= /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/
|
|
endif
|
|
endif
|
|
|
|
# Arduino source install directory, and version number
|
|
# On most linuxes this will be /usr/share/arduino
|
|
ARDUINO_INSTALL_DIR ?= ${HOME}/Arduino
|
|
ARDUINO_VERSION ?= 106
|
|
|
|
# The installed Libraries are in the User folder
|
|
ARDUINO_USER_DIR ?= ${HOME}/Arduino
|
|
|
|
# You can optionally set a path to the avr-gcc tools.
|
|
# Requires a trailing slash. For example, /usr/local/avr-gcc/bin/
|
|
AVR_TOOLS_PATH ?=
|
|
|
|
# Programmer configuration
|
|
UPLOAD_RATE ?= 57600
|
|
AVRDUDE_PROGRAMMER ?= arduino
|
|
# On most linuxes this will be /dev/ttyACM0 or /dev/ttyACM1
|
|
UPLOAD_PORT ?= /dev/ttyUSB0
|
|
|
|
# Directory used to build files in, contains all the build files, from object
|
|
# files to the final hex file on linux it is best to put an absolute path
|
|
# like /home/username/tmp .
|
|
BUILD_DIR ?= applet
|
|
|
|
# This defines whether Liquid_TWI2 support will be built
|
|
LIQUID_TWI2 ?= 0
|
|
|
|
# This defines if Wire is needed
|
|
WIRE ?= 0
|
|
|
|
# This defines if Tone is needed (i.e SPEAKER is defined in Configuration.h)
|
|
# Disabling this (and SPEAKER) saves approximately 350 bytes of memory.
|
|
TONE ?= 1
|
|
|
|
# This defines if U8GLIB is needed (may require RELOC_WORKAROUND)
|
|
U8GLIB ?= 0
|
|
|
|
# This defines whether to include the Trinamic TMCStepper library
|
|
TMC ?= 0
|
|
|
|
# This defines whether to include the AdaFruit NeoPixel library
|
|
NEOPIXEL ?= 0
|
|
|
|
############
|
|
# Try to automatically determine whether RELOC_WORKAROUND is needed based
|
|
# on GCC versions:
|
|
# https://www.avrfreaks.net/comment/1789106#comment-1789106
|
|
|
|
CC_MAJ:=$(shell $(CC) -dM -E - < /dev/null | grep __GNUC__ | cut -f3 -d\ )
|
|
CC_MIN:=$(shell $(CC) -dM -E - < /dev/null | grep __GNUC_MINOR__ | cut -f3 -d\ )
|
|
CC_PATCHLEVEL:=$(shell $(CC) -dM -E - < /dev/null | grep __GNUC_PATCHLEVEL__ | cut -f3 -d\ )
|
|
CC_VER:=$(shell echo $$(( $(CC_MAJ) * 10000 + $(CC_MIN) * 100 + $(CC_PATCHLEVEL) )))
|
|
ifeq ($(shell test $(CC_VER) -lt 40901 && echo 1),1)
|
|
@echo This version of GCC is likely broken. Enabling relocation workaround.
|
|
RELOC_WORKAROUND = 1
|
|
endif
|
|
|
|
############################################################################
|
|
# Below here nothing should be changed...
|
|
|
|
# Here the Arduino variant is selected by the board type
|
|
# HARDWARE_VARIANT = "arduino", "Sanguino", "Gen7", ...
|
|
# MCU = "atmega1280", "Mega2560", "atmega2560", "atmega644p", ...
|
|
|
|
ifeq ($(HARDWARE_MOTHERBOARD),0)
|
|
|
|
# No motherboard selected
|
|
|
|
#
|
|
# RAMPS 1.3 / 1.4 - ATmega1280, ATmega2560
|
|
#
|
|
|
|
# MEGA/RAMPS up to 1.2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1000)
|
|
|
|
# RAMPS 1.3 (Power outputs: Hotend, Fan, Bed)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1010)
|
|
# RAMPS 1.3 (Power outputs: Hotend0, Hotend1, Bed)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1011)
|
|
# RAMPS 1.3 (Power outputs: Hotend, Fan0, Fan1)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1012)
|
|
# RAMPS 1.3 (Power outputs: Hotend0, Hotend1, Fan)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1013)
|
|
# RAMPS 1.3 (Power outputs: Spindle, Controller Fan)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1014)
|
|
|
|
# RAMPS 1.4 (Power outputs: Hotend, Fan, Bed)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1020)
|
|
# RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Bed)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1021)
|
|
# RAMPS 1.4 (Power outputs: Hotend, Fan0, Fan1)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1022)
|
|
# RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Fan)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1023)
|
|
# RAMPS 1.4 (Power outputs: Spindle, Controller Fan)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1024)
|
|
|
|
# RAMPS Plus 3DYMY (Power outputs: Hotend, Fan, Bed)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1030)
|
|
# RAMPS Plus 3DYMY (Power outputs: Hotend0, Hotend1, Bed)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1031)
|
|
# RAMPS Plus 3DYMY (Power outputs: Hotend, Fan0, Fan1)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1032)
|
|
# RAMPS Plus 3DYMY (Power outputs: Hotend0, Hotend1, Fan)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1033)
|
|
# RAMPS Plus 3DYMY (Power outputs: Spindle, Controller Fan)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1034)
|
|
|
|
#
|
|
# RAMPS Derivatives - ATmega1280, ATmega2560
|
|
#
|
|
|
|
# 3Drag Controller
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1100)
|
|
# Velleman K8200 Controller (derived from 3Drag Controller)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1101)
|
|
# Velleman K8400 Controller (derived from 3Drag Controller)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1102)
|
|
# Velleman K8600 Controller (Vertex Nano)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1103)
|
|
# Velleman K8800 Controller (Vertex Delta)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1104)
|
|
# 2PrintBeta BAM&DICE with STK drivers
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1105)
|
|
# 2PrintBeta BAM&DICE Due with STK drivers
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1106)
|
|
# MKS BASE v1.0
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1107)
|
|
# MKS BASE v1.4 with Allegro A4982 stepper drivers
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1108)
|
|
# MKS BASE v1.5 with Allegro A4982 stepper drivers
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1109)
|
|
# MKS BASE v1.6 with Allegro A4982 stepper drivers
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1110)
|
|
# MKS BASE 1.0 with Heroic HR4982 stepper drivers
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1111)
|
|
# MKS GEN v1.3 or 1.4
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1112)
|
|
# MKS GEN L
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1113)
|
|
# BigTreeTech or BIQU KFB2.0
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1114)
|
|
# zrib V2.0 (Chinese RAMPS replica)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1115)
|
|
# zrib V5.2 (Chinese RAMPS replica)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1116)
|
|
# Felix 2.0+ Electronics Board (RAMPS like)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1117)
|
|
# Invent-A-Part RigidBoard
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1118)
|
|
# Invent-A-Part RigidBoard V2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1119)
|
|
# Sainsmart 2-in-1 board
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1120)
|
|
# Ultimaker
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1121)
|
|
# Ultimaker (Older electronics. Pre 1.5.4. This is rare)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1122)
|
|
MCU ?= atmega1280
|
|
PROG_MCU ?= m1280
|
|
# Azteeg X3
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1123)
|
|
# Azteeg X3 Pro
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1124)
|
|
# Ultimainboard 2.x (Uses TEMP_SENSOR 20)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1125)
|
|
# Rumba
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1126)
|
|
# Raise3D N series Rumba derivative
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1127)
|
|
# Rapide Lite 200 (v1, low-cost RUMBA clone with drv)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1128)
|
|
# Formbot T-Rex 2 Plus
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1129)
|
|
# Formbot T-Rex 3
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1130)
|
|
# Formbot Raptor
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1131)
|
|
# Formbot Raptor 2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1132)
|
|
# bq ZUM Mega 3D
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1133)
|
|
# MakeBoard Mini v2.1.2 by MicroMake
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1134)
|
|
# TriGorilla Anycubic version 1.3-based on RAMPS EFB
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1135)
|
|
# ... Ver 1.4
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1136)
|
|
# ... Rev 1.1 (new servo pin order)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1137)
|
|
# Creality: Ender-4, CR-8
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1138)
|
|
# Creality: CR10S, CR20, CR-X
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1139)
|
|
# Dagoma F5
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1140)
|
|
# FYSETC F6 1.3
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1141)
|
|
# FYSETC F6 1.4
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1142)
|
|
# Wanhao Duplicator i3 Plus
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1143)
|
|
# VORON Design
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1144)
|
|
# Tronxy TRONXY-V3-1.0
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1145)
|
|
# Z-Bolt X Series
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1146)
|
|
# TT OSCAR
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1147)
|
|
# Overlord/Overlord Pro
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1148)
|
|
# ADIMLab Gantry v1
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1149)
|
|
# ADIMLab Gantry v2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1150)
|
|
# BIQU Tango V1
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1151)
|
|
# MKS GEN L V2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1152)
|
|
# MKS GEN L V2.1
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1153)
|
|
# Copymaster 3D
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1154)
|
|
# Ortur 4
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1155)
|
|
# Tenlog D3 Hero IDEX printer
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1156)
|
|
# Ramps S 1.2 by Sakul.cz (Power outputs: Hotend0, Hotend1, Fan, Bed)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1157)
|
|
# Ramps S 1.2 by Sakul.cz (Power outputs: Hotend0, Hotend1, Hotend2, Bed)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1158)
|
|
# Ramps S 1.2 by Sakul.cz (Power outputs: Hotend, Fan0, Fan1, Bed)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1159)
|
|
# Longer LK1 PRO / Alfawise U20 Pro (PRO version)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1160)
|
|
# Longer LKx PRO / Alfawise Uxx Pro (PRO version)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1161)
|
|
|
|
|
|
# 3Drag Controller
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1100)
|
|
# Velleman K8200 Controller (derived from 3Drag Controller)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1101)
|
|
# Velleman K8400 Controller (derived from 3Drag Controller)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1102)
|
|
# Velleman K8600 Controller (Vertex Nano)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1103)
|
|
# Velleman K8800 Controller (Vertex Delta)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1104)
|
|
# 2PrintBeta BAM&DICE with STK drivers
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1105)
|
|
# 2PrintBeta BAM&DICE Due with STK drivers
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1106)
|
|
# MKS BASE v1.0
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1107)
|
|
# MKS v1.4 with A4982 stepper drivers
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1108)
|
|
# MKS v1.5 with Allegro A4982 stepper drivers
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1109)
|
|
# MKS v1.6 with Allegro A4982 stepper drivers
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1110)
|
|
# MKS BASE 1.0 with Heroic HR4982 stepper drivers
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1111)
|
|
# MKS GEN v1.3 or 1.4
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1112)
|
|
# MKS GEN L
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1113)
|
|
# zrib V2.0 control board (Chinese RAMPS replica)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1114)
|
|
# BigTreeTech or BIQU KFB2.0
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1115)
|
|
# Felix 2.0+ Electronics Board (RAMPS like)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1116)
|
|
# Invent-A-Part RigidBoard
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1117)
|
|
# Invent-A-Part RigidBoard V2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1118)
|
|
# Sainsmart 2-in-1 board
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1119)
|
|
# Ultimaker
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1120)
|
|
# Ultimaker (Older electronics. Pre 1.5.4. This is rare)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1121)
|
|
MCU ?= atmega1280
|
|
PROG_MCU ?= m1280
|
|
|
|
# Azteeg X3
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1122)
|
|
# Azteeg X3 Pro
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1123)
|
|
# Ultimainboard 2.x (Uses TEMP_SENSOR 20)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1124)
|
|
# Rumba
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1125)
|
|
# Raise3D Rumba
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1126)
|
|
# Rapide Lite RL200 Rumba
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1127)
|
|
# Formbot T-Rex 2 Plus
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1128)
|
|
# Formbot T-Rex 3
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1129)
|
|
# Formbot Raptor
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1130)
|
|
# Formbot Raptor 2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1131)
|
|
# bq ZUM Mega 3D
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1132)
|
|
# MakeBoard Mini v2.1.2 is a control board sold by MicroMake
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1133)
|
|
# TriGorilla Anycubic version 1.3 based on RAMPS EFB
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1134)
|
|
# TriGorilla Anycubic version 1.4 based on RAMPS EFB
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1135)
|
|
# TriGorilla Anycubic version 1.4 Rev 1.1
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1136)
|
|
# Creality: Ender-4, CR-8
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1137)
|
|
# Creality: CR10S, CR20, CR-X
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1138)
|
|
# Dagoma F5
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1139)
|
|
# FYSETC F6 1.3
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1140)
|
|
# FYSETC F6 1.5
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1141)
|
|
# Duplicator i3 Plus
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1142)
|
|
# VORON
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1143)
|
|
# TRONXY V3 1.0
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1144)
|
|
# Z-Bolt X Series
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1145)
|
|
# TT OSCAR
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1146)
|
|
# Overlord/Overlord Pro
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1147)
|
|
# ADIMLab Gantry v1
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1148)
|
|
# ADIMLab Gantry v2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1149)
|
|
# BIQU Tango V1
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1150)
|
|
# MKS GEN L V2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1151)
|
|
# MKS GEN L V2.1
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1152)
|
|
# Copymaster 3D
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1153)
|
|
# Ortur 4
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1154)
|
|
# Tenlog D3 Hero
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1155)
|
|
|
|
#
|
|
# RAMBo and derivatives
|
|
#
|
|
|
|
# Rambo
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1200)
|
|
# Mini-Rambo
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1201)
|
|
# Mini-Rambo 1.0a
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1202)
|
|
# Einsy Rambo
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1203)
|
|
# Einsy Retro
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1204)
|
|
# abee Scoovo X9H
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1205)
|
|
# Rambo ThinkerV2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1206)
|
|
|
|
#
|
|
# Other ATmega1280, ATmega2560
|
|
#
|
|
|
|
# Cartesio CN Controls V11
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1300)
|
|
# Cartesio CN Controls V12
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1301)
|
|
# Cartesio CN Controls V15
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1302)
|
|
# Cheaptronic v1.0
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1303)
|
|
# Cheaptronic v2.0
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1304)
|
|
# Makerbot Mightyboard Revision E
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1305)
|
|
# Megatronics
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1306)
|
|
# Megatronics v2.0
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1307)
|
|
# Megatronics v3.0
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1308)
|
|
# Megatronics v3.1
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1309)
|
|
# Megatronics v3.2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1310)
|
|
# Elefu Ra Board (v3)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1311)
|
|
# Leapfrog
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1312)
|
|
# Mega controller
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1313)
|
|
# Geeetech GT2560 Rev A
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1314)
|
|
# Geeetech GT2560 Rev A+ (with auto level probe)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1315)
|
|
# Geeetech GT2560 Rev B
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1316)
|
|
# Geeetech GT2560 Rev B for A10(M/T/D)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1317)
|
|
# Geeetech GT2560 Rev B for A10(M/T/D)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1318)
|
|
# Geeetech GT2560 Rev B for Mecreator2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1319)
|
|
# Geeetech GT2560 Rev B for A20(M/T/D)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1320)
|
|
# Einstart retrofit
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1321)
|
|
# Wanhao 0ne+ i3 Mini
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1322)
|
|
# Leapfrog Xeed 2015
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1323)
|
|
# PICA Shield (original version)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1324)
|
|
# PICA Shield (rev C or later)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1325)
|
|
# Intamsys 4.0 (Funmat HT)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1326)
|
|
# Malyan M180 Mainboard Version 2 (no display function, direct gcode only)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1327)
|
|
# Geeetech GT2560 Rev B for A20(M/T/D)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1328)
|
|
# Mega controller & Protoneer CNC Shield V3.00
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1329)
|
|
|
|
#
|
|
# ATmega1281, ATmega2561
|
|
#
|
|
|
|
# Minitronics v1.0/1.1
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1400)
|
|
MCU ?= atmega1281
|
|
PROG_MCU ?= m1281
|
|
# Silvergate v1.0
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1401)
|
|
MCU ?= atmega1281
|
|
PROG_MCU ?= m1281
|
|
|
|
#
|
|
# Sanguinololu and Derivatives - ATmega644P, ATmega1284P
|
|
#
|
|
|
|
# Sanguinololu < 1.2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1500)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega644p
|
|
PROG_MCU ?= m644p
|
|
# Sanguinololu 1.2 and above
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1501)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega644p
|
|
PROG_MCU ?= m644p
|
|
# Melzi
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1502)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega644p
|
|
PROG_MCU ?= m644p
|
|
# Melzi V2.0
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1503)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega1284p
|
|
PROG_MCU ?= m1284p
|
|
# Melzi with ATmega1284 (MaKr3d version)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1504)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega1284p
|
|
PROG_MCU ?= m1284p
|
|
# Melzi Creality3D board (for CR-10 etc)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1505)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega1284p
|
|
PROG_MCU ?= m1284p
|
|
# Melzi Malyan M150 board
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1506)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega1284p
|
|
PROG_MCU ?= m1284p
|
|
# Tronxy X5S
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1507)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega1284p
|
|
PROG_MCU ?= m1284p
|
|
# STB V1.1
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1508)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega1284p
|
|
PROG_MCU ?= m1284p
|
|
# Azteeg X1
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1509)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega1284p
|
|
PROG_MCU ?= m1284p
|
|
# Anet 1.0 (Melzi clone)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1510)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega1284p
|
|
PROG_MCU ?= m1284p
|
|
# ZoneStar ZMIB V2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1511)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega1284p
|
|
PROG_MCU ?= m1284p
|
|
|
|
#
|
|
# Other ATmega644P, ATmega644, ATmega1284P
|
|
#
|
|
|
|
# Gen3 Monolithic Electronics
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1600)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega644p
|
|
PROG_MCU ?= m644p
|
|
# Gen3+
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1601)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega644p
|
|
PROG_MCU ?= m644p
|
|
# Gen6
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1602)
|
|
HARDWARE_VARIANT ?= Gen6
|
|
MCU ?= atmega644p
|
|
PROG_MCU ?= m644p
|
|
# Gen6 deluxe
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1603)
|
|
HARDWARE_VARIANT ?= Gen6
|
|
MCU ?= atmega644p
|
|
PROG_MCU ?= m644p
|
|
# Gen7 custom (Alfons3 Version)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1604)
|
|
HARDWARE_VARIANT ?= Gen7
|
|
MCU ?= atmega644
|
|
PROG_MCU ?= m644
|
|
F_CPU ?= 20000000
|
|
# Gen7 v1.1, v1.2
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1605)
|
|
HARDWARE_VARIANT ?= Gen7
|
|
MCU ?= atmega644p
|
|
PROG_MCU ?= m644p
|
|
F_CPU ?= 20000000
|
|
# Gen7 v1.3
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1606)
|
|
HARDWARE_VARIANT ?= Gen7
|
|
MCU ?= atmega644p
|
|
PROG_MCU ?= m644p
|
|
F_CPU ?= 20000000
|
|
# Gen7 v1.4
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1607)
|
|
HARDWARE_VARIANT ?= Gen7
|
|
MCU ?= atmega1284p
|
|
PROG_MCU ?= m1284p
|
|
F_CPU ?= 20000000
|
|
# Alpha OMCA board
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1608)
|
|
HARDWARE_VARIANT ?= SanguinoA
|
|
MCU ?= atmega644
|
|
PROG_MCU ?= m644
|
|
# Final OMCA board
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1609)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega644p
|
|
PROG_MCU ?= m644p
|
|
# Sethi 3D_1
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1610)
|
|
HARDWARE_VARIANT ?= Sanguino
|
|
MCU ?= atmega644p
|
|
PROG_MCU ?= m644p
|
|
|
|
#
|
|
# Teensyduino - AT90USB1286, AT90USB1286P
|
|
#
|
|
|
|
# Teensylu
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1700)
|
|
HARDWARE_VARIANT ?= Teensy
|
|
MCU ?= at90usb1286
|
|
PROG_MCU ?= usb1286
|
|
# Printrboard (AT90USB1286)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1701)
|
|
HARDWARE_VARIANT ?= Teensy
|
|
MCU ?= at90usb1286
|
|
PROG_MCU ?= usb1286
|
|
# Printrboard Revision F (AT90USB1286)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1702)
|
|
HARDWARE_VARIANT ?= Teensy
|
|
MCU ?= at90usb1286
|
|
PROG_MCU ?= usb1286
|
|
# Brainwave (AT90USB646)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1703)
|
|
HARDWARE_VARIANT ?= Teensy
|
|
MCU ?= at90usb646
|
|
PROG_MCU ?= usb646
|
|
# Brainwave Pro (AT90USB1286)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1704)
|
|
HARDWARE_VARIANT ?= Teensy
|
|
MCU ?= at90usb1286
|
|
PROG_MCU ?= usb1286
|
|
# SAV Mk-I (AT90USB1286)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1705)
|
|
HARDWARE_VARIANT ?= Teensy
|
|
MCU ?= at90usb1286
|
|
PROG_MCU ?= usb1286
|
|
# Teensy++2.0 (AT90USB1286)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1706)
|
|
HARDWARE_VARIANT ?= Teensy
|
|
MCU ?= at90usb1286
|
|
PROG_MCU ?= usb1286
|
|
# 5DPrint D8 Driver Board
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),1707)
|
|
HARDWARE_VARIANT ?= Teensy
|
|
MCU ?= at90usb1286
|
|
PROG_MCU ?= usb1286
|
|
|
|
# UltiMachine Archim1 (with DRV8825 drivers)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),3023)
|
|
HARDWARE_VARIANT ?= archim
|
|
MCPU = cortex-m3
|
|
F_CPU = 84000000
|
|
IS_MCU = 0
|
|
# UltiMachine Archim2 (with TMC2130 drivers)
|
|
else ifeq ($(HARDWARE_MOTHERBOARD),3024)
|
|
HARDWARE_VARIANT ?= archim
|
|
MCPU = cortex-m3
|
|
F_CPU = 84000000
|
|
IS_MCU = 0
|
|
endif
|
|
|
|
# Be sure to regenerate speed_lookuptable.h with create_speed_lookuptable.py
|
|
# if you are setting this to something other than 16MHz
|
|
# Do not put the UL suffix, it's done later on.
|
|
# Set to 16Mhz if not yet set.
|
|
F_CPU ?= 16000000
|
|
|
|
# Set to microcontroller if IS_MCU not yet set
|
|
IS_MCU ?= 1
|
|
|
|
ifeq ($(IS_MCU),1)
|
|
# Set to arduino, ATmega2560 if not yet set.
|
|
HARDWARE_VARIANT ?= arduino
|
|
MCU ?= atmega2560
|
|
PROG_MCU ?= m2560
|
|
|
|
TOOL_PREFIX = avr
|
|
MCU_FLAGS = -mmcu=$(MCU)
|
|
SIZE_FLAGS = --mcu=$(MCU) -C
|
|
else
|
|
TOOL_PREFIX = arm-none-eabi
|
|
CPU_FLAGS = -mthumb -mcpu=$(MCPU)
|
|
SIZE_FLAGS = -A
|
|
endif
|
|
|
|
# Arduino contained the main source code for the Arduino
|
|
# Libraries, the "hardware variant" are for boards
|
|
# that derives from that, and their source are present in
|
|
# the main Marlin source directory
|
|
|
|
TARGET = $(notdir $(CURDIR))
|
|
|
|
# VPATH tells make to look into these directory for source files,
|
|
# there is no need to specify explicit pathnames as long as the
|
|
# directory is added here
|
|
|
|
# The Makefile for previous versions of Marlin used VPATH for all
|
|
# source files, but for Marlin 2.0, we use VPATH only for arduino
|
|
# library files.
|
|
|
|
VPATH = .
|
|
VPATH += $(BUILD_DIR)
|
|
VPATH += $(HARDWARE_SRC)
|
|
|
|
ifeq ($(HARDWARE_VARIANT), $(filter $(HARDWARE_VARIANT),arduino Teensy Sanguino))
|
|
# Old libraries (avr-core 1.6.21 < / Arduino < 1.6.8)
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/libraries/SPI
|
|
# New libraries (avr-core >= 1.6.21 / Arduino >= 1.6.8)
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/libraries/SPI/src
|
|
endif
|
|
|
|
ifeq ($(IS_MCU),1)
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/cores/arduino
|
|
|
|
# Old libraries (avr-core 1.6.21 < / Arduino < 1.6.8)
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/libraries/SPI
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/libraries/SoftwareSerial
|
|
# New libraries (avr-core >= 1.6.21 / Arduino >= 1.6.8)
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/libraries/SPI/src
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/libraries/SoftwareSerial/src
|
|
endif
|
|
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/LiquidCrystal/src
|
|
|
|
ifeq ($(LIQUID_TWI2), 1)
|
|
WIRE = 1
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/LiquidTWI2
|
|
endif
|
|
ifeq ($(WIRE), 1)
|
|
# Old libraries (avr-core 1.6.21 / Arduino < 1.6.8)
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/libraries/Wire
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/libraries/Wire/utility
|
|
# New libraries (avr-core >= 1.6.21 / Arduino >= 1.6.8)
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/libraries/Wire/src
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/libraries/Wire/src/utility
|
|
endif
|
|
ifeq ($(NEOPIXEL), 1)
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Adafruit_NeoPixel
|
|
endif
|
|
ifeq ($(U8GLIB), 1)
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/U8glib
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/U8glib/csrc
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/U8glib/cppsrc
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/U8glib/fntsrc
|
|
endif
|
|
ifeq ($(TMC), 1)
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/TMCStepper/src
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/TMCStepper/src/source
|
|
endif
|
|
|
|
ifeq ($(HARDWARE_VARIANT), arduino)
|
|
HARDWARE_SUB_VARIANT ?= mega
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/variants/$(HARDWARE_SUB_VARIANT)
|
|
else ifeq ($(HARDWARE_VARIANT), Sanguino)
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/marlin/avr/variants/sanguino
|
|
else ifeq ($(HARDWARE_VARIANT), archim)
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/packages/ultimachine/hardware/sam/1.6.9-b/system/libsam
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/packages/ultimachine/hardware/sam/1.6.9-b/system/CMSIS/CMSIS/Include/
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/packages/ultimachine/hardware/sam/1.6.9-b/system/CMSIS/Device/ATMEL/
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/packages/ultimachine/hardware/sam/1.6.9-b/cores/arduino
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/packages/ultimachine/hardware/sam/1.6.9-b/cores/arduino/avr
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/packages/ultimachine/hardware/sam/1.6.9-b/cores/arduino/USB
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/packages/ultimachine/hardware/sam/1.6.9-b/libraries/Wire/src
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/packages/ultimachine/hardware/sam/1.6.9-b/libraries/SPI/src
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/packages/ultimachine/hardware/sam/1.6.9-b/libraries/U8glib/src/clib
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/packages/ultimachine/hardware/sam/1.6.9-b/variants/archim
|
|
LDSCRIPT = $(ARDUINO_INSTALL_DIR)/packages/ultimachine/hardware/sam/1.6.9-b/variants/archim/linker_scripts/gcc/flash.ld
|
|
LDLIBS = $(ARDUINO_INSTALL_DIR)/packages/ultimachine/hardware/sam/1.6.9-b/variants/archim/libsam_sam3x8e_gcc_rel.a
|
|
else
|
|
HARDWARE_SUB_VARIANT ?= standard
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/$(HARDWARE_VARIANT)/variants/$(HARDWARE_SUB_VARIANT)
|
|
endif
|
|
|
|
LIB_SRC = wiring.c \
|
|
wiring_analog.c wiring_digital.c \
|
|
wiring_shift.c WInterrupts.c hooks.c
|
|
|
|
ifeq ($(HARDWARE_VARIANT), archim)
|
|
LIB_ASRC += wiring_pulse_asm.S
|
|
else
|
|
LIB_SRC += wiring_pulse.c
|
|
endif
|
|
|
|
ifeq ($(HARDWARE_VARIANT), Teensy)
|
|
LIB_SRC = wiring.c
|
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/teensy/cores/teensy
|
|
endif
|
|
|
|
LIB_CXXSRC = WMath.cpp WString.cpp Print.cpp SPI.cpp
|
|
|
|
ifeq ($(NEOPIXEL), 1)
|
|
LIB_CXXSRC += Adafruit_NeoPixel.cpp
|
|
endif
|
|
|
|
ifeq ($(LIQUID_TWI2), 0)
|
|
LIB_CXXSRC += LiquidCrystal.cpp
|
|
else
|
|
LIB_SRC += twi.c
|
|
LIB_CXXSRC += Wire.cpp LiquidTWI2.cpp
|
|
endif
|
|
|
|
ifeq ($(WIRE), 1)
|
|
LIB_SRC += twi.c
|
|
LIB_CXXSRC += Wire.cpp
|
|
endif
|
|
|
|
ifeq ($(TONE), 1)
|
|
LIB_CXXSRC += Tone.cpp
|
|
endif
|
|
|
|
ifeq ($(U8GLIB), 1)
|
|
LIB_CXXSRC += U8glib.cpp
|
|
LIB_SRC += u8g_ll_api.c u8g_bitmap.c u8g_clip.c u8g_com_null.c u8g_delay.c \
|
|
u8g_page.c u8g_pb.c u8g_pb16h1.c u8g_rect.c u8g_state.c u8g_font.c \
|
|
u8g_font_6x13.c u8g_font_04b_03.c u8g_font_5x8.c
|
|
endif
|
|
|
|
ifeq ($(TMC), 1)
|
|
LIB_CXXSRC += TMCStepper.cpp COOLCONF.cpp DRV_STATUS.cpp IHOLD_IRUN.cpp \
|
|
CHOPCONF.cpp GCONF.cpp PWMCONF.cpp DRV_CONF.cpp DRVCONF.cpp DRVCTRL.cpp \
|
|
DRVSTATUS.cpp ENCMODE.cpp RAMP_STAT.cpp SGCSCONF.cpp SHORT_CONF.cpp \
|
|
SMARTEN.cpp SW_MODE.cpp SW_SPI.cpp TMC2130Stepper.cpp TMC2208Stepper.cpp \
|
|
TMC2209Stepper.cpp TMC2660Stepper.cpp TMC5130Stepper.cpp TMC5160Stepper.cpp
|
|
endif
|
|
|
|
ifeq ($(RELOC_WORKAROUND), 1)
|
|
LD_PREFIX=-nodefaultlibs
|
|
LD_SUFFIX=-lm -lgcc -lc -lgcc
|
|
endif
|
|
|
|
#Check for Arduino 1.0.0 or higher and use the correct source files for that version
|
|
ifeq ($(shell [ $(ARDUINO_VERSION) -ge 100 ] && echo true), true)
|
|
LIB_CXXSRC += main.cpp
|
|
else
|
|
LIB_SRC += pins_arduino.c main.c
|
|
endif
|
|
|
|
FORMAT = ihex
|
|
|
|
# Name of this Makefile (used for "make depend").
|
|
MAKEFILE = Makefile
|
|
|
|
# Debugging format.
|
|
# Native formats for AVR-GCC's -g are stabs [default], or dwarf-2.
|
|
# AVR (extended) COFF requires stabs, plus an avr-objcopy run.
|
|
DEBUG = stabs
|
|
|
|
OPT = s
|
|
|
|
DEFINES ?=
|
|
|
|
# Program settings
|
|
CC = $(AVR_TOOLS_PATH)$(TOOL_PREFIX)-gcc
|
|
CXX = $(AVR_TOOLS_PATH)$(TOOL_PREFIX)-g++
|
|
OBJCOPY = $(AVR_TOOLS_PATH)$(TOOL_PREFIX)-objcopy
|
|
OBJDUMP = $(AVR_TOOLS_PATH)$(TOOL_PREFIX)-objdump
|
|
AR = $(AVR_TOOLS_PATH)$(TOOL_PREFIX)-ar
|
|
SIZE = $(AVR_TOOLS_PATH)$(TOOL_PREFIX)-size
|
|
NM = $(AVR_TOOLS_PATH)$(TOOL_PREFIX)-nm
|
|
AVRDUDE = avrdude
|
|
REMOVE = rm -f
|
|
MV = mv -f
|
|
|
|
# Place -D or -U options here
|
|
CDEFS = -DF_CPU=$(F_CPU)UL ${addprefix -D , $(DEFINES)} -DARDUINO=$(ARDUINO_VERSION)
|
|
CXXDEFS = $(CDEFS)
|
|
|
|
ifeq ($(HARDWARE_VARIANT), Teensy)
|
|
CDEFS += -DUSB_SERIAL
|
|
LIB_SRC += usb.c pins_teensy.c
|
|
LIB_CXXSRC += usb_api.cpp
|
|
|
|
else ifeq ($(HARDWARE_VARIANT), archim)
|
|
CDEFS += -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__
|
|
CDEFS += -DUSB_VID=0x27B1 -DUSB_PID=0x0001 -DUSBCON
|
|
CDEFS += '-DUSB_MANUFACTURER="UltiMachine"' '-DUSB_PRODUCT_STRING="Archim"'
|
|
|
|
LIB_CXXSRC += variant.cpp IPAddress.cpp Reset.cpp RingBuffer.cpp Stream.cpp \
|
|
UARTClass.cpp USARTClass.cpp abi.cpp new.cpp watchdog.cpp CDC.cpp \
|
|
PluggableUSB.cpp USBCore.cpp
|
|
|
|
LIB_SRC += cortex_handlers.c iar_calls_sam3.c syscalls_sam3.c dtostrf.c itoa.c
|
|
|
|
ifeq ($(U8GLIB), 1)
|
|
LIB_SRC += u8g_com_api.c u8g_pb32h1.c
|
|
endif
|
|
endif
|
|
|
|
# Add all the source directories as include directories too
|
|
CINCS = ${addprefix -I ,${VPATH}}
|
|
CXXINCS = ${addprefix -I ,${VPATH}}
|
|
|
|
# Silence warnings for library code (won't work for .h files, unfortunately)
|
|
LIBWARN = -w -Wno-packed-bitfield-compat
|
|
|
|
# Compiler flag to set the C/CPP Standard level.
|
|
CSTANDARD = -std=gnu99
|
|
CXXSTANDARD = -std=gnu++11
|
|
CDEBUG = -g$(DEBUG)
|
|
CWARN = -Wall -Wstrict-prototypes -Wno-packed-bitfield-compat -Wno-pragmas -Wunused-parameter
|
|
CXXWARN = -Wall -Wno-packed-bitfield-compat -Wno-pragmas -Wunused-parameter
|
|
CTUNING = -fsigned-char -funsigned-bitfields -fno-exceptions \
|
|
-fshort-enums -ffunction-sections -fdata-sections
|
|
ifneq ($(HARDWARE_MOTHERBOARD),)
|
|
CTUNING += -DMOTHERBOARD=${HARDWARE_MOTHERBOARD}
|
|
endif
|
|
|
|
#CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
|
|
CXXEXTRA = -fno-use-cxa-atexit -fno-threadsafe-statics -fno-rtti
|
|
CFLAGS := $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CEXTRA) $(CTUNING) $(CSTANDARD)
|
|
CXXFLAGS := $(CDEFS) $(CINCS) -O$(OPT) $(CXXEXTRA) $(CTUNING) $(CXXSTANDARD)
|
|
ASFLAGS := $(CDEFS)
|
|
#ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs
|
|
|
|
ifeq ($(HARDWARE_VARIANT), archim)
|
|
LD_PREFIX = -Wl,--gc-sections,-Map,Marlin.ino.map,--cref,--check-sections,--entry=Reset_Handler,--unresolved-symbols=report-all,--warn-common,--warn-section-align
|
|
LD_SUFFIX = $(LDLIBS)
|
|
|
|
LDFLAGS = -lm -T$(LDSCRIPT) -u _sbrk -u link -u _close -u _fstat -u _isatty
|
|
LDFLAGS += -u _lseek -u _read -u _write -u _exit -u kill -u _getpid
|
|
else
|
|
LD_PREFIX = -Wl,--gc-sections,--relax
|
|
LDFLAGS = -lm
|
|
CTUNING += -flto
|
|
endif
|
|
|
|
# Programming support using avrdude. Settings and variables.
|
|
AVRDUDE_PORT = $(UPLOAD_PORT)
|
|
AVRDUDE_WRITE_FLASH = -Uflash:w:$(BUILD_DIR)/$(TARGET).hex:i
|
|
ifeq ($(shell uname -s), Linux)
|
|
AVRDUDE_CONF = /etc/avrdude/avrdude.conf
|
|
else
|
|
AVRDUDE_CONF = $(ARDUINO_INSTALL_DIR)/hardware/tools/avr/etc/avrdude.conf
|
|
endif
|
|
AVRDUDE_FLAGS = -D -C$(AVRDUDE_CONF) \
|
|
-p$(PROG_MCU) -P$(AVRDUDE_PORT) -c$(AVRDUDE_PROGRAMMER) \
|
|
-b$(UPLOAD_RATE)
|
|
|
|
# Since Marlin 2.0, the source files may be distributed into several
|
|
# different directories, so it is necessary to find them recursively
|
|
|
|
SRC = $(shell find src -name '*.c' -type f)
|
|
CXXSRC = $(shell find src -name '*.cpp' -type f)
|
|
|
|
# Define all object files.
|
|
OBJ = ${patsubst %.c, $(BUILD_DIR)/arduino/%.o, ${LIB_SRC}}
|
|
OBJ += ${patsubst %.cpp, $(BUILD_DIR)/arduino/%.o, ${LIB_CXXSRC}}
|
|
OBJ += ${patsubst %.S, $(BUILD_DIR)/arduino/%.o, ${LIB_ASRC}}
|
|
OBJ += ${patsubst %.c, $(BUILD_DIR)/%.o, ${SRC}}
|
|
OBJ += ${patsubst %.cpp, $(BUILD_DIR)/%.o, ${CXXSRC}}
|
|
|
|
# Define all listing files.
|
|
LST = $(LIB_ASRC:.S=.lst) $(LIB_CXXSRC:.cpp=.lst) $(LIB_SRC:.c=.lst)
|
|
|
|
# Combine all necessary flags and optional flags.
|
|
# Add target processor to flags.
|
|
ALL_CFLAGS = $(MCU_FLAGS) $(CPU_FLAGS) $(CFLAGS) -I.
|
|
ALL_CXXFLAGS = $(MCU_FLAGS) $(CPU_FLAGS) $(CXXFLAGS)
|
|
ALL_ASFLAGS = $(MCU_FLAGS) $(CPU_FLAGS) $(ASFLAGS) -x assembler-with-cpp
|
|
|
|
# set V=1 (eg, "make V=1") to print the full commands etc.
|
|
ifneq ($V,1)
|
|
Pecho=@echo
|
|
P=@
|
|
else
|
|
Pecho=@:
|
|
P=
|
|
endif
|
|
|
|
# Create required build hierarchy if it does not exist
|
|
|
|
$(shell mkdir -p $(dir $(OBJ)))
|
|
|
|
# Default target.
|
|
all: sizeafter
|
|
|
|
build: elf hex bin
|
|
|
|
elf: $(BUILD_DIR)/$(TARGET).elf
|
|
bin: $(BUILD_DIR)/$(TARGET).bin
|
|
hex: $(BUILD_DIR)/$(TARGET).hex
|
|
eep: $(BUILD_DIR)/$(TARGET).eep
|
|
lss: $(BUILD_DIR)/$(TARGET).lss
|
|
sym: $(BUILD_DIR)/$(TARGET).sym
|
|
|
|
# Program the device.
|
|
# Do not try to reset an Arduino if it's not one
|
|
upload: $(BUILD_DIR)/$(TARGET).hex
|
|
ifeq (${AVRDUDE_PROGRAMMER}, arduino)
|
|
stty hup < $(UPLOAD_PORT); true
|
|
endif
|
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH)
|
|
ifeq (${AVRDUDE_PROGRAMMER}, arduino)
|
|
stty -hup < $(UPLOAD_PORT); true
|
|
endif
|
|
|
|
# Display size of file.
|
|
HEXSIZE = $(SIZE) --target=$(FORMAT) $(BUILD_DIR)/$(TARGET).hex
|
|
ELFSIZE = $(SIZE) $(SIZE_FLAGS) $(BUILD_DIR)/$(TARGET).elf; \
|
|
$(SIZE) $(BUILD_DIR)/$(TARGET).elf
|
|
sizebefore:
|
|
$P if [ -f $(BUILD_DIR)/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(HEXSIZE); echo; fi
|
|
|
|
sizeafter: build
|
|
$P if [ -f $(BUILD_DIR)/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
|
|
|
|
|
|
# Convert ELF to COFF for use in debugging / simulating in AVR Studio or VMLAB.
|
|
COFFCONVERT=$(OBJCOPY) --debugging \
|
|
--change-section-address .data-0x800000 \
|
|
--change-section-address .bss-0x800000 \
|
|
--change-section-address .noinit-0x800000 \
|
|
--change-section-address .eeprom-0x810000
|
|
|
|
|
|
coff: $(BUILD_DIR)/$(TARGET).elf
|
|
$(COFFCONVERT) -O coff-avr $(BUILD_DIR)/$(TARGET).elf $(TARGET).cof
|
|
|
|
|
|
extcoff: $(TARGET).elf
|
|
$(COFFCONVERT) -O coff-ext-avr $(BUILD_DIR)/$(TARGET).elf $(TARGET).cof
|
|
|
|
|
|
.SUFFIXES: .elf .hex .eep .lss .sym .bin
|
|
.PRECIOUS: .o
|
|
|
|
.elf.hex:
|
|
$(Pecho) " COPY $@"
|
|
$P $(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@
|
|
|
|
.elf.bin:
|
|
$(Pecho) " COPY $@"
|
|
$P $(OBJCOPY) -O binary -R .eeprom $< $@
|
|
|
|
.elf.eep:
|
|
-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
|
|
--change-section-lma .eeprom=0 -O $(FORMAT) $< $@
|
|
|
|
# Create extended listing file from ELF output file.
|
|
.elf.lss:
|
|
$(OBJDUMP) -h -S $< > $@
|
|
|
|
# Create a symbol table from ELF output file.
|
|
.elf.sym:
|
|
$(NM) -n $< > $@
|
|
|
|
# Link: create ELF output file from library.
|
|
|
|
$(BUILD_DIR)/$(TARGET).elf: $(OBJ) Configuration.h
|
|
$(Pecho) " CXX $@"
|
|
$P $(CXX) $(LD_PREFIX) $(ALL_CXXFLAGS) -o $@ -L. $(OBJ) $(LDFLAGS) $(LD_SUFFIX)
|
|
|
|
# Object files that were found in "src" will be stored in $(BUILD_DIR)
|
|
# in directories that mirror the structure of "src"
|
|
|
|
$(BUILD_DIR)/%.o: %.c Configuration.h Configuration_adv.h $(MAKEFILE)
|
|
$(Pecho) " CC $<"
|
|
$P $(CC) -MMD -c $(ALL_CFLAGS) $(CWARN) $< -o $@
|
|
|
|
$(BUILD_DIR)/%.o: %.cpp Configuration.h Configuration_adv.h $(MAKEFILE)
|
|
$(Pecho) " CXX $<"
|
|
$P $(CXX) -MMD -c $(ALL_CXXFLAGS) $(CXXWARN) $< -o $@
|
|
|
|
# Object files for Arduino libs will be created in $(BUILD_DIR)/arduino
|
|
|
|
$(BUILD_DIR)/arduino/%.o: %.c Configuration.h Configuration_adv.h $(MAKEFILE)
|
|
$(Pecho) " CC $<"
|
|
$P $(CC) -MMD -c $(ALL_CFLAGS) $(LIBWARN) $< -o $@
|
|
|
|
$(BUILD_DIR)/arduino/%.o: %.cpp Configuration.h Configuration_adv.h $(MAKEFILE)
|
|
$(Pecho) " CXX $<"
|
|
$P $(CXX) -MMD -c $(ALL_CXXFLAGS) $(LIBWARN) $< -o $@
|
|
|
|
$(BUILD_DIR)/arduino/%.o: %.S $(MAKEFILE)
|
|
$(Pecho) " CXX $<"
|
|
$P $(CXX) -MMD -c $(ALL_ASFLAGS) $< -o $@
|
|
|
|
# Target: clean project.
|
|
clean:
|
|
$(Pecho) " RMDIR $(BUILD_DIR)/"
|
|
$P rm -rf $(BUILD_DIR)
|
|
|
|
|
|
.PHONY: all build elf hex eep lss sym program coff extcoff clean depend sizebefore sizeafter
|
|
|
|
# Automatically include the dependency files created by gcc
|
|
-include ${patsubst %.o, %.d, ${OBJ}}
|