Compare commits

...

5131 Commits

Author SHA1 Message Date
InsanityAutomation 2065f1e267 Initial Commit 2021-06-05 18:37:34 -04:00
InsanityAutomation 5a4b2ba5c5 Merge branch 'bugfix-2.0.x' of https://github.com/MarlinFirmware/Marlin into bugfix-2.0.x 2021-06-05 16:51:34 -04:00
DerAndere 7726af9c53 🏗️ Support for up to 6 linear axes (#19112)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-06-05 02:18:47 -05:00
Marcio T 733d5fd57d 📺 Fix and enhance FTDI EVE Touch UI (#22047) 2021-06-05 00:35:05 -05:00
Keith Bennett d18c834029 BigTreeTech Octopus V1.1 (#22042) 2021-06-04 23:56:18 -05:00
ellensp da8576f642 🐛 Fix STM3R / BEAST envs (#22028) 2021-06-04 23:51:17 -05:00
Victor Oliveira c73d47327b 📦️ STM32F103RE_btt(_USB) with HAL/STM32 (#22040) 2021-06-04 23:49:00 -05:00
Scott Lahteine 53a82511ff Update G34 for 4x Z steppers (#22039) 2021-06-04 23:44:16 -05:00
hannesweisbach 9d3bc551bc 🐛 Fix Probe Temp Calibration compile (#22032) 2021-06-04 23:38:43 -05:00
Taylor Talkington c2c771a1cc 🐛 Fix M140 print job timer autostart (#22046) 2021-06-04 23:01:06 -05:00
thinkyhead a6125b859d [cron] Bump distribution date (2021-06-05) 2021-06-05 01:38:30 +00:00
Giuliano Zaro eea9b6d8ae 🐛 Fix MMU compile with >5 EXTRUDERS (#22036) 2021-06-04 20:02:37 -05:00
ldursw 6131d2c5a6 🔨 MKS Robin E3 for HAL/STM32 (#21927) 2021-06-03 22:38:10 -05:00
thinkyhead 29ab4f5982 [cron] Bump distribution date (2021-06-04) 2021-06-04 01:56:49 +00:00
Keith Bennett 30c9b9bbba 🔨 Consolidate BTT linker scripts followup (#22038) 2021-06-03 19:51:22 -05:00
Victor Oliveira 0398a0b780 👽️ Fix usb-host-msc-cdc-msc issue (#22025) 2021-06-03 16:52:25 -05:00
Scott Lahteine 9d1d35f1ed ✏️ Remove whitespace 2021-06-03 03:23:10 -05:00
ellensp 4e9ccffc10 🐛 Fix Creality v4 servo timer (#22021)
Followup to #21999
2021-06-03 03:10:04 -05:00
Scott Lahteine 62dc3e7a22 🔨 Consolidate BTT linker scripts
Originally from #22022
2021-06-03 02:55:30 -05:00
ellensp 67c1075e47 🐛 Fix env:STM32F103RE maple/unified split-up (#22019)
Followup to #21999
2021-06-03 02:40:16 -05:00
thinkyhead a4e955d606 [cron] Bump distribution date (2021-06-03) 2021-06-03 02:28:46 +00:00
Scott Lahteine 25053572ec 📌 Use U8glib-HAL@~0.4.5 2021-06-02 19:38:34 -05:00
Scott Lahteine 8f59d44e4d 📝 Update G61 comment 2021-06-02 17:09:47 -05:00
Scott Lahteine b99411b62b 🎨 Reorganize BTT_E3_RRF_IDEX_BOARD 2021-06-02 15:34:31 -05:00
Scott Lahteine dc202b3cb3 🎨 Clean up stops, sdss pins 2021-06-02 15:34:03 -05:00
ellensp 08155b4875 🔨 Creality v4 with STM32 HAL (#21999)
- New STM32 env for Creality V4 boards.
- Separate Libmaple targets into their own `ini` file.
- Temporarily remove unusable targets from `pins.h`.

Co-authored-by: ellensp <ellensp@hotmsil.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-06-02 01:44:55 -05:00
Scott Lahteine c207111cc6 🔨 Move FLY_MINI env to stm32f1.ini 2021-06-01 23:24:48 -05:00
hannesweisbach 5ceccc95a8 TMC Driver distinct baudrates (#22008) 2021-06-01 23:20:47 -05:00
Scott Lahteine 62a595750d 🔧 Treat TPARA like SCARA in mfconfig 2021-06-01 22:47:06 -05:00
thinkyhead 0987c3a3a3 [cron] Bump distribution date (2021-06-02) 2021-06-02 02:53:34 +00:00
Roman Moravčík d099cb3b5a 🌐 Update Slovak language (#22000) 2021-06-01 21:10:15 -05:00
Scott Lahteine 82ea06e6a4 ♻️ Patches for Zero Extruders (with TMC) 2021-06-01 20:59:47 -05:00
thinkyhead 74be64a1ec [cron] Bump distribution date (2021-06-01) 2021-06-01 02:51:06 +00:00
Krzysztof Błażewicz da76381605 ⚗️ 32-bit float constants (STM32F1) (#21996) 2021-05-31 01:44:38 -05:00
thinkyhead bc6e90f4ab [cron] Bump distribution date (2021-05-31) 2021-05-31 02:26:30 +00:00
thinkyhead 52ae3e6967 [cron] Bump distribution date (2021-05-30) 2021-05-30 02:14:17 +00:00
Timo dceaeeeaf9 Malyan M180 (#21992) 2021-05-29 16:00:39 -05:00
Krzysztof Błażewicz dbed009090 🌐 Update Polish language (#21993) 2021-05-29 13:48:56 -05:00
thinkyhead 25a8bbcbf3 [cron] Bump distribution date (2021-05-29) 2021-05-29 02:01:09 +00:00
thinkyhead b80179d14a [cron] Bump distribution date (2021-05-28) 2021-05-28 01:45:42 +00:00
ellensp 605b539ecd 🥅 Add MESH_EDIT_MENU sanity check (#21922) 2021-05-27 05:13:43 -05:00
Andy Barratt 5c6a2f4d0d 🚸 cap:HOST_ACTION_COMMANDS (#21987) 2021-05-26 21:07:13 -05:00
thinkyhead 6a32d87e58 [cron] Bump distribution date (2021-05-27) 2021-05-27 01:36:38 +00:00
thinkyhead 214fe90a3b [cron] Bump distribution date (2021-05-26) 2021-05-26 01:24:58 +00:00
Allen Bauer e400ef346a 🐛 Fix BTT002 variant MMU2 serial pins 🧩 (#21980) 2021-05-25 19:08:10 -05:00
ellensp e60c38b622 ♻️ LEDs refactor and extend (#21962)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-05-25 18:38:23 -05:00
InsanityAutomation a80c371340 Merge branch 'bugfix-2.0.x' of https://github.com/MarlinFirmware/Marlin into bugfix-2.0.x 2021-05-25 09:22:13 -04:00
thinkyhead d051495dec [cron] Bump distribution date (2021-05-25) 2021-05-25 01:09:52 +00:00
LawnMo 2dd25938cc 🩹 Fix multi_volume + SDIO onboard compile (#21975) 2021-05-24 17:53:48 -05:00
Scott Lahteine dd4990252e ♻️ Refactor Linear / Logical / Distinct Axes (#21953)
* More patches supporting EXTRUDERS 0
* Extend types in prep for more axes
2021-05-24 16:38:57 -05:00
LawnMo 0d7075b90c 🩹 Improved SKR2 12864 LCD Delays (#21956) 2021-05-24 02:21:21 -05:00
BigTreeTech 76e80aa400 🐛 Fix Octopus HS USB (#21961) 2021-05-24 01:57:45 -05:00
gjdodd 9398c43112 🐛 Fix flowmeter calculation (#21959) 2021-05-24 01:54:10 -05:00
Scott Lahteine 84fd0eff17 🎨 Macros for optional arguments (#21969) 2021-05-23 21:33:22 -05:00
ellensp 731370051d ️ PIO filters for M117, M300 and M414 (#21972) 2021-05-23 20:29:19 -05:00
thinkyhead 5fde86406f [cron] Bump distribution date (2021-05-24) 2021-05-24 01:12:27 +00:00
InsanityAutomation 6d39a6fc55 Merge branch 'bugfix-2.0.x' of https://github.com/MarlinFirmware/Marlin into bugfix-2.0.x 2021-05-23 15:06:33 -04:00
Scott Lahteine d71b35c24f 🎨 Apply shorthand and cleanups 2021-05-23 03:04:36 -05:00
Scott Lahteine ff0318c5bd 🎨 pause => pause_heaters 2021-05-23 03:04:36 -05:00
Scott Lahteine 92dea8e6cc ♻️ Refactor, comment endstop/probe enums 2021-05-23 03:04:31 -05:00
thinkyhead e1921f808c [cron] Bump distribution date (2021-05-23) 2021-05-23 01:15:23 +00:00
Scott Lahteine d8c4be375c 🎨 Null heating message method 2021-05-22 17:56:31 -05:00
Scott Lahteine aee971bcaf 🎨 Combine M104/M109 and M140/M190 code 2021-05-22 17:47:23 -05:00
Scott Lahteine 6689e5ed75 🐛 Fix Selena Compact probe pin 2021-05-22 17:47:23 -05:00
Danol 43b736906a 🐛 Fix wrong Z_ENDSTOP flag bit (#21963)
Bug introduced in #18424
2021-05-22 17:47:23 -05:00
Alvaro Segura Del Barco 7c2834c33c 🐛 Fix Teensy PINS_DEBUG compile (#21958)
Followup to 84a11cfedc
2021-05-22 15:52:41 -05:00
Scott Lahteine 464a9f0ab6 📝 Update ExtUI example 2021-05-21 23:04:11 -05:00
Scott Lahteine 8af4d70922 🎨 Shorten lcd relative paths 2021-05-21 23:04:01 -05:00
Scott Lahteine 4ea4fa78aa 📝 Document diveToFile, printListing 2021-05-21 22:45:54 -05:00
thinkyhead 7985f7f116 [cron] Bump distribution date (2021-05-22) 2021-05-22 01:06:28 +00:00
Scott Lahteine 2de54dab84 🎨 Move HAS_EXTRUDERS 2021-05-21 08:40:30 -05:00
Scott Lahteine ad30909a2d 🎨 Update a condition 2021-05-21 08:37:46 -05:00
Scott Lahteine f4951ed56b 🎨 Rename all/no axis enums 2021-05-21 08:36:54 -05:00
Scott Lahteine 2db640ea80 Add a test for SAVED_POSITIONS 2021-05-21 00:31:56 -05:00
Scott Lahteine 8f0f6c1ac1 🐛 Fix compile with PREVENT_COLD_EXTRUSION off 2021-05-21 00:30:57 -05:00
thinkyhead 67f08ef07f [cron] Bump distribution date (2021-05-21) 2021-05-21 01:07:03 +00:00
Scott Lahteine 000388b1d9 🎨 MULTI_MANUAL => MULTI_E_MANUAL 2021-05-20 17:12:18 -05:00
Pascal de Bruijn 781b34709b MEDIA_MENU_AT_TOP for MarlinUI (#21925) 2021-05-20 06:35:38 -05:00
Moonglow 7da4ed7340 🐛 Fix Toshiba FlashAir (SDCARD_COMMANDS_SPLIT) (#21944) 2021-05-20 06:09:10 -05:00
charlespick 29ad42e54e Independent baud rates (#21949)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-05-20 06:06:26 -05:00
Scott Lahteine e018f041ba 🎨 Move switch sensor strings 2021-05-20 00:59:58 -05:00
Scott Lahteine 49771c4a9e 🎨 Flags for homing directions 2021-05-20 00:59:58 -05:00
Scott Lahteine 0dae140080 🐛 Fix DELTA with SENSORLESS_PROBING 2021-05-20 00:59:58 -05:00
Scott Lahteine 458677c63a ♻️ Refactor axis homing/trusted state bits 2021-05-20 00:59:58 -05:00
Scott Lahteine 02f904dbf9 ♻️ Minimize endstop bits 2021-05-20 00:59:58 -05:00
Scott Lahteine 18b1ccda27 Fix tests for EXTRUDERS 0 2021-05-20 00:59:58 -05:00
Scott Lahteine 926a7f27c6 ♻️ Simplify TMC utilities for more axes 2021-05-20 00:59:58 -05:00
Scott Lahteine a6e5492b08 ♻️ Refactor axis counts and loops 2021-05-20 00:59:58 -05:00
Scott Lahteine abbe3f0dc7 🎨 Misc cleanup and fixes 2021-05-20 00:59:58 -05:00
Scott Lahteine 50355f4607 Fix 'G29 K' value 2021-05-19 22:02:28 -05:00
thinkyhead 419d67237c [cron] Bump distribution date (2021-05-20) 2021-05-20 01:03:10 +00:00
thinkyhead 90f46d1226 [cron] Bump distribution date (2021-05-19) 2021-05-19 01:05:23 +00:00
Scott Lahteine ad8c16177e Use defined strings 2021-05-17 21:17:42 -05:00
ellensp 1e189506ef Fix EEPROM_CHITCHAT (#21934)
Fix #21929
2021-05-17 21:16:47 -05:00
thinkyhead 4d7feea72e [cron] Bump distribution date (2021-05-18) 2021-05-18 01:09:42 +00:00
ellensp c3a65eef7a Fix envs using mks_encrypt.py (#21933)
Fix #21928
2021-05-17 18:22:33 -05:00
thinkyhead 9c61e6f1c0 [cron] Bump distribution date (2021-05-17) 2021-05-17 01:06:01 +00:00
ekef ebb75a529b Fix MKS Robin E3 BLTOUCH and Fan PWM timer conflicts (#21889) 2021-05-16 13:59:15 -05:00
InsanityAutomation 10e5d92dec Merge branch 'bugfix-2.0.x' of https://github.com/MarlinFirmware/Marlin into bugfix-2.0.x 2021-05-16 14:18:43 -04:00
thinkyhead 533ba2ac96 [cron] Bump distribution date (2021-05-16) 2021-05-16 01:12:19 +00:00
Scott Lahteine 05bb3bde7a Update Hex Version to 02000801 2021-05-15 15:21:02 -05:00
Luu Lac 7f774cab90 M154 Position Auto-Report (#18427)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-05-15 15:02:20 -05:00
Moonglow 376f0be5da Fix MKS UI missing font select condition (#21905) 2021-05-14 22:30:16 -05:00
ondrada 874c531f27 Fix G29_RETRY_AND_RECOVER dependency (#21907)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-05-14 22:29:17 -05:00
thinkyhead 3b4643d31a [cron] Bump distribution date (2021-05-15) 2021-05-15 01:05:33 +00:00
Victor Oliveira 2a5ab55c36 🚑️ Fix TFT for Robin Pro (#21900) 2021-05-14 00:22:43 -05:00
Keith Bennett e5b280c309 🚑️ BTT Octopus Step Timer (#21901) 2021-05-14 00:20:24 -05:00
Scott Lahteine a69e2923dd 🐛 Fix RR collision with MM (#21902) 2021-05-14 00:17:04 -05:00
Jamie d97c1f1c62 Instant Freeze/Resume Function (#17462)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-05-14 00:14:59 -05:00
thinkyhead 558b60858c [cron] Bump distribution date (2021-05-14) 2021-05-14 01:08:17 +00:00
Keith Bennett fe60a18923 Fix Octopus 12864 LCD Delays (#21883) 2021-05-13 15:25:39 -05:00
ellensp 90f1436764 Fix nextion compile error (#21884) 2021-05-13 15:19:12 -05:00
Alexander D. Kanevskiy 9336517258 Fix compilation failure in M1001 (#21897) 2021-05-13 15:10:48 -05:00
FilippoR e72fe0ad14 fix compilation for home hon top (#21894) 2021-05-13 10:56:49 -05:00
Scott Lahteine 69473daa3d 🔧 Improve SD_DETECT_STATE default (#21885) 2021-05-13 01:14:37 -05:00
thinkyhead 75f76cbf26 [cron] Bump distribution date (2021-05-13) 2021-05-13 01:06:32 +00:00
Scott Lahteine eb7f75461a Clean up hasty PR 2021-05-12 19:44:21 -05:00
Victor Oliveira c8f9a32610 Update Robin Pro TFT Pins (#21879) 2021-05-12 18:10:31 -05:00
Victor Oliveira b3804fb277 minor multi volume config typo (#21880) 2021-05-12 17:57:43 -05:00
Keith Bennett 175fac8fe8 Always Invert Octopus Onboard SD Detect Pin (#21882) 2021-05-12 17:48:24 -05:00
Scott Lahteine 75dadcc669 📝 Fix version reference 2021-05-12 03:27:56 -05:00
Keith Bennett 3734e8e02f BigTreeTech Octopus board (STM32F446ZET6) (#21826) 2021-05-12 03:26:19 -05:00
Elton Law de77dbedf1 🐛 Fix G5 IJ with Motion Mode (#21858) 2021-05-12 02:21:55 -05:00
ellensp 10a1ff1622 Fix compile error (#21877) 2021-05-12 02:18:44 -05:00
vyacheslav-shubin 0d629c80c7 🩹 G60-G61 Save E position (#21810) 2021-05-12 02:17:06 -05:00
thinkyhead 5353a1ed1a [cron] Bump distribution date (2021-05-12) 2021-05-12 01:01:39 +00:00
Scott Lahteine 0c8a53e507 🎨 Misc. code cleanup 2021-05-11 10:47:50 -05:00
Scott Lahteine 390878e78a 🎨 Additional utility macros 2021-05-11 10:47:50 -05:00
Scott Lahteine 398ce22c2e 🎨 Better error message for bad array sizes 2021-05-11 10:45:57 -05:00
Victor Oliveira a42760d38a BTT SKR Mini E3 for HAL/STM32 (#21488) 2021-05-11 10:44:54 -05:00
Scott Lahteine e5dc2c5321 Simplify macro expansion with recursion (#21859) 2021-05-11 08:30:16 -05:00
Scott Lahteine 0264316797 Fix L64xx init for Z4 2021-05-11 03:48:52 -05:00
Scott Lahteine 9746a8427c Use adafruit/Adafruit NeoPixel@~1.8.0 2021-05-11 03:46:34 -05:00
Scott Lahteine dd16d6ad6e Update Chart.js to 2.9.4
Addressing CVE-2020-7746
2021-05-10 22:47:34 -05:00
thinkyhead 782ced6ff7 [cron] Bump distribution date (2021-05-11) 2021-05-11 01:00:06 +00:00
ellensp 61ac1ed2f6 update FLSUN_HISPEED env to flsun_hispeedv1 (#21510) 2021-05-10 16:33:43 -05:00
tobuh 8e56f9366d Fix and improve Power-Loss Recovery (#21779)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-05-10 07:24:35 -05:00
thinkyhead 4a7f5603de [cron] Bump distribution date (2021-05-10) 2021-05-10 01:00:29 +00:00
Giuliano Zaro fff5e9ba4a Fix insane mmu2 timeout (#21855)
* Fix insane mmu2 timeout

Fix insane timeout value. Now match original Prusa firmware.

* Update mmu2.cpp

Co-authored-by: Luu Lac <45380455+shitcreek@users.noreply.github.com>
2021-05-09 16:58:36 -04:00
Keith Bennett b12d0d06eb Unify BTT Motor Expansion Options (#21823) 2021-05-09 03:52:53 -05:00
Scott Lahteine 49548c343d Optimize G-code flag parameters (#21849) 2021-05-09 03:50:51 -05:00
charlespick 4588d836a3 Update Advanced Pause description (#21829)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-05-08 22:46:35 -05:00
Victor Oliveira 4335f4e41f 🐛 Fix Lerdge USB Flash Drive envs (#21847) 2021-05-08 21:05:47 -05:00
BigTreeTech c9de9d4f9b Capacitive Touch Screen (GT911) for SKR SE BX (#21843)
Co-authored-by: Msq001 <alansayyeah@gmail.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-05-08 21:02:16 -05:00
thinkyhead 6cc45d2578 [cron] Bump distribution date (2021-05-09) 2021-05-09 01:08:03 +00:00
Scott Lahteine 9f10695b3f Fix TFT typo 2021-05-08 19:00:47 -05:00
Scott Lahteine 42a2b5c3ec Move temp errors calling kill() out of ISR (#21832) 2021-05-08 17:34:21 -05:00
sanek88lbl f95f18c8e5 Lerdge K EEPROM and TFT (#21812)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-05-08 17:06:21 -05:00
Antonino Di Guardo adefecca6c Always prompt in M125 if host-prompt (as with Ext UI) (#21828)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-05-08 06:27:02 -05:00
Scott Lahteine 4f2ff42003 Update SKR 1.3 touch pins 2021-05-08 06:01:52 -05:00
Scott Lahteine 98e7e63240 TFT pins for BTT GTR V1
Proposed in #21772
2021-05-08 06:01:52 -05:00
Scott Lahteine 6f494e9bed Better opt_set comment of old val 2021-05-08 05:49:06 -05:00
Scott Lahteine b65cdbed91 Signal SD completion later (#21840) 2021-05-08 04:35:35 -05:00
Adrian DC 57025b75e1 Fix E3V2 Control Menu icon/text order (#21838)
Fixes #21837
2021-05-08 01:46:21 -05:00
charlespick 01741576eb Active MMU slot indicator (#21842) 2021-05-08 01:44:34 -05:00
Scott Lahteine f09fa69e86 Add and apply REPEAT_1 macro 2021-05-08 01:41:40 -05:00
Scott Lahteine a03811f4e8 Update MF states 2021-05-07 22:58:31 -05:00
Scott Lahteine 206d495ba4 Misc. code cleanup 2021-05-07 22:56:54 -05:00
Scott Lahteine 1292ff76b3 Debounce for Power-Loss pin 2021-05-07 22:56:54 -05:00
Scott Lahteine 9f7177c67d Misc Power Loss cleanup 2021-05-07 22:56:54 -05:00
thinkyhead 8fd4bfc0e7 [cron] Bump distribution date (2021-05-08) 2021-05-08 00:57:21 +00:00
Scott Lahteine 4428affc20 Let M421 C select any point
Fixing #21147
2021-05-07 00:56:01 -05:00
ellensp 02405add76 Support a third serial port (#21784) 2021-05-07 00:31:45 -05:00
Scott Lahteine be6fbc76a1 Serial and pins debug cleanup
- Rename some AVR / DUE / ESP32 serial types
- Reduce two #error to one static_assert
- Update AVR/DUE error messages
2021-05-06 22:39:34 -05:00
thinkyhead 32bf447644 [cron] Bump distribution date (2021-05-07) 2021-05-07 00:58:41 +00:00
Scott Lahteine ecca81beba Reformat features.ini 2021-05-06 19:34:15 -05:00
InsanityAutomation 2e11485da4 Merge branch 'bugfix-2.0.x' of https://github.com/MarlinFirmware/Marlin into bugfix-2.0.x 2021-05-06 11:55:25 -04:00
sanek88lbl 9485d44903 Patches for CASE_LIGHT_USE_RGB_LED (#21811)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-05-06 06:10:18 -05:00
Luu Lac 64ad96e19e TFT SPI for BTT SKR v1.3 (#21794) 2021-05-06 04:52:18 -05:00
Scott Lahteine a7cb13f339 Tweak SKR pins comments 2021-05-06 04:44:55 -05:00
Scott Lahteine 6f06801f1d Detab 2021-05-06 04:44:53 -05:00
Scott Lahteine 8d9021e806 Move ExtUI subfolders up a level (#21820) 2021-05-06 04:17:59 -05:00
ellensp fb87b2d1ad Simplify / undef extra endstops (#21808)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-05-06 01:54:02 -05:00
Scott Lahteine 28318f27d9 Use SERIAL_ECHOLNPAIR for resend 2021-05-06 01:51:19 -05:00
ellensp b1cca43252 Fix MMU2 compile with include (#21809) 2021-05-06 01:43:16 -05:00
hannesweisbach 857976b29f Allow undefined [XYZ]_ENABLE_PIN (for sensitive pins) (#21801) 2021-05-05 20:13:21 -05:00
Keith Bennett cbcc6ef9c4 Split up SKR V2 Rev A / B (#21805) 2021-05-05 20:11:54 -05:00
ManuelMcLure bac72ff0cc Only look for target disk during Upload (#21804) 2021-05-05 19:59:56 -05:00
thinkyhead 2470dc822f [cron] Bump distribution date (2021-05-06) 2021-05-06 00:55:43 +00:00
Scott Lahteine 1eb68e9f9a Echo LCD message to serial in kill 2021-05-05 17:43:01 -05:00
Scott Lahteine 301ee6c57a Add MKS_LCD12864B 2021-05-05 17:03:08 -05:00
InsanityAutomation d305f0a14b Merge branch 'bugfix-2.0.x' of https://github.com/MarlinFirmware/Marlin into bugfix-2.0.x 2021-05-05 09:46:59 -04:00
Scott Lahteine fccfcfbe5f Cleanup, hex formatting, includes 2021-05-05 08:04:04 -05:00
Scott Lahteine 5f30e9fe1c Add MKS_LCD12864B 2021-05-05 08:04:04 -05:00
Scott Lahteine 80c8218d94 Add MKS_LCD12864B 2021-05-05 07:23:52 -05:00
Scott Lahteine bed2bfdc24 Misc comments 2021-05-05 07:18:05 -05:00
Scott Lahteine 6f2967a8dc Cleanup, hex formatting 2021-05-05 06:34:02 -05:00
thinkyhead f3f82f56bf [cron] Bump distribution date (2021-05-05) 2021-05-05 00:57:34 +00:00
Scott Lahteine 9405a5e443 Fix flush_and_request_resend 2021-05-04 01:47:42 -05:00
Vert f4f41d01bf UMW follow-up (#21791) 2021-05-03 21:07:57 -05:00
Scott Lahteine dfc906930c Pause and PLR refinements
- Move `pause_print` argument `unload_length` after `show_lcd` so it's next to `DXC_ARGS`.
- Tweak the position and conditions of PLR save in `resume_print`.
- Add `Nozzle::park_mode_0_height` accessor to get the raised Z height.
- Remove extraneous `recovery.save` from `dwin.cpp`.
- Move PLR `info.volumetric...` to `flag`.
- Remove some G-code spaces in PLR code
- Document `pause.h` function declarations.
2021-05-03 20:55:05 -05:00
Scott Lahteine 01825d883e Apply SBI/CBI/TEST in HAL 2021-05-03 20:23:14 -05:00
thinkyhead 65b1139d93 [cron] Bump distribution date (2021-05-04) 2021-05-04 00:59:46 +00:00
Victor Oliveira dc18769010 Prevent watchdog reset in setup() (#21776)
Cause `manage_heaters` to only reset the watchdog and return until `setup()` is completed.

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-05-02 21:37:54 -05:00
Scott Lahteine 9dd884a324 Drop early_safe_delay 2021-05-02 21:32:42 -05:00
Scott Lahteine becdac19ea Temperature cleanup 2021-05-02 21:32:21 -05:00
thinkyhead eaa64967b5 [cron] Bump distribution date (2021-05-03) 2021-05-03 01:04:25 +00:00
Victor Oliveira fb2bfe1cef Fix bad DELTA probe move (#21781) 2021-05-02 17:05:15 -05:00
Vert cb5e6bfef6 UBL Mesh Wizard (#21556)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-05-02 16:38:55 -05:00
Scott Lahteine 30c299fd26 Fix parser temperature rounding 2021-05-02 16:07:27 -05:00
Victor Oliveira ae06ee24c5 Fix bad call to 'diskIODriver' (#21775) 2021-05-02 16:06:44 -05:00
Scott Lahteine fbc7a3775a SOFT_RESET_VIA_SERIAL sanity-check 2021-05-02 03:02:24 -05:00
Ken Sanislo 78de32e552 Allow Creality V4 SERVO0 and PROBE pin overrides (#21770) 2021-05-02 02:09:23 -05:00
Elton Law 661395a3b2 Allow disable of POWER_TIMEOUT (#21771)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-05-02 02:06:55 -05:00
Scott Lahteine 257ae51275 Use ststm32@~12.1 2021-05-01 21:15:12 -05:00
vyacheslav-shubin 46eb12da51 ExtUI event for PID tuning start (#21734) 2021-05-01 20:28:49 -05:00
thinkyhead 4d544e35e3 [cron] Bump distribution date (2021-05-02) 2021-05-02 01:16:57 +00:00
Scott Lahteine 95a5d63622 Air Assist tests 2021-05-01 20:10:16 -05:00
Scott Lahteine ffbf7a9141 Fix undefined abl_points 2021-05-01 20:07:20 -05:00
Scott Lahteine a95a21a353 Define 'filelist' for dgus/origin 2021-05-01 20:07:20 -05:00
Mike La Spina 741e3c1280 Laser Cutter Air Assist (#21753) 2021-05-01 19:59:45 -05:00
ellensp 9d43570ada Add missing ExtUI method (#21763)
Fixes #21761
2021-05-01 19:42:38 -05:00
Sebastiaan Dammann b356b44849 Fix Z raise in filament load M701 (#21762)
Fixes #21750
2021-05-01 19:38:31 -05:00
tobuh 05c25b8cdb Fix Power-Loss Save on Pause (#21749) 2021-05-01 03:46:26 -05:00
hartmannathan eddce4182b Comment correction (#21729) 2021-05-01 03:43:32 -05:00
ellensp ef9ca61039 Fix Singlenozzle Standby issues (#21759)
Fixes #21758

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-05-01 03:21:18 -05:00
ellensp 8c912d7ece Fix SDCARD_CONNECTION default for BTT SKR (#21755) 2021-04-30 23:15:16 -05:00
thinkyhead ff41bf5be8 [cron] Bump distribution date (2021-05-01) 2021-05-01 01:04:09 +00:00
Scott Lahteine 2f537768bc MKS Robin flash address 2021-04-30 08:30:41 -05:00
Nikolay March 68c010f82a Sanity-check for COREnn backlash (#21731) 2021-04-30 04:45:43 -05:00
lujios 4e4c3ef8fc Fix compile with DISTINCT_E_FACTORS + SLIM_LCD_MENUS (#21733)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-04-30 04:38:30 -05:00
Scott Lahteine e4f60f82a4 Heater error status 2021-04-30 03:24:57 -05:00
Keith Bennett f58b923fd4 Fix BTT E3 RRF and SKR V2 (Generic PIO) (#21741)
Follow-up to #21655
2021-04-30 03:07:18 -05:00
David cfdfd16779 Fix Thermal Runaway false-alarm in M303, add HeaterWatch::check (#21743)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-04-30 01:51:26 -05:00
Scott Lahteine 636facf40d Silence warning in gcode_D 2021-04-29 21:13:54 -05:00
thinkyhead b5fac1ac95 [cron] Bump distribution date (2021-04-30) 2021-04-30 00:24:56 +00:00
thinkyhead 082fce5e3e [cron] Bump distribution date (2021-04-29) 2021-04-29 00:34:04 +00:00
David 2e0a1f1aff Color UI Move Screen for 320x240 TFT (#21708) 2021-04-28 04:08:21 -05:00
thinkyhead f7f88b7187 [cron] Bump distribution date (2021-04-28) 2021-04-28 00:34:25 +00:00
Keith Bennett f04b2a9390 Clean up TFT comments (#21723) 2021-04-27 19:21:13 -05:00
Keith Bennett 516fe131be BTT SKR V2 probe and chamber pins (#21717) 2021-04-27 07:16:19 -05:00
Scott Lahteine ee016e605c Rename, clean up boards/variants (#21655)
* Consolidate variant scripts
* Rename Marlin-local boards
* Simplify variants where possible
* Rename variants
* CHITU_F103 and MEEB_3DP: Maple platform `platformio-build-stm32f1.py` uses the 'board' name, not 'board_build.variant' so folder names match 'board' and not `board_build.variant`.
2021-04-27 04:49:21 -05:00
Keith Bennett 69d85cce2d BTT SKR V2.0 / Stepper Driver Anti-Reverse Protection (#21503) 2021-04-27 02:22:09 -05:00
Adrian DC fe7f5ca7f4 Fix E3V2 Advanced Settings with PLR off (#21700)
Fixes #21534
2021-04-26 23:42:28 -05:00
Marcio T 9c7344487a FTDI EVE Touch UI fixes (#21706) 2021-04-26 23:40:59 -05:00
ellensp 5f9aac2027 Use temp_info_t for temp_redundant (#21715)
Fixes #21712

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-04-26 23:36:39 -05:00
thinkyhead 43fc1bd21c [cron] Bump distribution date (2021-04-27) 2021-04-27 00:35:59 +00:00
Victor Oliveira a981c33bad Remove compiler flag merge-constants (#21711) 2021-04-26 19:30:34 -05:00
Sebastiaan Dammann 36ec7ab150 Make Cancel Objects reporting optional (#21698) 2021-04-26 18:32:13 -05:00
hartmannathan 5301ec618b typo (#21710) 2021-04-26 18:30:26 -05:00
Vert a0a24e9380 Help users confused by "bed size" (#21714) 2021-04-26 18:23:00 -05:00
Keith Bennett 40d789ce18 Fix "continuous" typo (#21701) 2021-04-25 23:34:42 -05:00
Scott Lahteine 641bca87bc Prettier output from opt scripts (#21707) 2021-04-25 23:33:52 -05:00
Vert 5ad473fc62 Fix relocated LiquidCrystal library (#21699)
Followup to 770e539859
2021-04-25 20:55:15 -05:00
thinkyhead 7aeb6b5200 [cron] Bump distribution date (2021-04-26) 2021-04-26 00:36:31 +00:00
Scott Lahteine e250f6a275 whitespace 2021-04-25 17:17:33 -05:00
Scott Lahteine e59192b9ea Fix HMI_HomeOffN axis
Followup to #21534
2021-04-25 04:15:13 -05:00
pinchies a1ee5124d3 Fix usage, commentary of MANUAL_PROBE_START_Z, Z_AFTER_PROBING (#21692)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-04-25 03:48:20 -05:00
thinkyhead a280077820 [cron] Bump distribution date (2021-04-25) 2021-04-25 00:36:37 +00:00
Miguel Risco-Castillo 13f3ccb85d E3V2 DWIN Advanced Settings (#21534)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-04-24 18:50:44 -05:00
Scott Lahteine 770e539859 Use Adafruit LiquidCrystal 2021-04-24 15:41:01 -05:00
Scott Lahteine 993f9f3efd Remove extra platform_packages line 2021-04-24 15:23:28 -05:00
Scott Lahteine f3c7b61f29 Add INO to .editorconfig 2021-04-24 15:23:28 -05:00
Vert 3b8f83a5ae Sanity check MIXING_EXTRUDER + DISTINCT_E_FACTORS (#21689) 2021-04-24 05:35:02 -05:00
Scott Lahteine 836c4e0198 Drop Deviot workaround 2021-04-24 05:28:50 -05:00
Scott Lahteine dfcccb63a1 Use temperature accessors 2021-04-24 05:20:55 -05:00
Nikolay March 6f5800bd74 Backlash Compensation for COREnn (#21612)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-04-24 04:38:00 -05:00
fedetony d3a2c6a0b4 Soft Reset via Serial or post-kill button click (#21652)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-04-24 02:53:52 -05:00
Ramiro Polla 7a8e3cc258 Avoid + 0.0f in menu items (#21642) 2021-04-24 02:52:34 -05:00
Malderin e7f26cabfe Fix Bed Tramming 5th point (#21646) 2021-04-24 02:42:44 -05:00
Scott Lahteine a29aefc9c0 Move last bootscreen delay to end of setup (#21665) 2021-04-24 01:29:30 -05:00
Ryan Finnie a73dce4a56 Clean up / improve generate_version script (#21674) 2021-04-24 01:26:17 -05:00
vyacheslav-shubin f424da498a ExtUI::onPostprocessSettings (#21683) 2021-04-24 01:16:14 -05:00
Sebastiaan Dammann 8b5e7429d7 Prevent extrusion on M600 un-park (#21670)
Fixes #21669
2021-04-24 01:01:17 -05:00
unknownlamer 5dfe28db2a MCP4451 Digipot Support for Azteeg X5 GT (#21680) 2021-04-24 00:59:31 -05:00
ellensp 949d2d9e50 Fix MP_SCARA compile (#21686) 2021-04-24 00:11:11 -05:00
Jim Hyslop 0fe30d14a8 Don't display service prompt unless needed (#21654) 2021-04-24 00:09:51 -05:00
Victor Oliveira 46f272b669 Fix Celsius precision, current temp accessors (#21678) 2021-04-23 20:29:15 -05:00
Scott Lahteine c4620bb528 Add whole-degree accessors, simplify some temperature-related features (#21685) 2021-04-23 20:19:23 -05:00
thinkyhead 384e09aa7c [cron] Bump distribution date (2021-04-24) 2021-04-24 00:54:41 +00:00
Scott Lahteine 54ad22a455 Let compiler do Temperature inlining 2021-04-23 19:40:46 -05:00
Scott Lahteine 3bddbb1110 Clean up formatting, wrap macros 2021-04-23 19:21:39 -05:00
Scott Lahteine 72e3d2492f Update temperature types 2021-04-23 19:20:11 -05:00
Scott Lahteine 51a61c5431 Nextion cleanup 2021-04-23 19:15:22 -05:00
Scott Lahteine 4e10f46899 Use configured temp window for Chiron 2021-04-23 19:10:32 -05:00
thinkyhead a729cdcfdd [cron] Bump distribution date (2021-04-23) 2021-04-23 00:34:45 +00:00
BigTreeTech a58276c4c1 Enable Purge More / Resume with EP + Host Prompt (#21671)
Co-authored-by: Msq001 <alansayyeah@gmail.com>
2021-04-22 18:43:28 -05:00
Mike La Spina f075dd0db3 M10-M11 Air Evacuation for Spindle/Laser (#21668)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-04-22 18:19:41 -05:00
thinkyhead 4d34d16bd8 [cron] Bump distribution date (2021-04-22) 2021-04-22 00:41:44 +00:00
Scott Lahteine 57d0f0ce2e Fix Chiron typos, file nav 2021-04-21 15:28:50 -05:00
thinkyhead 778b8a45e9 [cron] Bump distribution date (2021-04-21) 2021-04-21 00:34:13 +00:00
Scott Lahteine 3c46a4062e Fix mfconfig 'copying' message 2021-04-20 16:36:19 -05:00
Axel Sepúlveda 2a7ba427dd Fix Grand Central SD dependency (#21660)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-04-20 05:14:21 -05:00
Scott Lahteine d87a71bd04 Extra dependency script logging 2021-04-20 05:11:43 -05:00
Scott Lahteine 6bb10b1898 Changes supporting "Prussia3D" MK3 (#21617) 2021-04-20 00:44:19 -05:00
Scott Lahteine f52351d116 Update mftest help 2021-04-20 00:32:51 -05:00
thinkyhead 7d72004742 [cron] Bump distribution date (2021-04-20) 2021-04-20 00:34:39 +00:00
Scott Lahteine 09de17fb59 Trigorilla Pro: Allow for swapped Z-stops 2021-04-19 13:30:21 -05:00
Scott Lahteine 2c2984fd29 Update realtime, DLP comments 2021-04-19 00:07:57 -05:00
Nick d5143c2c15 Support new style Anycubic Chiron TFT (#21597) 2021-04-18 23:04:38 -05:00
Scott Lahteine 59fd6428ae Skip preflight checks only (#21658)
Followup to e8af38cc2d
2021-04-18 22:46:43 -05:00
thinkyhead 07c5a4fa04 [cron] Bump distribution date (2021-04-19) 2021-04-19 00:34:55 +00:00
Scott Lahteine 550a806d77 More detailed serial config error 2021-04-18 18:24:58 -05:00
Scott Lahteine dc6c977766 Fix CHDK warning 2021-04-18 17:13:35 -05:00
Scott Lahteine 86397df32d BTT E3 RRF Support 2021-04-18 15:55:04 -05:00
Scott Lahteine 8e60b19662 Disable assert() by default 2021-04-18 15:55:04 -05:00
Scott Lahteine c508c2213e Misc. pio cleanup 2021-04-18 15:55:04 -05:00
thinkyhead 5d8727a59c [cron] Bump distribution date (2021-04-18) 2021-04-18 00:34:57 +00:00
Scott Lahteine e8af38cc2d Skip scripts during 'platformio init' (#21643) 2021-04-17 14:19:33 -05:00
fedetony b8cf818dac Fix Realtime Reporting with G-code Motion Modes (#21630) 2021-04-17 03:54:43 -05:00
Scott Lahteine bca4652c5e Leave Hybrid Threshold as-is for now
Reverting 253ee0c407
2021-04-17 02:03:16 -05:00
thinkyhead 3c4308b7b6 [cron] Bump distribution date (2021-04-17) 2021-04-17 00:33:21 +00:00
Scott Lahteine 464b2242e2 Better chopper defaults 2021-04-16 09:30:39 -05:00
MangaValk 553487cc8a Tool sensors (#17239) 2021-04-16 08:02:31 -05:00
Scott Lahteine 73f6426114 Use itoa for sprintf int 2021-04-16 05:14:37 -05:00
Scott Lahteine 07cac80fb0 Drop extraneous inlines 2021-04-16 05:03:46 -05:00
Scott Lahteine 253ee0c407 Init pwm_thrs to 0 when HYBRID_THRESHOLD is off (#21623) 2021-04-16 04:04:07 -05:00
Luca Zimmermann 2d1d628340 Always swap with PRIME_FIRST_USED disabled (#21622) 2021-04-16 04:01:50 -05:00
Scott Lahteine c6c6c56186 SDIO cleanup 2021-04-16 03:16:44 -05:00
Scott Lahteine 528b9bd872 Revert experimental NAN patch
Hold changes from #21575 (24a095c) for more testing.
2021-04-16 02:43:59 -05:00
fedetony 32dba5e0c7 Realtime Reporting, S000, P000, R000 (#19330) 2021-04-16 01:59:28 -05:00
Scott Lahteine 58cc4b7043 Use celsius_t for temperature accessors 2021-04-15 20:18:20 -05:00
thinkyhead 795253a9d5 [cron] Bump distribution date (2021-04-16) 2021-04-16 00:32:47 +00:00
Sola 3cdf363cce Fix MKS H43 compile (#21619) 2021-04-15 04:45:30 -05:00
Andrea 63673d3ce0 Fix Custom Menu audio and return (#21616) 2021-04-15 04:37:37 -05:00
thinkyhead 2d8ee3a496 [cron] Bump distribution date (2021-04-15) 2021-04-15 00:34:28 +00:00
Scott Lahteine 0561d5bea3 Add E1 for RAMPS 1.4.4 / AGC 2021-04-14 05:55:14 -05:00
XDA-Bam cc5297d637 Space-separate scrolling Status Message (#21523)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-04-14 04:42:04 -05:00
Scott Lahteine 1595fdb54b Use sq 2021-04-13 23:25:25 -05:00
Scott Lahteine d705a5b45e Fix long acceleration overflow 2021-04-13 23:25:25 -05:00
Scott Lahteine 0e9836649e Misc. formatting, serial out 2021-04-13 21:41:04 -05:00
thinkyhead 4849d313fd [cron] Bump distribution date (2021-04-14) 2021-04-14 00:32:34 +00:00
Marcio T 3ec5cd312b Enhance and fix FTDI Eve Touch UI (#21607) 2021-04-13 18:31:12 -05:00
Victor Oliveira 138340ee99 Multi-Volume. Select Media for LVGL (#21344) 2021-04-13 17:34:19 -05:00
gmarsh a5f0075a60 Fix and improve Power Monitor (#21551) 2021-04-13 15:17:52 -05:00
Scott Lahteine 84c79d7531 Followup to sprintf cleanup 2021-04-13 15:07:25 -05:00
Scott Lahteine fd99ea09ec Add fan percent accessors 2021-04-13 04:00:39 -05:00
Scott Lahteine 4e314ef6d4 More MKS UI sprintf 2021-04-13 03:53:50 -05:00
Veisen 776c1e66db Fix ANYCUBIC_LCD_I3MEGA compile (#21585) 2021-04-13 03:09:21 -05:00
Scott Lahteine e0ed57db67 Remove extraneous MKS UI sprintf 2021-04-12 23:40:32 -05:00
pinchies 41eb5813e0 Fix Flash size (512KB) for STM32F103ZE (#21590) 2021-04-12 21:14:34 -05:00
ellensp 5fb3ee6101 Fix Max Temperature not enforced (#21592) 2021-04-12 21:02:55 -05:00
Scott Lahteine 3517fbdcbd Blocking move followup 2021-04-12 20:58:43 -05:00
Giuliano Zaro 7f56538602 Chamber Fan mode 3 (#21594) 2021-04-12 20:28:13 -05:00
Scott Lahteine 4044ed8783 Add 'blocking move' comments 2021-04-12 20:15:41 -05:00
espr14 a5d6f6ac98 Fix Resume Print with UBL (#21564)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-04-12 20:10:21 -05:00
thinkyhead 41c55a30cd [cron] Bump distribution date (2021-04-13) 2021-04-13 00:45:21 +00:00
Scott Lahteine 4a1d2d816c Update old-style axis indexes 2021-04-12 19:34:31 -05:00
Mike La Spina 1e357b3c74 Tweak cooler / flowmeter icons (#21573) 2021-04-12 17:52:18 -05:00
Ramiro Polla f69da7d00d Add 'jump relaxing' compile flag to AVR targets (#21566) 2021-04-12 17:39:22 -05:00
Scott Lahteine 24a095c5c1 Reduce math library code size by 3.4KB (#21575) 2021-04-12 16:49:53 -05:00
thinkyhead 1742fb8655 [cron] Bump distribution date (2021-04-12) 2021-04-12 00:36:20 +00:00
Malderin 76cc736755 MKS LVGL UI: Fix icon layout (#21595) 2021-04-11 16:32:28 -05:00
Scott Lahteine c35e271dba Clean up, update some variants 2021-04-10 21:19:32 -05:00
Scott Lahteine 6ab7baa413 tick() => isr() to spotlight interrupt-time 2021-04-10 19:53:43 -05:00
thinkyhead 1114bdbb04 [cron] Bump distribution date (2021-04-11) 2021-04-11 00:37:24 +00:00
Scott Lahteine f86423972f EXP2_01_PIN for BTT BTT002 1.0 2021-04-10 18:28:13 -05:00
ellensp 62f992af23 Followup to "no status for serial::write" (#21577) 2021-04-10 15:35:45 -05:00
BigTreeTech 37e671612e Fix M114 E / R broken by LIN_ADVANCE (#21579) 2021-04-10 03:44:36 -05:00
thinkyhead 3b3a3fa845 [cron] Bump distribution date (2021-04-10) 2021-04-10 00:34:56 +00:00
Sola 4cba40f9fd Fix manual move with MKS H43 (#21511)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-04-09 15:29:59 -05:00
Ramiro Polla 8048d1411f Drop return value from Serial::write() (#21567) 2021-04-08 21:05:31 -05:00
Ramiro Polla 1a2cbe100c Macros to eliminate 'f + 0.0' (#21568) 2021-04-08 21:03:34 -05:00
ellensp 19320a1f8f Check for old Marlin files mixed in (#21574) 2021-04-08 20:36:48 -05:00
Victor Oliveira 7124326808 Delay U8glib init using U8glib-HAL 0.4.4 (#21496)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-04-08 20:35:21 -05:00
thinkyhead ecd5ae890f [cron] Bump distribution date (2021-04-09) 2021-04-09 00:32:51 +00:00
thinkyhead aa2601bb9e [cron] Bump distribution date (2021-04-08) 2021-04-08 00:37:38 +00:00
Scott Lahteine 1879eede0d Fix axis char printing 2021-04-07 15:43:57 -05:00
ellensp facbbba789 Sanity Check newer Configs too (#21550)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-04-07 15:02:09 -05:00
Radim Karniš d61bc2d136 Park Magnetic Switching Toolhead at the very end (#21552) 2021-04-07 14:41:38 -05:00
thinkyhead 5ab220fa76 [cron] Bump distribution date (2021-04-07) 2021-04-07 00:34:41 +00:00
BigTreeTech b483a8d652 BTT SKR-SE-BX (STM32H743IIT6 ARM Cortex M7) and BIQU_BX_TFT70 (#21536) 2021-04-05 21:40:50 -05:00
Scott Lahteine ed14731146 getHighESpeed => autotemp_task 2021-04-05 21:27:05 -05:00
Malderin 746eae15f3 Cast celsius to int for MKS LVGL UI (#21502) 2021-04-05 20:55:00 -05:00
Victor Oliveira 121b606f9c Fix Rumba32 variant for Marlin (#21497) 2021-04-05 20:46:21 -05:00
Malderin 61af08d499 MKS LVGL UI: Display/edit fan percentage (#21544)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-04-05 20:39:57 -05:00
thinkyhead a6105ef37f [cron] Bump distribution date (2021-04-06) 2021-04-06 00:35:12 +00:00
Mike La Spina 993609b5aa Make DELAY_NS round up on AVR (#21546) 2021-04-05 16:34:31 -05:00
Scott Lahteine e3116eed2e write_command changes input 2021-04-05 15:34:51 -05:00
Scott Lahteine 98d6c751d3 Fix CardReader string args 2021-04-04 23:52:11 -05:00
thinkyhead 9165749321 [cron] Bump distribution date (2021-04-05) 2021-04-05 00:36:21 +00:00
Marcio T 75b790376d Touch UI Bed Mesh Screen refactor, enhancements (#21521)
- Split mesh view and edit screen into two screens
- The editor now live-updates the graphics
- Added Touch UI mesh progress feedback to `G26`
- Show positive / negative mesh values in different colors
2021-04-04 18:58:03 -05:00
vyacheslav-shubin 8da8bf7e87 Fix FAT delete of items with long name (#21528) 2021-04-04 18:52:16 -05:00
Scott Lahteine 8b6718c632 misc. pointer formatting 2021-04-04 18:08:13 -05:00
InsanityAutomation 98b2b45264 Revert "Optimized string-to-number functions" (#21532)
This reverts #21484
2021-04-04 17:35:58 -05:00
InsanityAutomation c4b69fcddd Fix Hotend-abort-on-idle Check (#21535) 2021-04-04 16:55:34 -05:00
Giuliano Zaro a628559258 Update Italian language (#21537) 2021-04-04 16:45:56 -05:00
Scott Lahteine 895e40190b Suppress redundant serial errors 2021-04-03 20:33:11 -05:00
thinkyhead c442485137 [cron] Bump distribution date (2021-04-04) 2021-04-04 00:35:49 +00:00
thinkyhead dd76a50683 [cron] Bump distribution date (2021-04-03) 2021-04-03 00:33:51 +00:00
XDA-Bam 9d0e82788a Update u8g / AVR display timing defaults (#21518) 2021-04-02 19:11:22 -05:00
Vert d0d5003f45 GT2560 V3 followup (#21512) 2021-04-02 19:06:43 -05:00
Scott Lahteine c2b72c0e73 Remove extraneous 'extern' hints (#21516) 2021-04-02 14:22:43 -05:00
Scott Lahteine 9d0b6c5730 Requiring PIO >= 5.0.3 2021-04-01 21:54:51 -05:00
Scott Lahteine 3229100025 Split up platformio.ini (#21507) 2021-04-01 21:53:19 -05:00
thinkyhead 0dde8f8968 [cron] Bump distribution date (2021-04-02) 2021-04-02 01:13:58 +00:00
Mike La Spina 235ba92602 Followup to Laser Flow Meter (#21498) 2021-04-01 19:29:49 -05:00
Sola 6747d350a5 MKS H43 fix, cleanup (#21500)
Followup to #21485
2021-04-01 19:19:22 -05:00
Marcio T 45c1432946 G26 Hilbert Curve followup (#21480) 2021-04-01 19:12:00 -05:00
Vert 05b39623b0 Board IDs for G2560 Rev B, G2560 v4, GTM32 VD (#21499) 2021-04-01 18:05:02 -05:00
Scott Lahteine 62f37669dc Replace 'const float &' with 'const_float_t' (#21505) 2021-04-01 17:59:57 -05:00
thinkyhead 600ef1e47c [cron] Bump distribution date (2021-04-01) 2021-04-01 00:34:23 +00:00
Sola 4d17613050 MKS H43 fix, cleanup (#21485)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-31 02:34:17 -05:00
Scott Lahteine bfdd1f4662 Update UBL param 2021-03-30 23:58:32 -05:00
Scott Lahteine be775ed72d Move apply_rotation_xyz into matrix_3x3 2021-03-30 23:58:32 -05:00
Scott Lahteine 8d083eb248 Put ABL state into a class 2021-03-30 23:58:32 -05:00
Marcio T 7573524a14 FTDI Touch UI fix and reorganize (#21487) 2021-03-30 21:23:43 -05:00
Ramiro Polla 20d2061f22 Optimized string-to-number functions (#21484) 2021-03-30 21:20:33 -05:00
Marco van Wieringen df297b6ca3 Fix FYSETC_S6 heaters pins (#21483)
When adding support FYSETC Spider board the S6 pins file was broken.
2021-03-30 20:11:33 -05:00
thinkyhead 6175802693 [cron] Bump distribution date (2021-03-31) 2021-03-31 00:29:24 +00:00
Scott Lahteine 0f23090545 Serial flags followup
Followup to #21318
2021-03-29 22:38:33 -05:00
Scott Lahteine f43b250ed2 Adjust microsteps alignment 2021-03-29 21:54:32 -05:00
Victor Oliveira 6e0b79a33b Fix and add STM32 SDIO DMA (#21476) 2021-03-29 21:52:30 -05:00
X-Ryl669 139c149486 Flags for MarlinSerial instance features (#21318) 2021-03-29 21:36:01 -05:00
Giuliano Zaro 3f7cd45df4 Generalize MMU (#21469) 2021-03-29 21:14:11 -05:00
Ste c298095000 Align temp settings (#21329) 2021-03-29 21:07:21 -05:00
Ramiro Polla d30b5481f5 Optimize BLTouch code for size (#21477) 2021-03-29 20:56:44 -05:00
Scott Lahteine f587a4e3f3 Improve uncrust script 2021-03-29 20:44:20 -05:00
Scott Lahteine 3b73b115ca Apply pointer formatting 2021-03-29 20:36:37 -05:00
thinkyhead 71e789943e [cron] Bump distribution date (2021-03-30) 2021-03-30 00:32:47 +00:00
ellensp 1caf8a1f5b GT2560 Rev.A Plus Z Max Pin with BLTouch (#21375) 2021-03-29 04:43:07 -05:00
George Fu 1d3f28da2e FYSETC Spider board (#21458) 2021-03-29 04:38:28 -05:00
Scott Lahteine 86ba0cde35 reduced verbiage 2021-03-29 03:33:19 -05:00
Malderin a335cf2edf Fix MKS LVGL UI Main screen / print buttons (#21468) 2021-03-29 03:19:38 -05:00
Scott Lahteine 33ccf1b931 Adjust mfconfig script 2021-03-29 01:49:35 -05:00
Mike La Spina ccdbffbf3f Laser Coolant Flow Meter / Safety Shutdown (#21431)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-03-29 01:41:56 -05:00
thinkyhead 8f509b0ae0 [cron] Bump distribution date (2021-03-29) 2021-03-29 00:45:48 +00:00
Vert 001c77d1f7 YHCB2004 pins followup (#21472) 2021-03-28 19:27:02 -05:00
Marcio T c45b91aa94 Refactor Hilbert curve. Enhance Touch UI Bed Level Screen. (#21453) 2021-03-27 22:57:12 -05:00
thinkyhead 5d0e6c21aa [cron] Bump distribution date (2021-03-28) 2021-03-28 00:34:16 +00:00
thinkyhead 5991836e1f [cron] Bump distribution date (2021-03-27) 2021-03-27 00:32:48 +00:00
Leoric 532df198da MKS UI: Monitor state when idle (#21452)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-03-26 15:41:55 -05:00
Vert 241d2e3fa3 Fix for YHCB2004 (#21450) 2021-03-25 20:44:35 -05:00
thinkyhead c55d53daa6 [cron] Bump distribution date (2021-03-26) 2021-03-26 00:31:14 +00:00
Tomas Rimkus 8a67846872 Avoid watchdog reset in all wired EEPROMs (#21436)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-25 19:16:45 -05:00
Scott Lahteine 704b8cd83c Apply TMC UART to STM32, simplify 2021-03-25 16:53:05 -05:00
Scott Lahteine 84b961cb20 Define HW serial ports needed for TMC UART (#21446) 2021-03-25 16:19:03 -05:00
Ramiro Polla 8bf6b190ff Optimize LSF for size, efficiency (#21443) 2021-03-24 22:56:48 -05:00
ldursw 69c6ffa90b Followup to SDIO patch (#21440) 2021-03-24 22:40:48 -05:00
espr14 e989bf3b0e Endstops always on in G28 (#21441) 2021-03-24 22:39:29 -05:00
espr14 cfdeab70cd Endstops always on after delta homing (#21442) 2021-03-24 22:39:10 -05:00
MarlinFirmware de1161536b [cron] Bump distribution date (2021-03-25) 2021-03-25 00:27:01 +00:00
Scott Lahteine 589bb921ae Tweak disabled variant options 2021-03-24 12:23:10 -05:00
Scott Lahteine b59a4331fa Update common-cxxflags.py comment 2021-03-24 12:23:10 -05:00
Scott Lahteine 832059967c Comment, clean up some PlatformIO scripts 2021-03-24 12:23:10 -05:00
Martijn Bosgraaf 30e7e2c276 Extend M106/M107 for better laser module support (#16082)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-03-24 12:21:11 -05:00
Bryan Hunwardsen 3ae892bf91 SKR E3 Mini V2.0 Fan Bug Fix (#21079)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-24 12:05:46 -05:00
Miguel Risco-Castillo 930752d46e Ender 3 V2 Status Line (#21369)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-03-24 10:12:57 -05:00
ldursw d172c71376 Fix SDIO buffer alignment (#21396) 2021-03-24 09:30:19 -05:00
kpishere fd8207dd9a Misc build fixes (#21413)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-03-24 09:14:11 -05:00
Ramiro Polla e7596d92c7 Update Anet V1.0 display timing (#21425) 2021-03-24 07:45:43 -05:00
Ramiro Polla 3ced55aa93 Optimize MarlinSettings with template methods (#21426) 2021-03-24 07:32:08 -05:00
Scott Lahteine 2d2291d00e More IntelliSense-friendly declarations 2021-03-24 05:50:47 -05:00
Scott Lahteine da4b6896f7 Group UBL parameters, add comments 2021-03-24 05:50:47 -05:00
Scott Lahteine 8fca37f373 Misc LCD cleanup 2021-03-24 05:50:47 -05:00
Scott Lahteine 155dea6f14 Tweak mf helper scripts 2021-03-24 04:15:25 -05:00
Scott Lahteine e5ff55a1be Add typedef celsius_t (#21374) 2021-03-24 04:11:43 -05:00
MarlinFirmware 07c24e72ac [cron] Bump distribution date (2021-03-24) 2021-03-24 00:13:49 +00:00
Scott Lahteine a8ea6e6463 Max temp/target followup 2021-03-23 10:56:10 -05:00
Scott Lahteine 58f0330d3f MKS / E3V2 LCD code cleanup 2021-03-23 10:46:54 -05:00
Scott Lahteine f7aaa2e1c7 Add typedef extra_fan_t 2021-03-23 09:39:44 -05:00
Scott Lahteine cfa6c7d45b Improve max temp / target 2021-03-23 09:39:09 -05:00
borland1 df1ef496d1 Main / Config Custom Submenus (#18177)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-03-23 08:21:11 -05:00
Scott Lahteine dd92c8e927 Followup to UBL Hilbert 2021-03-23 05:54:41 -05:00
ellensp 10c14bcc05 Check NOZZLE_CLEAN_FEATURE settings (#21332)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-23 01:47:07 -05:00
Marcio T eee726ec7d UBL - Hilbert space-filling curve probing sequence (#21387) 2021-03-23 01:45:51 -05:00
Scott Lahteine 22fc59ab59 Minor process_subcommands_now followup 2021-03-23 01:03:32 -05:00
mihtjel 50a6ffa952 Fix macros that call macros crashing (#21383)
When macros call macros, the null termination should remain in place until the macro is completed, and only then put back. Otherwise, the macro handler interprets this as setting the macro called to a new value.
2021-03-23 01:00:22 -05:00
Sola 2b621eb45d Fix MKS H43 sensorless homing (#21388) 2021-03-23 00:58:52 -05:00
Zs.Antal c44ff3eb3d Update Hungarian language (#21407) 2021-03-23 00:57:50 -05:00
Marcio T 3e7d830f57 Mesh Editor for FTDI Eve Touch UI (#21381) 2021-03-23 00:51:03 -05:00
thinkyhead 26db51fa9d [cron] Bump distribution date (2021-03-23) 2021-03-23 00:13:33 +00:00
thinkyhead fb9502e0fb [cron] Bump distribution date (2021-03-22) 2021-03-22 00:13:40 +00:00
thinkyhead d0ea2b2867 [cron] Bump distribution date (2021-03-21) 2021-03-21 00:14:12 +00:00
thinkyhead 5573d98ecc [cron] Bump distribution date (2021-03-20) 2021-03-20 00:13:15 +00:00
Scott Lahteine 38b44e3fc9 HAL eeprom cleanup 2021-03-19 04:51:41 -05:00
Scott Lahteine d4ab2024f5 Fix bool++ warning 2021-03-19 04:51:41 -05:00
ellensp 790bba1556 Fix preflight motherboard target check (#21372)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-19 00:05:30 -05:00
Skorpi08 b51aed8aa5 Nextion TFT touch screen (#21324)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-03-18 20:51:19 -05:00
thinkyhead 1f52112d72 [cron] Bump distribution date (2021-03-19) 2021-03-19 00:13:41 +00:00
Scott Lahteine ad907a51e2 Followup to planner cleanup 2021-03-18 00:11:25 -05:00
Scott Lahteine 6673359d89 Move web-ui out of Marlin root folder 2021-03-17 21:36:30 -05:00
Scott Lahteine 560448afed Revert "Fix small wired EEPROM (#21337)"
Reverting commit cc3e878f90 pending further investigation.
2021-03-17 21:36:30 -05:00
Scott Lahteine deaefbf1dc Minor E3 V2 dwin cleanup 2021-03-17 20:06:16 -05:00
Scott Lahteine 9823a37362 E1+ Autotemp and Planner comments 2021-03-17 20:06:16 -05:00
Scott Lahteine 15bda88d04 Un-pause fans on STOP 2021-03-17 19:25:05 -05:00
Scott Lahteine de73b9b934 Update setup() description 2021-03-17 19:25:05 -05:00
thinkyhead 2fc854eda0 [cron] Bump distribution date (2021-03-18) 2021-03-18 00:15:21 +00:00
Scott Lahteine 60607ed18d mftest: usage with error 2021-03-17 02:39:26 -05:00
thinkyhead 546e56ef3d [cron] Bump distribution date (2021-03-17) 2021-03-17 00:13:28 +00:00
Scott Lahteine dc78e0a250 Detect extra ENVS in preflight checks (#21361) 2021-03-16 17:33:10 -05:00
thinkyhead 5ffa6f3331 [cron] Bump distribution date (2021-03-16) 2021-03-16 00:13:07 +00:00
K.3D 1a23ffd776 KRATOS32 / K.32 board and LCD controllers (#21334) 2021-03-15 11:02:40 -05:00
X-Ryl669 c07f99d5e4 Teensy USB / serial followup (#21316) 2021-03-14 20:23:41 -05:00
thinkyhead ae8be31247 [cron] Bump distribution date (2021-03-15) 2021-03-15 00:13:36 +00:00
Victor Oliveira 4f6910c131 Script to generate Marlin TFT Images (#21340) 2021-03-14 12:14:09 -05:00
X-Ryl669 d787cd3076 Fix build with Meatpack only on 2nd port (#21336)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-14 12:11:11 -05:00
Scott Lahteine cc3e878f90 Fix small wired EEPROM (#21337)
Co-Authored-By: jafal99 <26922965+jafal99@users.noreply.github.com>
2021-03-14 11:43:20 -05:00
XDA-Bam b9b9a3115a Update display timing for SKR Pro (#21346) 2021-03-14 11:42:25 -05:00
thinkyhead 36d3b6aa95 [cron] Bump distribution date (2021-03-14) 2021-03-14 00:13:50 +00:00
InsanityAutomation 911cd1a6d3 Custom menu items confirm option (#21338)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-13 07:37:49 -06:00
Victor Oliveira da84b59ee4 No extra build folder for st/jlink upload (#21341) 2021-03-13 05:01:02 -06:00
thinkyhead 11343bb0ea [cron] Bump distribution date (2021-03-13) 2021-03-13 00:16:55 +00:00
Scott Lahteine 3107d8a0f4 Tweak opt_set, opt_enable 2021-03-12 09:29:48 -06:00
Scott Lahteine 7f1fa0d1ff Add M207/8/9 reporting (#21335) 2021-03-12 09:25:41 -06:00
Scott Lahteine 604c5dedf4 MarlinSerial cleanup 2021-03-12 08:38:52 -06:00
Scott Lahteine 71f2617263 Pause SD queue early on M25 (#21317) 2021-03-12 08:34:22 -06:00
Scott Lahteine 8532c2b9b6 Fix MarlinSerial typo 2021-03-12 07:37:50 -06:00
Scott Lahteine 1affbe2100 Clean up, optimize ExtUI/TFT code (#21333) 2021-03-12 06:54:42 -06:00
X-Ryl669 9dc2712c47 Undef unused 2nd serial option(s) (#21331)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-12 05:25:30 -06:00
Evgeny Z 6e1024737d Lerdge-X I²C EEPROM pins, size (#21322) 2021-03-11 20:12:24 -06:00
thinkyhead 03a41021de [cron] Bump distribution date (2021-03-12) 2021-03-12 00:13:16 +00:00
thinkyhead a73cff8e4f [cron] Bump distribution date (2021-03-11) 2021-03-11 00:13:08 +00:00
ellensp 8857fc6c4b Fix password menu stickiness before first auth (#21295) 2021-03-10 16:02:35 -06:00
Evgeny Z f671e6d138 Lerdge-K TMC 2208/9 UART pins (#21299) 2021-03-10 15:02:29 -06:00
Keith Bennett 4d6ebf95fc Fix LERDGE 'extends' env references (#21305)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-03-10 14:57:54 -06:00
Cal1sto 8c512191b2 Fix TouchMI stow in G34 (#21291) 2021-03-10 14:37:22 -06:00
X-Ryl669 f147a8990a Fix MeatPack with per-serial-port instances (#21306) 2021-03-10 14:22:20 -06:00
Scott Lahteine 048f6b4731 Tricked-out declaration 2021-03-10 13:45:53 -06:00
Scott Lahteine 9cba3c87ef Update MEATPACK test 2021-03-10 13:45:53 -06:00
Scott Lahteine dbd28eecc9 Number serial from 1 to match settings 2021-03-10 13:45:53 -06:00
Scott Lahteine 2c62886c71 Clean up spaces and words 2021-03-10 13:45:53 -06:00
Scott Lahteine fe0b770033 Fix serial index types 2021-03-10 13:45:53 -06:00
Scott Lahteine b75e682c50 Add binary file transfer test 2021-03-10 13:45:53 -06:00
Victor Mateus Oliveira bb6d718e19 fix meat pack internal buffer for multi serial 2021-03-10 06:55:40 -06:00
thinkyhead 28a136d7f4 [cron] Bump distribution date (2021-03-10) 2021-03-10 00:13:12 +00:00
Chris 10ec5c7f34 Fix LPC + TMC boot loop (#21298) 2021-03-09 17:06:00 -06:00
X-Ryl669 55c31fbe9a Distinguish serial index from mask (#21287) 2021-03-09 03:20:37 -06:00
Victor Oliveira 2f1fd4bbaa Host Keepalive followup (#21290)
Followup to #21283

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-08 20:01:45 -06:00
thinkyhead 18a10c0db1 [cron] Bump distribution date (2021-03-09) 2021-03-09 00:13:12 +00:00
ellensp aad0f517b4 CUSTOM_USER_BUTTONS followup (#21284)
Followup to #18389
2021-03-08 04:14:18 -06:00
Victor Oliveira 1b9ff68f8c Fix Host Keepalive serial target (#21283)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-08 01:11:37 -06:00
ellensp aa054471f2 M303 followup (#21282)
Followup to f2ed18d150
2021-03-07 22:06:33 -06:00
thinkyhead f2ff75f3a2 [cron] Bump distribution date (2021-03-08) 2021-03-08 00:18:19 +00:00
Keith Bennett 5dc8f5cfab Extend Heater Overshoot Options (#21273)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-03-06 22:55:37 -06:00
ellensp ced1bb9404 Update obsolete debug define (#21276) 2021-03-06 21:43:43 -06:00
thinkyhead 9f14127fd6 [cron] Bump distribution date (2021-03-07) 2021-03-07 00:14:45 +00:00
Mike La Spina b95e548ddb Cooler (for Laser) - M143, M193 (#21255) 2021-03-06 14:13:28 -06:00
Scott Lahteine 87bef13a4c Fix DGUS include paths
Followup to #20609
2021-03-06 10:20:01 -06:00
Sola 72cc5a49e6 MKS H43 fixup (#21267)
Co-authored-by: makerbase <4164049@qq.com>
Co-authored-by: MKS-Sean <56996910+MKS-Sean@users.noreply.github.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-06 09:04:05 -06:00
ellensp a94fa7b476 Fix Creality DWIN - Broken (bool)Serial ? (#21272)
Co-authored-by: ellensp <ellensp@hotmsil.com>
2021-03-06 07:19:15 -06:00
Scott Lahteine 43b712d42b Pins/tests followup 2021-03-06 06:58:00 -06:00
Keith Bennett 2c5967925f Pins/tests followup (#21268)
Missing commit from #21254
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-06 03:50:26 -06:00
Zs.Antal 4182cf3e9e Update Hungarian language (#21266) 2021-03-06 02:00:10 -06:00
qwewer0 a1796ecace Link to bugfix tree (#21263) 2021-03-06 01:56:43 -06:00
Keith Bennett 3eb8e26174 Tweak/Consolidate followup (#21261) 2021-03-06 01:53:44 -06:00
thinkyhead d05bf563a2 [cron] Bump distribution date (2021-03-06) 2021-03-06 00:12:57 +00:00
Scott Lahteine 3ea56ba4c7 Tweak tests, consolidate pins target validation (#21254) 2021-03-05 04:30:52 -06:00
thinkyhead f56929d0df [cron] Bump distribution date (2021-03-05) 2021-03-05 00:17:19 +00:00
Victor Oliveira 101f09aabd Fix multi-serial CRC error crash (#21249) 2021-03-04 17:39:08 -06:00
Tanguy Pruvot a0d312396a Followup to MP_SCARA/TPARA patches (#21248) 2021-03-04 17:34:38 -06:00
Scott Lahteine 6903a2ffc5 Remove extra G42 2021-03-04 16:36:44 -06:00
Oleksii Zelivianskyi 8dee12ff05 Correct fan pins for MKS Robin Nano v3 (#21238) 2021-03-04 03:33:02 -06:00
Keith Bennett 9299f4e98a SMUFF => SMuFF (#21243) 2021-03-04 03:32:02 -06:00
Scott Lahteine 6225870aa9 Implement G42, after all 2021-03-04 03:28:45 -06:00
Scott Lahteine dad486c01b MK2_MULTIPLEXER dependency 2021-03-04 03:25:48 -06:00
Scott Lahteine 0b7e857614 Update some py scripts 2021-03-03 20:48:58 -06:00
Scott Lahteine 431f6bf3a5 Parking Extruder solenoid fix/cleanup 2021-03-03 20:48:33 -06:00
Scott Lahteine 9372aa99af Fix teensy35 tests 2021-03-03 20:48:33 -06:00
thinkyhead 81c29ecc7e [cron] Bump distribution date (2021-03-04) 2021-03-04 00:17:17 +00:00
Scott Lahteine dd388aedfd TPARA followup 2021-03-03 17:57:24 -06:00
Axel a46e025725 TPARA - 3DOF robot arm IK (#21005)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-03-03 17:46:32 -06:00
Scott Lahteine fd270ddc6c misc. cleanup 2021-03-03 00:18:50 -06:00
Scott Lahteine 369ffe518d Improve opt_set (etc.) used for tests 2021-03-03 00:18:50 -06:00
Sola 0afa4cc957 Fix MKS H43 compile (#21240) 2021-03-02 20:58:42 -06:00
thinkyhead 872f031405 [cron] Bump distribution date (2021-03-03) 2021-03-03 00:15:08 +00:00
Scott Lahteine 35791c6371 Trust XY after Quiet Probing short sleep (#21237) 2021-03-01 19:39:43 -06:00
thinkyhead 137f70b122 [cron] Bump distribution date (2021-03-02) 2021-03-02 00:11:00 +00:00
Scott Lahteine dfa33082bb Fix some config builds 2021-03-01 09:14:17 -06:00
Scott Lahteine b2bc85f6f6 build_all_examples -c -s, silent mftest 2021-03-01 09:14:05 -06:00
Scott Lahteine 21372c3d4e Better mftest order 2021-03-01 09:13:54 -06:00
MoellerDi 7ee9aefed7 G-code Digital Buttons (#18389)
Co-Authored-By: android444 <24375898+android444@users.noreply.github.com>
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-03-01 08:03:41 -06:00
Scott Lahteine 8c9a59c29e Fewer warnings 2021-03-01 06:21:51 -06:00
Scott Lahteine 28404f9e87 POWER_LOSS_ZHOME_POS followup 2021-03-01 06:19:38 -06:00
Nick e66e51fa6d Safe Z homing for Power Loss Recovery (#16909) 2021-03-01 04:23:10 -06:00
Ilya 2b9842e094 Default microsteps to axis first stepper (#21230) 2021-03-01 01:33:07 -06:00
Marcio T f52cba6aff Minor FTDI EVE Touch UI fixes (#21232) 2021-02-28 20:52:59 -06:00
Stephan 713de872ce Filament Runout handling for Mixing Extruder (#20327)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-28 20:16:22 -06:00
Scott Lahteine 1aa421efe5 Filament sensor cleanup 2021-02-28 20:02:24 -06:00
Scott Lahteine dd42831cba Serial macros cleanup 2021-02-28 20:02:24 -06:00
thinkyhead f0b662ff58 [cron] Bump distribution date (2021-03-01) 2021-03-01 00:13:41 +00:00
Roman Moravčík e8ca077f30 Update Slovak language (#21224) 2021-02-28 16:12:27 -06:00
Fabio Viappiani 2328f8b9b8 Fix TERN typo (#21229) 2021-02-28 16:09:15 -06:00
Scott Lahteine 680172a084 Tweaks to build scripts 2021-02-27 23:51:56 -06:00
Giuliano Zaro 254b25296b [SAMD51] Respect serial buffer size (#21194) 2021-02-27 22:41:16 -06:00
Scott Lahteine 903d0b91fc Tweaks to build scripts 2021-02-27 22:38:57 -06:00
Scott Lahteine 54ccfcc705 whitespace 2021-02-27 22:34:54 -06:00
ldursw dfacd260bb ST STM32 platform version 12 (#21219) 2021-02-27 22:32:34 -06:00
RudolphRiedel 04b83d50a2 Two additional EVE displays (#18839) 2021-02-27 19:39:32 -06:00
thinkyhead 1236585693 [cron] Bump distribution date (2021-02-28) 2021-02-28 00:13:36 +00:00
Sola c76008bd6a MKS H43 controller (#20609) 2021-02-27 17:35:32 -06:00
LinFor e0aa9ce372 RGB Caselight (#20341) 2021-02-27 16:06:48 -06:00
jbuck2005 ee7701c15b SPEED => FEEDRATE (#21217) 2021-02-27 15:54:43 -06:00
Evgeny Z 6e1c133e33 Apply AUTO_POWER_CONTROL later in setup() (#21193)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-27 13:50:44 -06:00
Kachidoki 969268166e Duplicate fan speed in M106/7 IDEX Duplication Mode (#21208) 2021-02-27 13:45:12 -06:00
Arjan Mels 83a156ef47 Fix M876 when called from EP (#21210) 2021-02-27 13:32:57 -06:00
Giuliano Zaro 6136959a6a [SAMD51] Postmortem Debugging not implemented (#21211) 2021-02-27 13:24:36 -06:00
Giuliano Zaro 4f840c211c [SMUFF] Use EXTRUDERS for extended commands (#21212) 2021-02-27 13:23:00 -06:00
X-Ryl669 db5967472b Fix G-code Queue merge (#21213) 2021-02-27 13:17:21 -06:00
X-Ryl669 e65a84f6ea G-code Queue followup (#21214) 2021-02-27 13:13:04 -06:00
thinkyhead 526924559f [cron] Bump distribution date (2021-02-27) 2021-02-27 00:12:45 +00:00
Alexander D. Kanevskiy 24623d398c Fix preflight complex extend handling (#21191) 2021-02-26 18:03:11 -06:00
X-Ryl669 56462cf082 Make F_CPU a compile-time constant (#21051) 2021-02-26 17:59:28 -06:00
Victor Oliveira f384f81253 Fix GTR / SKR PRO + USB Flash Drive build (#21197) 2021-02-26 17:36:22 -06:00
Victor Oliveira 427b5d61f4 More LERDGE envs followup (#21205) 2021-02-26 17:33:34 -06:00
Fabio Viappiani e27fba0c06 Fix M355 with NEOPIXEL (#21200) 2021-02-26 17:10:50 -06:00
ldursw 7a1ec78563 Init (stow) BLTouch before X/Y homing (#21192) 2021-02-26 17:01:11 -06:00
X-Ryl669 ec42be346d Fix and improve G-code queue (#21122)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-26 16:54:46 -06:00
thinkyhead ccf990a0d7 [cron] Bump distribution date (2021-02-26) 2021-02-26 00:12:56 +00:00
Scott Lahteine fd77251fdd Chamber followup 2021-02-25 10:24:58 -06:00
Vi B-P f7d9305786 Preheat Menu shortcut option (#20350) 2021-02-25 10:23:17 -06:00
swissnorp bcda46e3f3 Combine Z_AFTER_DEACTIVATE with UNKNOWN_Z_NO_RAISE (#20444)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-25 10:09:00 -06:00
Victor Oliveira 7fc75fc482 Zero Endstops followup (#21188) 2021-02-25 09:23:30 -06:00
qwewer0 45fff07a4c Fix LEVEL_CORNERS_USE_PROBE with BLTOUCH_HS_MODE (#21161) 2021-02-25 09:21:17 -06:00
Scott Lahteine 08d54b3d78 Eryone Thinker V2 (#21190)
Co-Authored-By: Bryan Joshua Pedini <b.pedini@bjphoster.com>
2021-02-25 09:16:19 -06:00
Katelyn Schiesser 735c1b6183 PROBING_HEATERS_OFF sub-option WAIT_FOR_HOTEND (#20835) 2021-02-25 08:33:16 -06:00
ellensp bb1039d4c9 Preflight checks for PlatformIO builds (#21068)
Co-authored-by: Alexander D. Kanevskiy <alexander.kanevskiy@intel.com>
2021-02-25 08:15:55 -06:00
Katelyn Schiesser a21d4c06ae Use 'H' value for UBL G29 z-clearance (#21114) 2021-02-25 08:14:24 -06:00
Scott Lahteine 12468f5e9f Tweak case light comment 2021-02-25 05:15:49 -06:00
deirdreobyrne 468e437390 Allow Zero Endstops (e.g., for CNC) (#21120)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-25 04:49:34 -06:00
Tanguy Pruvot d167af4c38 Add BOARD_PREINIT (for Longer3D open drain pins) (#21159) 2021-02-25 04:35:18 -06:00
Scott Lahteine 3061a31c92 Update BLTOUCH_HS_MODE comment 2021-02-25 01:56:47 -06:00
Nick 73e354b7a0 Fix Anycubic Chiron TFT SD menu (#21183) 2021-02-25 01:38:01 -06:00
X-Ryl669 0cc03f912c Let libmaple accept RX/TX_BUFFER_SIZE (#21177) 2021-02-25 01:26:56 -06:00
X-Ryl669 f003e52009 Combined LPC / Serial fixes (#21178)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-25 01:23:29 -06:00
Scott Lahteine 13c4eef637 Expose more env builds in PlatformIO extension 2021-02-25 00:56:15 -06:00
Victor Oliveira d5b06624fb Fix MKS Robin Nano V3 I2C pins (#21174) 2021-02-24 18:36:55 -06:00
Ken Sanislo a3a10b62f2 Chamber Heater PID (#21156)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-24 18:26:51 -06:00
thinkyhead 03160719eb [cron] Bump distribution date (2021-02-25) 2021-02-25 00:12:36 +00:00
Nick b276a7fd17 Fix Chiron TFT serial comms (#21152) 2021-02-23 20:13:24 -06:00
thinkyhead 37e2250992 [cron] Bump distribution date (2021-02-24) 2021-02-24 00:12:40 +00:00
Scott Lahteine bdb8c07bb2 Outdent UBL code 2021-02-23 16:09:54 -06:00
Scott Lahteine 27f9437d31 G92, subcodes flag cleanup 2021-02-23 16:08:00 -06:00
Marcio T ba301fd800 FTDI Touch UI followup (#21167) 2021-02-23 16:03:40 -06:00
thinkyhead 53d7ae4e9b [cron] Bump distribution date (2021-02-23) 2021-02-23 00:12:43 +00:00
thinkyhead 7a027be255 [cron] Bump distribution date (2021-02-22) 2021-02-22 00:12:47 +00:00
Marcio T ece06c26a9 Enhance and fix FTDI Touch UI (#21148) 2021-02-21 04:05:59 -06:00
X-Ryl669 8d28853774 Postmortem Debugging to serial port (#20492) 2021-02-20 20:22:20 -06:00
kpishere fb8b421aac Fix SPI on SMART RAMPS with mega2560 (#21128) 2021-02-20 20:20:55 -06:00
ellensp b3ecede429 Fix G29 missing defines (#21145)
Co-authored-by: ellensp <ellensp@hotmsil.com>
2021-02-20 20:14:47 -06:00
thinkyhead b8d7925d0d [cron] Bump distribution date (2021-02-21) 2021-02-21 00:13:04 +00:00
thinkyhead 95e0ed2826 [cron] Bump distribution date (2021-02-20) 2021-02-20 00:12:21 +00:00
thinkyhead 11e11b8767 [cron] Bump distribution date (2021-02-19) 2021-02-19 00:12:24 +00:00
espr14 a4c73860a1 Fix cleaning_buffer_counter check (#21115) 2021-02-17 23:22:29 -06:00
thinkyhead 241297b6d6 [cron] Bump distribution date (2021-02-18) 2021-02-18 00:12:54 +00:00
Scott Lahteine 65e24f812f Fixes for MP_SCARA (#21113)
Co-Authored-By: svsergo <52426708+svsergo@users.noreply.github.com>
2021-02-17 17:04:51 -06:00
Vert fd455be55c YHCB2004 followup (#21111) 2021-02-16 21:23:54 -06:00
Scott Lahteine 7e172bf456 Fix IDEX broken endstop test (#21110) 2021-02-16 21:13:53 -06:00
jbuck2005 a211dc03b3 Note FAN2_PIN silkscreen label (#21087) 2021-02-16 20:30:54 -06:00
Vert 490d4a504a GT2560 v4.1B, YHCB2004 SPI character LCD (#21091)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-02-16 20:29:55 -06:00
ellensp c076a7f7a2 Swap Trigorilla Pro Z_MIN / MAX endstop pins (#21095) 2021-02-16 20:28:03 -06:00
X-Ryl669 7b23f41fd4 Fix/improve configs build script (#21086) 2021-02-16 18:41:00 -06:00
thinkyhead f2b9becd7e [cron] Bump distribution date (2021-02-17) 2021-02-17 00:12:26 +00:00
Allen Bauer f298cde47e BTT002 pins for FYSETC mini12864 (#21096) 2021-02-16 17:35:31 -06:00
ellensp 28fa18874b Fix "BUTTON_CLICK redefined" warning (#21098) 2021-02-16 16:59:38 -06:00
thinkyhead e699f9cbf6 [cron] Bump distribution date (2021-02-16) 2021-02-16 00:12:28 +00:00
jbuck2005 31a434b9d7 Update platform ststm32 to 11.0 (#20928) 2021-02-15 06:03:44 -06:00
X-Ryl669 d86910ce94 Script to download & build Configurations (#20992)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-15 05:48:11 -06:00
ellensp 79ee2fa20a EXP headers for RAMPS 1.x (#21054)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-15 05:15:08 -06:00
Giuliano Zaro 9e0fc44210 Fix MMU2 compile error (#21065) 2021-02-15 04:45:38 -06:00
ellensp 35e9c131d6 Fix remaining time divide-by-zero (#21080) 2021-02-15 04:42:33 -06:00
Steven Haigh e27a2a96a0 E3V2 Status Area followup (#21072) 2021-02-14 18:21:47 -06:00
thinkyhead 29fa369f71 [cron] Bump distribution date (2021-02-15) 2021-02-15 00:12:40 +00:00
InsanityAutomation db82a25177 E3V2 DWIN live movement (#21035) 2021-02-14 16:45:36 -06:00
InsanityAutomation b2f77bb050 Use configuration website, fix edit color 2021-02-14 16:42:56 -06:00
Scott Lahteine d9e79fd728 Fix a board comment 2021-02-14 16:27:21 -06:00
Scott Lahteine 52e8d8db54 anet_et4_openblt.py => openblt.py 2021-02-13 22:05:35 -06:00
Scott Lahteine cbf325a6b8 Coolant Control sanity-checks 2021-02-13 22:05:25 -06:00
Giuliano Zaro 8fd88eee2b Don't create unused Serial Port instances (#21066)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-13 21:04:22 -06:00
Scott Lahteine 98a27bff0d Allow mftest -t to select by number 2021-02-13 19:06:55 -06:00
Scott Lahteine 00985cffea Update helpful links 2021-02-13 19:05:53 -06:00
thinkyhead 0fe1051101 [cron] Bump distribution date (2021-02-14) 2021-02-14 00:12:44 +00:00
Scott Lahteine fd2477923c Minor serial code cleanup 2021-02-12 19:33:19 -06:00
thinkyhead d4fb372899 [cron] Bump distribution date (2021-02-13) 2021-02-13 00:12:10 +00:00
X-Ryl669 ce1ec22704 Use -g3 to include macros in debug symbols (#21052) 2021-02-12 08:33:27 -06:00
X-Ryl669 03789c4d97 Improve Delay test report (#21047) 2021-02-12 07:49:07 -06:00
kpishere e0ca244623 Fix AZSMZ_12864 on SMART RAMPS (#21056) 2021-02-12 05:00:41 -06:00
Jyers 3c41f108df Improved Ender 3 V2 display status area (#20983)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-02-12 04:55:06 -06:00
kpishere 7069d03ab2 Support SMART RAMPS 1.4 with Mega2560 (#21059) 2021-02-12 04:42:31 -06:00
Scott Lahteine 01215f5015 Ender 3 V2 DWIN cleanup (#21061) 2021-02-12 03:52:21 -06:00
Michael Telatynski 42d00b13df Improve probe preheat behavior (#21033)
Co-authored-by: InsanityAutomation <d.menzel@insanityautomation.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-02-11 18:32:31 -06:00
thinkyhead 1f21a499d4 [cron] Bump distribution date (2021-02-12) 2021-02-12 00:12:23 +00:00
thinkyhead 274c729fd3 [cron] Bump distribution date (2021-02-11) 2021-02-11 00:12:23 +00:00
Scott Lahteine 9d24ee8daf chmod and paths 2021-02-10 02:57:27 -06:00
thinkyhead dd5e0f724a [cron] Bump distribution date (2021-02-10) 2021-02-10 00:12:10 +00:00
Scott Lahteine 653d73ff07 Reheat bed first 2021-02-08 21:55:48 -06:00
Scott Lahteine 662d81c801 Ender 3 V2 DWIN cleanup (#21026) 2021-02-08 21:27:00 -06:00
Scott Lahteine 187602dfaf Update M808 comment 2021-02-08 20:25:08 -06:00
JoAnn Manges 8707ae23e2 MAX Thermocouples rework (#20447)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-02-08 19:51:57 -06:00
thinkyhead 0127763ade [cron] Bump distribution date (2021-02-09) 2021-02-09 00:12:14 +00:00
X-Ryl669 e7c711996b Serial refactor. Default 8-bit ECHO to int, not char (#20985)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-08 00:37:24 -06:00
Arjan Mels 1e726fe405 Fix STM32F1 emergency parser (#21011) 2021-02-07 22:47:08 -06:00
Alexander D. Kanevskiy 24e18a9fbd Allow SERVO0_PIN override on Creality Melzi (#21007) 2021-02-07 22:44:49 -06:00
Scott Lahteine 5f824c5708 Fix animated boot screen 2021-02-07 21:51:32 -06:00
MKS-Sean 57e4b82b66 Fix: Unsupported use of %f in printf (#21001) 2021-02-07 20:36:57 -06:00
ellensp 6dcb77f7b5 Fix mini12864 v2.1 + PSU control + NeoPixel backlight (#21021) 2021-02-07 20:36:04 -06:00
thinkyhead 42761acf4f [cron] Bump distribution date (2021-02-08) 2021-02-08 00:15:33 +00:00
Malderin 01756b6b02 Fix LVGL "more" menu user items (#21004)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-07 17:45:14 -06:00
Scott Lahteine b35bfeb1c3 Fix TEMP_0_TR_ENABLE, rename temp conditions (#21016) 2021-02-07 16:58:06 -06:00
Simon Jouet af4e8b171c Fix ESP32 I2S init placement (#21019) 2021-02-07 16:56:39 -06:00
Chris Pepper 5233e66762 Improve RPi host kernel panic mitigation
It was still possible to cause a Kernel panic, this additional 500ms delay before disconnect appears to mitigate it completely.
2021-02-07 20:46:24 +00:00
Scott Lahteine 52c246ae19 Melzi, comments cleanup 2021-02-06 18:19:37 -06:00
thinkyhead e34f279295 [cron] Bump distribution date (2021-02-07) 2021-02-07 00:12:48 +00:00
Marcio Teixeira ee66d9ccf9 Refactor FTDI EVE Touch Screen (#20987) 2021-02-06 14:25:10 -06:00
X-Ryl669 1c19af2c8f Fix ARM delay function (#20901) 2021-02-05 22:43:51 -06:00
Scott Lahteine 10aaab6350 Use 'false' 2021-02-05 18:48:11 -06:00
thinkyhead 62f060a389 [cron] Bump distribution date (2021-02-06) 2021-02-06 00:12:05 +00:00
Chris Pepper 004bed8a7f Mitigate RPi hosts kernel panic on M997
Work around M997 sometimes causing a kernel panic on the host when sent from a Raspbery Pi, the root cause is currently unknown.
2021-02-05 22:43:36 +00:00
ellensp a971233068 Fix MKS SGen-L DOGLCD_MOSI pin for FYSETC_MINI_12864 LCD (#20998) 2021-02-05 07:07:10 -06:00
Zs.Antal 67ae845b3c Update Hungarian language (#20996) 2021-02-05 06:28:30 -06:00
Scott Lahteine 708ea3d0bb Use serial shorthand 2021-02-04 23:34:09 -06:00
Scott Lahteine 49564e5310 Nybbles & Bits 2021-02-04 19:38:07 -06:00
Scott Lahteine 604afd52d1 Fix some serial char, echo
Co-Authored-By: X-Ryl669 <3277165+X-Ryl669@users.noreply.github.com>
2021-02-04 19:20:28 -06:00
thinkyhead 6dac71e618 [cron] Bump distribution date (2021-02-05) 2021-02-05 00:12:11 +00:00
Victor Oliveira d58bbd5da1 Re-calibrate touch after EEPROM reset, if needed (#20934) 2021-02-04 15:31:46 -06:00
thinkyhead 68299c6a5e [cron] Bump distribution date (2021-02-04) 2021-02-04 00:11:57 +00:00
thinkyhead d079634c5e [cron] Bump distribution date (2021-02-03) 2021-02-03 00:13:01 +00:00
Malderin 9025c63c43 Add "more" menu in LVGL interface (#20940)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-02-02 16:04:23 -06:00
Scott Lahteine c6ef86029c Evaluate ANY_SERIAL_IS in place 2021-02-02 16:00:11 -06:00
ellensp e3deb6e9a5 Note (MarlinUI) limit on PREHEAT settings (#20966)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-02-02 15:00:41 -06:00
Giuliano Zaro 6eec242a07 Update a UBL comment (#20931) 2021-02-02 14:57:30 -06:00
Victor Oliveira 28b8bf566b STM32 Shared Media - USB Mass Storage Device (#20956) 2021-02-02 14:55:11 -06:00
Tanguy Pruvot 0ce3f6efe0 Multi-language pertains to Color UI (#20972) 2021-02-02 14:33:07 -06:00
Victor Oliveira 617f5dfe5e Touch Calibration Screen auto-save option (#20971) 2021-02-02 14:31:51 -06:00
Victor Oliveira 1f12273de1 Include ui_common for MARLIN_LOGO_FULL_SIZE (#20963) 2021-02-02 14:31:01 -06:00
ellensp 65483dcc95 Fix host_response_handler compile (#20962) 2021-02-02 14:30:19 -06:00
thinkyhead 32d859eede [cron] Bump distribution date (2021-02-02) 2021-02-02 00:17:47 +00:00
X-Ryl669 c74f972627 LVGL UI G-code console (#20755) 2021-01-31 18:18:39 -06:00
thinkyhead 33c78d2bb2 [cron] Bump distribution date (2021-02-01) 2021-02-01 00:17:15 +00:00
Tanguy Pruvot 7626ef57b9 Refresh screen on M22 (detach) (#20958) 2021-01-31 18:15:14 -06:00
X-Ryl669 07b4cc145b Fix AutoReporter implementation (#20959) 2021-01-31 18:11:50 -06:00
X-Ryl669 27366197f3 Serial refactor followup (#20932) 2021-01-31 17:21:27 -06:00
zeleps d49969ddf3 Init serial ports first (#20944) 2021-01-31 16:50:12 -06:00
qwewer0 c91a91008c Remove extra G29 V newlines (#20955) 2021-01-31 16:47:16 -06:00
thinkyhead 92b4c05090 [cron] Bump distribution date (2021-01-31) 2021-01-31 00:16:38 +00:00
ConstantijnCrijnen d45ad8f827 Language selection auto-save option (#20915) 2021-01-30 00:07:35 -06:00
ellensp fa3bd72eea KILL, BEEPER pins for LCD_FOR_MELZI (#20924) 2021-01-29 23:44:32 -06:00
ellensp d3068125c5 Fix G28_STR (#20925) 2021-01-29 23:41:45 -06:00
thinkyhead e269e936e3 [cron] Bump distribution date (2021-01-30) 2021-01-30 00:17:43 +00:00
rafaljot 0d2645b3e1 MPX_ARM_MINI board (Mingda MD-16) (#20711) 2021-01-28 23:22:18 -06:00
Scott Lahteine 9d0e64a725 AutoReport class (Temperature, Cardreader) (#20913) 2021-01-28 20:40:20 -06:00
X-Ryl669 9e004a9496 Optimize serial output code for size (#20911) 2021-01-28 19:59:16 -06:00
George Fu 5ac08a44c6 FYSETC Cheetah 2.0 (#20897) 2021-01-28 19:52:49 -06:00
ellensp c72b1c5893 Fix undefined G28_STR (#20912) 2021-01-28 19:44:52 -06:00
ellensp c65bf64756 Fix LED_CONTROL_MENU compile (#20914) 2021-01-28 19:44:16 -06:00
thinkyhead 7201433060 [cron] Bump distribution date (2021-01-29) 2021-01-29 00:17:07 +00:00
Scott Lahteine 7bbdbcfb6d Serial refactor followup 2021-01-28 02:19:12 -06:00
X-Ryl669 3f01b222b2 Refactor serial class with templates (#20783) 2021-01-28 02:02:06 -06:00
ellensp c929fb52dd Meatpack::report_state on serial port init (#20903)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-01-28 01:47:12 -06:00
ellensp 11b407045a MeatPack followup - unused command (#20893) 2021-01-28 01:46:17 -06:00
thinkyhead 811bb7997c [cron] Bump distribution date (2021-01-28) 2021-01-28 00:17:20 +00:00
Scott Lahteine d932cd9be1 Remove extra cast 2021-01-27 15:23:04 -06:00
Scott Mudge 5e5dfff6fe MeatPack followup (#20896) 2021-01-27 15:18:20 -06:00
ellensp 107f692de8 ZONESTAR_LCD warning for RAMPS / ReARM (#20702) 2021-01-27 15:11:25 -06:00
thinkyhead a1019413f4 [cron] Bump distribution date (2021-01-27) 2021-01-27 00:15:06 +00:00
ConstantijnCrijnen b95f5c5bea Configure / disable PRINTCOUNTER save interval (#20856)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-01-26 02:30:31 -06:00
Scott Lahteine 8c0cb6cce8 Custom G26 FR followup 2021-01-26 02:15:27 -06:00
Scott Lahteine ee93101b24 Custom G26 FR followup 2021-01-25 23:53:39 -06:00
ScrewThisBanana 7f4c5b86db Adding custom move feedrate for G26 Travel moves, Original #20729 (#20879)
* Adding custom move feedrate for G26

This commit adds an additional configuration parameter that can be used to specify the movement speed during the G26 validation pattern command during moves without extrusion.

Closes MarlinFirmware/Marlin#20615
2021-01-25 20:14:26 -07:00
thinkyhead 9bf33e4dcd [cron] Bump distribution date (2021-01-26) 2021-01-26 00:17:22 +00:00
Giuliano Zaro 876c2586b9 Clean up MMU2 code (#20794)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-01-25 08:58:52 -06:00
Rockman18 b9ed139546 Init KILL, SUICIDE, PSU earlier (#20810) 2021-01-25 08:50:39 -06:00
Gabriele Besta 85d61de61c "Move … code" followup (#20869)
Fix regression from #20832
2021-01-25 08:39:24 -06:00
Scott Lahteine b8186b5081 Apply SEC_TO_MS and other fixes 2021-01-25 08:32:58 -06:00
Scott Lahteine fb67b9bdad Reformat abortSDPrinting 2021-01-25 04:57:00 -06:00
Alexander D. Kanevskiy 2c983d6c7a Fix sign warning (#20872) 2021-01-25 01:53:48 -06:00
qwewer0 7c28d6b869 Cosmetic changes (2) (#20876) 2021-01-25 01:52:45 -06:00
ellensp 53035de136 "Move … code" followup (#20868)
Fix regression from #20832
2021-01-25 01:51:54 -06:00
Kairali d7ca3ea27c "Move … code" followup (#20874)
Fix regression from #20832
2021-01-25 01:48:31 -06:00
Tanguy Pruvot c12be1f98c Graphical TFT fixes, cleanup (#20861)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-01-25 01:44:39 -06:00
qwewer0 90be1c3fa7 🧻 Cosmetic changes (#20859) 2021-01-25 01:11:34 -06:00
Scott Lahteine 727bf7dd8c 🛠Fix deps script version regex 2021-01-24 21:20:51 -06:00
Scott Lahteine e9425d711d Fix Ender 3 V2 DWIN manual move (#20837) 2021-01-24 20:13:02 -06:00
thinkyhead 9d42beb2e6 [cron] Bump distribution date (2021-01-25) 2021-01-25 00:43:47 +00:00
Jason Smith ea8d682664 Fix LiquidCrystal CI failures (#20873)
Fix incorrect dependency syntax for LPC.
Disambiguate LiquidCrystal library names.
2021-01-24 13:24:16 -08:00
Roxy-3D 8f7bac4999 Revert "Adding custom move feedrate for G26 (#20729)" (#20870)
This reverts commit 14567f3459.
2021-01-24 07:47:22 -07:00
ellensp 3921369f98 MeatPack serial encoding (#20802)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-01-24 00:43:23 -06:00
thinkyhead a243996aca [cron] Bump distribution date (2021-01-24) 2021-01-24 00:43:17 +00:00
Tanguy Pruvot 0f612d5021 lcd_put_wchar_max for COLOR_UI (#20838)
Co-Authored-By: Victor Oliveira <github@victormo.com.br>
2021-01-22 23:23:35 -06:00
ScrewThisBanana 14567f3459 Adding custom move feedrate for G26 (#20729)
* Adding custom move feedrate for G26

This commit adds an additional configuration parameter that can be used to specify the movement speed during the G26 validation pattern command during moves without extrusion.

Closes MarlinFirmware/Marlin#20615

* Fixing missing default 'G26_XY_FEEDRATE_MOVE' value

This commit adds a default 'G26_XY_FEEDRATE_MOVE' value (max movement speed / 1.5) in the G26.cpp - same behaviour as the default 'G26_XY_FEEDRATE' value

* Adding comment describing functionality in G26.cpp

* Renaming 'G26_XY_FEEDRATE_MOVE' to 'G26_XY_FEEDRATE_TRAVEL'

Configuration parameter renamed for better readability and consistency

MarlinFirmware/Marlin#20615

* Setting 'G26_XY_FEEDRATE_TRAVEL' to a safer value, aligned comments

Changed default value for 'G26_XY_FEEDRATE_TRAVEL' from 150 mm/s to 100 mm/s for safety purposes, comment alignment

MarlinFirmware/Marlin#20615
2021-01-22 20:02:22 -07:00
Scott Lahteine a54154e760 🛠 Replace lib_deps for custom_marlin.FEATURE (#20858) 2021-01-22 20:51:58 -06:00
thinkyhead ac10fdc50f [cron] Bump distribution date (2021-01-23) 2021-01-23 00:44:51 +00:00
Giuliano Zaro 90c0194598 "Move … code" followup (#20852)
Fix regression from #20832
2021-01-22 15:58:08 -06:00
Scott Lahteine 09d07f76b3 Add labels, condition for BTT GTR M5 pins (#20772)
Co-Authored-By: NAPCAL <47440988+NAPCAL@users.noreply.github.com>
2021-01-22 15:15:45 -06:00
Scott Lahteine d33fe2378c Move common strings (#20846) 2021-01-22 15:01:19 -06:00
thinkyhead 7b9f7d8aba [cron] Bump distribution date (2021-01-22) 2021-01-22 00:44:13 +00:00
Scott Lahteine 0681b8096c Fix undefined E_LBL 2021-01-21 17:32:12 -06:00
Jason Smith d879853e8f Ender 3 V2: Sync reset E in manual move (#20806) 2021-01-21 04:14:24 -06:00
Jason Smith 0a279cf666 Fix ANYCUBIC_LCD_CHIRON compilation (#20807)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-01-21 03:44:03 -06:00
Scott Lahteine c0870d417a Move some MarlinCore and MarlinUI code (#20832) 2021-01-21 03:40:07 -06:00
Katelyn Schiesser ac82dc418a Increase filament runout distance edit limit (#20828) 2021-01-21 03:30:15 -06:00
Keith Bennett 144272e735 USB Flash Drive env hints for ABM (#20592) 2021-01-21 01:28:38 -06:00
Keith Bennett d62aa6221b Lerdge K/S/X support for Flash Drive (#20593) 2021-01-21 01:26:12 -06:00
Scott Lahteine 68abaeab19 MarlinUI multi-language support (#20725) 2021-01-20 18:52:06 -06:00
Scott Lahteine 00bc094914 Keep G29 N on the DL 2021-01-20 18:51:00 -06:00
thinkyhead 84a47a6691 [cron] Bump distribution date (2021-01-21) 2021-01-21 00:46:33 +00:00
ellensp 03b53ffde1 More PlatformIO source filters (#20822) 2021-01-20 18:18:22 -06:00
Tanguy Pruvot ef14b18f8e PSTR alias followup (#20831) 2021-01-20 16:52:09 -06:00
Scott Lahteine 3f90ecfd77 Move singlenozzle temp/fan (#20829) 2021-01-19 20:58:50 -06:00
devin122 a275e4e5b8 Fix reporting of TMC_S2VSA/B (#20730) 2021-01-19 20:57:12 -06:00
ellensp fd45854000 USE_M73_REMAINING_TIME sanity-check (#20751) 2021-01-19 20:55:57 -06:00
Giuliano Zaro a10626705d MMU2 serial followup (#20811) 2021-01-19 20:55:01 -06:00
Scott Lahteine 0cbc44d8bf Fix SINGLENOZZLE compile 2021-01-19 19:19:35 -06:00
thinkyhead 5c93b49a6f [cron] Bump distribution date (2021-01-20) 2021-01-20 00:47:05 +00:00
EmilGustafsson df238fe6a0 Swedish language for MarlinUI (#20826) 2021-01-19 16:52:04 -06:00
Rockman18 f1d4713097 Fix MKS UI manual move (#20813) 2021-01-19 16:27:57 -06:00
Rockman18 d0f953218f Fix, consolidate PSTR aliases (#20812)
Co-authored-by: Jason Smith <jason.inet@gmail.com>
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-01-19 16:26:25 -06:00
Katelyn Schiesser fda9fb563b Raise Z on exit from 'Level Bed Corners' (#20817) 2021-01-18 21:59:18 -06:00
Scott Lahteine 49b5e1d9bf Clean up whitespace, headings 2021-01-18 21:54:23 -06:00
thinkyhead eb84acaf5b [cron] Bump distribution date (2021-01-19) 2021-01-19 00:45:26 +00:00
thinkyhead e9364c7cba [cron] Bump distribution date (2021-01-18) 2021-01-18 00:41:57 +00:00
Scott Lahteine 08f392cdd3 OS-native targets for "mftest -a" 2021-01-17 15:45:04 -06:00
Scott Lahteine bb597dcf66 Internal G29N for G28+G29 (#20800) 2021-01-17 12:08:40 -06:00
George Fu fec58157ac FYSETC_242 OLED 12864 for S6 (#20767) 2021-01-17 00:46:57 -06:00
Scott Lahteine 6be8ffb771 Reduce some G-code strings 2021-01-16 23:18:02 -06:00
zeleps 1b19eed195 Fix Tramming Wizard behavior (#20796) 2021-01-16 23:08:48 -06:00
Scott Lahteine fb41413b76 Optimize some G-code strings 2021-01-16 22:53:50 -06:00
Scott Lahteine 40c8f2001d Apply bool to some MKS UI 2021-01-16 22:53:50 -06:00
Scott Lahteine b41f41589a General cleanup, use _BV 2021-01-16 22:53:50 -06:00
ellensp 69a6d26c80 Fix Trigorilla Pro STOP pins (#20801) 2021-01-16 22:34:54 -06:00
Alexander D. Kanevskiy 0fef29b6e3 NEOPIXEL overridable on BTT SKR (#20797) 2021-01-16 19:51:08 -06:00
Martin f7e2467da1 4 / 5 digits for some edit items (#20793) 2021-01-16 19:49:34 -06:00
Giuliano Zaro dc44edc1b8 Update Italian language (#20789) 2021-01-16 19:20:35 -06:00
thinkyhead ca53d88284 [cron] Bump distribution date (2021-01-17) 2021-01-17 00:42:42 +00:00
ellensp 5e46f63e17 Fix Ender-3 V2 DWIN LPC signed warnings (#20786) 2021-01-16 00:50:25 -06:00
RFBomb 43a91e5963 Configurable Corner Leveling point order (#20733) 2021-01-16 00:43:38 -06:00
Giuliano Zaro 1d5862a39b MMU2 as standard serial device (#20771) 2021-01-15 20:38:34 -06:00
thinkyhead 7c786506e1 [cron] Bump distribution date (2021-01-16) 2021-01-16 00:45:54 +00:00
Marcio Teixeira d03c3980de Improve filament runout handling in FTDI EVE Touch UI
- On filament runout, take the user to the tune menu where they can initiate a filament change or resume the print.
2021-01-15 17:44:16 -06:00
Marcio T 9bbe9455cf Fix compatibility macros 2021-01-15 17:44:16 -06:00
Marcio Teixeira 6376b683c7 Silence unused parameter warnings 2021-01-15 17:44:16 -06:00
Jelmer van der Stel 9dba7cd371 Fix Ender 3 V2 encoder (#20784) 2021-01-15 17:23:04 -06:00
thinkyhead 49e252df03 [cron] Bump distribution date (2021-01-15) 2021-01-15 00:42:52 +00:00
EvilGremlin 8049db20ff ESP32 Tone Generator (#20704) 2021-01-14 02:33:50 -06:00
vitaliy172 ecf5f5d21d Update Ukrainian language (#20668) 2021-01-14 02:21:28 -06:00
Scott Lahteine 12a39450b0 MKS prelim. cleanup (2) 2021-01-14 00:56:35 -06:00
Scott Lahteine c753fc690f More MKS UI prelim. cleanup 2021-01-14 00:27:10 -06:00
MKS-Sean 35c1b330ec MKS WiFi for TFT_LVGL_UI (#20191) 2021-01-13 22:41:09 -06:00
thinkyhead a88ae2080c [cron] Bump distribution date (2021-01-14) 2021-01-14 00:47:36 +00:00
Scott Lahteine e8aa6ab735 Ignore M22 during SD print 2021-01-12 22:33:03 -06:00
Scott Lahteine f2726399dd Move WRITE_FAN 2021-01-12 22:33:03 -06:00
Scott Lahteine d47e694048 whitespace 2021-01-12 22:33:03 -06:00
Scott Lahteine 44c57ab05a MKS UI prelim. cleanup (#20763) 2021-01-12 21:02:35 -06:00
Scott Lahteine 4a89731025 Rotary encoder cleanup (#20753) 2021-01-12 20:43:52 -06:00
Giuliano Zaro 2b928b4754 Fix comments (#20759) 2021-01-12 19:38:51 -06:00
thinkyhead 923ca6f104 [cron] Bump distribution date (2021-01-13) 2021-01-13 00:40:12 +00:00
Scott Lahteine 4472ba2b6b Ok to use C++11 'auto' 2021-01-12 18:08:24 -06:00
Johan van der Vyver 7f3dcb3e8a Multi-platform DWIN_CREALITY_LCD support (#20738)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-01-12 18:05:49 -06:00
thinkyhead a26f2fb00b [cron] Bump distribution date (2021-01-12) 2021-01-12 00:33:31 +00:00
devin122 8ff87c120a Fix TMC220x short circuit (#20731) 2021-01-11 01:46:17 -06:00
Serhiy-K 4327b5c1b0 Fixes for TFTGLCD (#20734) 2021-01-10 23:59:42 -06:00
Victor Oliveira d6de6de1bb NO_SD_DETECT option (#20741) 2021-01-10 21:55:16 -06:00
Scott Lahteine 9eecb2f542 Fix joystick include 2021-01-10 21:49:35 -06:00
Scott Lahteine 54debf855c Tweak STM32F1 pin r/w/t 2021-01-10 21:38:31 -06:00
Scott Lahteine acda53aa1c Clean up some includes 2021-01-10 21:38:31 -06:00
Scott Lahteine 71921bc9b2 Update Slovak glyphs 2021-01-10 21:38:31 -06:00
thinkyhead bc5c52dc95 [cron] Bump distribution date (2021-01-11) 2021-01-11 00:30:23 +00:00
Mike La Spina cf1f8aff77 Laser Test Fire (#20452) 2021-01-10 06:01:25 -06:00
Anthony Rich d78f2926ec Wanhao One+ SD detect pin (#20724) 2021-01-10 05:50:09 -06:00
thinkyhead 46916d322e [cron] Bump distribution date (2021-01-10) 2021-01-10 00:30:52 +00:00
Scott Lahteine 299f849ffa Optimize some G76 strings 2021-01-09 00:09:03 -06:00
Dmitry Katsubo bbf06152da Fix misc. warnings (#20715) 2021-01-08 18:55:36 -06:00
Scott Lahteine 8ffae97128 Fix Python 2.7 compatibility
Fix regression from #20692
2021-01-08 18:51:54 -06:00
Markus d4ac8bc67b Up to 6 Tramming points (#20720) 2021-01-08 18:42:08 -06:00
thinkyhead 8e1637a2cc [cron] Bump distribution date (2021-01-09) 2021-01-09 00:29:33 +00:00
thinkyhead 4e8d92bece [cron] Bump distribution date (2021-01-08) 2021-01-08 00:29:39 +00:00
qwewer0 4eedeabb51 Fix M48 output (#20713) 2021-01-07 17:55:57 -06:00
TheCodeExorcist 3009707723 Improved MKS Robin support (#19333) 2021-01-06 21:13:15 -06:00
Java 8edcf03715 Preheat before Power Loss Recovery homing (#20697) 2021-01-06 20:57:11 -06:00
thinkyhead abea8ff8f4 [cron] Bump distribution date (2021-01-07) 2021-01-07 00:30:20 +00:00
Scott Lahteine 3dd1fe4211 Custom build_flags by feature (#20692) 2021-01-05 21:03:13 -06:00
thinkyhead d2969d2326 [cron] Bump distribution date (2021-01-06) 2021-01-06 00:27:10 +00:00
wilbur4321 e3831c146d Multi-Z stepper inverting (#20678)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-01-05 17:03:45 -06:00
ellensp 218de578e0 Fix Azteeg X3 macro typo (#20681) 2021-01-05 06:23:56 -06:00
ellensp 87fbda8344 Define SANGUINOLOLU 1.1 enable pins (#20682) 2021-01-05 06:22:51 -06:00
ellensp e9ab6c10cf No BTN_ENC_EN on Anet 10 (#20684) 2021-01-05 06:21:08 -06:00
Giuliano Zaro 1eb592550c Temperature report followup (#20687)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-01-05 06:18:09 -06:00
FanDjango dc3cfd0d9d Adjustable precision in M105 temperature report (#20602)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-01-04 23:57:58 -06:00
zeleps 2f17f2207a Don't apply hotend_offset.z to Z soft endstops (#20675)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-01-04 23:48:42 -06:00
Scott Lahteine d2e1e9a0ac Indent tool_change_prime 2021-01-04 23:36:12 -06:00
Scott Lahteine c0a3931595 Clarify solenoid active / magnet-on state 2021-01-04 23:09:35 -06:00
FanDjango 55d1938977 Defer "quiet probing" till the last Z bump (#20610) 2021-01-04 20:32:52 -06:00
Scott Lahteine 3a99d001ff Solenoid cleanups
Followups to #20473 ahead of #20675
2021-01-04 19:01:45 -06:00
thinkyhead 7033003c36 [cron] Bump distribution date (2021-01-05) 2021-01-05 00:26:38 +00:00
Scott Lahteine 21c7e699f1 Remove untranslated strings 2021-01-04 18:18:45 -06:00
Scott Lahteine 208200a3cc G34/M422 cleanup 2021-01-04 17:52:00 -06:00
Scott Lahteine ba2cadb479 Move duplication_e_mask 2021-01-03 22:23:13 -06:00
Scott Lahteine ca47dffa35 Fix delayed_move_time elapsed test 2021-01-03 22:22:21 -06:00
InsanityAutomation 548d5603ea Fix IDEX reboot on travel after G28 X (#20654) 2021-01-03 22:07:29 -06:00
InsanityAutomation 6b458676b1 Fix SD SPI Speed override, FTDI mesh edit (#20657)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2021-01-03 21:59:48 -06:00
Scott Lahteine 63448f3244 Rename FTDI EVE screen data structs 2021-01-03 21:52:05 -06:00
Marcio T 2d88bcb67e Fix thermal error protection, reporting (#20655) 2021-01-03 21:39:15 -06:00
thinkyhead effc37362a [cron] Bump distribution date (2021-01-04) 2021-01-04 00:26:24 +00:00
Giuliano Zaro 3ba80d11eb Update Italian language (#20663) 2021-01-03 17:43:31 -06:00
Scott Lahteine edea49f9a9 Creality 4.2.10 board (#20647) 2021-01-03 07:16:50 -06:00
Scott Lahteine 1d63fe6542 Add ALL_AXES manual move for UBL mesh editing
Co-Authored-By: Jason Smith <20053467+sjasonsmith@users.noreply.github.com>

#20620
2021-01-02 19:01:09 -06:00
Scott Lahteine 87d32647f1 Animated boot followup 2021-01-02 18:41:16 -06:00
ellensp 56a5d0b287 Homing code followup (#20632)
Patching a87e5197cf
2021-01-02 18:37:47 -06:00
thinkyhead f86765a760 [cron] Bump distribution date (2021-01-03) 2021-01-03 00:25:06 +00:00
Scott Lahteine 3efbd45443 Improved bootscreen animation 2021-01-02 16:02:52 -06:00
Scott Lahteine a87e5197cf Document, adjust some homing code 2021-01-02 03:41:06 -06:00
qwewer0 5b33afb1dd Fix a comment (#20629) 2021-01-02 02:53:34 -06:00
ellensp b0585e13d8 Check for misplaced configs on build (#20599)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-01-02 02:51:35 -06:00
qwewer0 e685950d97 Assisted Tramming improvements (#20298) 2021-01-02 02:33:31 -06:00
ellensp 5eaa10e2ad Fix //action prefix (#20600) 2021-01-02 02:06:50 -06:00
Jason Smith 9f53738339 Fix UBL mesh edit delta moves (#20620)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-01-01 20:08:10 -06:00
thinkyhead b9d9e74f2c [cron] Bump distribution date (2021-01-02) 2021-01-02 00:23:53 +00:00
Jason Smith 4402a0578a Fix CHAMBER_FAN_MODE 0 build (#20621) 2021-01-01 14:56:59 -06:00
zeleps 815c636449 Fix PARKING_EXTRUDER homing with solenoid (#20473) 2021-01-01 14:54:44 -06:00
Victor Oliveira c840bbc970 Prefix SD SPI pins (SCK, MISO, MOSI, SS) (#20606)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2021-01-01 14:31:15 -06:00
thinkyhead b530db948e [cron] Bump distribution date (2021-01-01) 2021-01-01 00:24:38 +00:00
Scott Lahteine a9d18f0f57 SPI and pins cleanup 2020-12-30 22:00:36 -06:00
thinkyhead 811b5f8bc3 [cron] Bump distribution date (2020-12-31) 2020-12-31 00:25:38 +00:00
thinkyhead 4ad633bae2 [cron] Bump distribution date (2020-12-30) 2020-12-30 00:23:46 +00:00
Victor Oliveira 41e4124af9 Support 4.3" (480x272) Color UI display (#20334) 2020-12-28 23:26:35 -06:00
Victor Oliveira 84ab088b40 USB FD via native USB Host + MSC (#20571) 2020-12-28 23:16:38 -06:00
Scott Lahteine d6a56b882f Pins, comment cleanup 2020-12-28 23:11:55 -06:00
Tanguy Pruvot 624bf10ab5 Clarify sanity-check for custom status bitmap (#20588) 2020-12-28 22:13:56 -06:00
Victor Oliveira 90a2b482e6 LVGL G-code preview. Legacy MKS WiFi Cura plugin compatibility (#20589) 2020-12-28 22:07:11 -06:00
Keith Bennett aff4fccfc3 Apply SHOW_BOOTSCREEN to TFT_COLOR_UI (#20586) 2020-12-28 21:56:37 -06:00
thinkyhead aa4119a849 [cron] Bump distribution date (2020-12-29) 2020-12-29 00:22:23 +00:00
Scott Lahteine a8c361c93b Menu item index followup 2020-12-27 23:49:15 -06:00
Victor Oliveira a3fac744c7 Fix Change Filament menu actions (#20565)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-12-27 23:39:52 -06:00
Victor Oliveira 9eaa69874a Fix LVGL_UI G-code preview (#20564) 2020-12-27 23:15:01 -06:00
Victor Oliveira 28a3d95cda Use ADC_RESOLUTION 12 for all STM32 (#20562) 2020-12-27 23:14:08 -06:00
Victor Oliveira 185e31d322 Fix Menu Mixer for Color UI (#20566) 2020-12-27 23:11:36 -06:00
Victor Oliveira 2ce9fa4b9c Better defaults, compatibility for SDIO + STM32 (#20570) 2020-12-27 23:08:06 -06:00
Keith Bennett cfcfc8047a Small / Large Boot Screen option for TFT_COLOR_UI (#20578) 2020-12-27 21:10:53 -06:00
Scott Lahteine 91c350e793 Remove URL scheme 2020-12-27 21:00:07 -06:00
Scott Lahteine 84a1fff302 Allow define HOMING_FEEDRATE_(XY|Z) 2020-12-27 20:50:38 -06:00
Scott Lahteine e83b7edefc General cleanup 2020-12-27 20:50:38 -06:00
Jason Smith 81d7bd8f41 Validate defined probe points (#20572) 2020-12-27 20:49:15 -06:00
thinkyhead 31af49e507 [cron] Bump distribution date (2020-12-28) 2020-12-28 00:21:01 +00:00
Scott Lahteine 45996fd20a Init tare pin once 2020-12-27 16:36:35 -06:00
Scott Lahteine f423edd938 Add probe_switch_activated 2020-12-27 16:36:35 -06:00
Scott Lahteine d00c89946d Remove CREALITY_TOUCH 2020-12-27 16:29:50 -06:00
Scott Lahteine 198b3ae0f8 Fix some comments 2020-12-27 16:27:15 -06:00
Ashammaru 719404803b Fix SPINDLE_LASER_FREQUENCY (#20509) 2020-12-26 19:01:54 -06:00
thinkyhead 331ca6a800 [cron] Bump distribution date (2020-12-27) 2020-12-27 00:20:30 +00:00
thinkyhead e2480d40d1 [cron] Bump distribution date (2020-12-26) 2020-12-26 00:19:22 +00:00
thinkyhead 4b860f1092 [cron] Bump distribution date (2020-12-25) 2020-12-25 00:21:08 +00:00
Mike La Spina 1fc0dcdc97 Cutter Power in percent format (#20410)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Jason Smith <jason.inet@gmail.com>
Co-authored-by: Luu Lac <45380455+shitcreek@users.noreply.github.com>
2020-12-23 22:50:24 -06:00
Vi B-P 820cc69d0a Apply NO_MOTION_BEFORE_HOMING to joystick motion (#20462)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-12-23 22:43:33 -06:00
Scott Lahteine 20073246bb Fix, clean up FTDI EVE Touch UI (#20466)
Co-Authored-By: Marcio T. <mlt4356-github@yahoo.com>
2020-12-23 22:23:45 -06:00
Jason Smith 57e94fb838 Fix ST7920 timing for Rumba32, Fysetc S6 (#20556) 2020-12-23 21:35:21 -06:00
Victor Oliveira e6c15eee45 Fix DOGM status message scrolling (#20557) 2020-12-23 21:34:09 -06:00
Scott Lahteine f0c29afe21 Add "End Repeat Loops" menu item 2020-12-23 20:24:34 -06:00
Victor Oliveira 4d6b6bcffc LVGL and Classic UI for STM32 (#20552) 2020-12-23 20:01:21 -06:00
Scott Lahteine f8c6de0cdc Move BTT_SKR_CR6 2020-12-23 19:57:49 -06:00
thinkyhead 9a60f7a793 [cron] Bump distribution date (2020-12-24) 2020-12-24 00:23:59 +00:00
ubik2 844a8c7074 Add OPTIMIZED_MESH_STORAGE option (for UBL) (#20371)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-12-23 18:19:48 -06:00
LinFor 2d88a2cfb7 Remaining Time for FTDI EVE, bp for ExtUI (#20549)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-12-23 16:37:17 -06:00
Scott Lahteine 59de35e749 Apply ENABLED in ExiUI / FTDI 2020-12-23 15:34:04 -06:00
Darren Peter 2844086772 Support ANET_FULL_GRAPHICS_LCD_ALT_WIRING on BTT SKR 1.4 (#20427) 2020-12-23 01:21:02 -06:00
Sebastiaan Dammann 2be027f92e Probe Activation Switch followup (#20550) 2020-12-23 01:02:27 -06:00
BsCmOD 34d9cb6778 Enhanced Italian language (#20551) 2020-12-23 01:01:18 -06:00
LinFor 6af6a35d9d FTDI EVE: Cyrillic font, some minor fixes (#20517) 2020-12-23 00:51:59 -06:00
yysh12 6ec4e744c0 Improve plan_arc circle detection (#20440)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-12-23 00:12:20 -06:00
wmariz c87c354403 Refactor 'Level Corners with Probe' (#20460)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-12-23 00:10:56 -06:00
thinkyhead 56fac55a39 [cron] Bump distribution date (2020-12-23) 2020-12-23 00:20:43 +00:00
Jan Krajdl de9c0eda36 Support RGBW on PCA9632 (#20455)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-12-22 08:27:14 -06:00
Tanguy Pruvot c559fc8227 Fix G28 leveling state, UBL compile (#20499) 2020-12-22 07:01:24 -06:00
Victor Oliveira cfad5cb435 Unify FYSETC F6 1.3 / 1.4 (#20507)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-12-22 06:57:11 -06:00
Serhiy-K 0b3b4da7d0 STM32F1xx support for TFTGLCD (#20515) 2020-12-22 06:56:00 -06:00
Keith Bennett a0c8d348a0 Anet ET4 / ET4P and Anet TFT28 / TFT35 (#20280) 2020-12-22 06:51:29 -06:00
Sean McGroty 08dcd1f680 Creality v4.3.1 (Ender 6) board (#20512) 2020-12-22 06:25:12 -06:00
X-Ryl669 91730d71ff Improve Touch Calibration screen (#20524) 2020-12-22 06:17:06 -06:00
Jason Smith 5e3be83dbb Overrides to prevent STM32 timer conflicts (#20545) 2020-12-22 06:02:25 -06:00
Chris Pepper c1b900aae9 Fix UBL mesh inset Z position (#20538) 2020-12-22 05:59:25 -06:00
Jason Smith 094e822070 Improve STM32 timer conflict messages (#20544) 2020-12-22 05:49:34 -06:00
LinFor 82540be931 FTDI EVE custom user menus (#20518) 2020-12-22 00:31:14 -06:00
LinFor 36aff1e464 12-bit ADC resolution for STM32 (#20519) 2020-12-21 18:30:03 -06:00
thinkyhead ba1176108a [cron] Bump distribution date (2020-12-22) 2020-12-22 00:19:00 +00:00
LinFor 9b3e16cdd0 Add Tune -> Advanced Settings to FTDI EVE (#20532) 2020-12-21 18:06:27 -06:00
Scott Lahteine 34b6bca006 Tweak FTDI spacing 2020-12-21 17:48:03 -06:00
Scott Lahteine 6429be6efc Robin pins followup 2020-12-21 17:47:22 -06:00
LinFor ba16c53218 Fix some Russian (#20529) 2020-12-21 17:45:00 -06:00
cr20-123 0d95f67f2e Fix G34 compile with bed leveling disabled (#20537) 2020-12-21 17:43:45 -06:00
Sebastiaan Dammann 3ec59b36eb Add BTT SKR CR6 board (#20522) 2020-12-21 17:36:43 -06:00
Scott Lahteine c7ecfe28e7 Clean up some pins 2020-12-21 17:36:43 -06:00
Dick Streefland 7afd274d0c Apply HOME_AFTER_DEACTIVATE for 'G28 O' (#20525) 2020-12-21 01:49:00 -06:00
Dick Streefland 71bec0824c Get E3V2 DWIN MACHINE_SIZE from config (#20526) 2020-12-21 01:47:49 -06:00
thinkyhead 4764e2c544 [cron] Bump distribution date (2020-12-21) 2020-12-21 00:17:17 +00:00
Scott Lahteine 777c50a1ec Fix PIO typo 2020-12-20 00:45:22 -06:00
Serhiy-K d8687512b1 Update Russian and Ukrainian languages (#20508) 2020-12-20 00:33:23 -06:00
Scott Lahteine 62cc65cafe Languages cleanup 2020-12-20 00:30:20 -06:00
Foxies 0a99f8feed Migrate Hispeedv1 (QQS-Pro) to HAL/STM32 (#20354) 2020-12-20 00:17:24 -06:00
Jason Smith 6dfcd491d0 Fix Creality EEPROM watchdog freq. (#20510) 2020-12-19 23:55:57 -06:00
InsanityAutomation 2963229dfa Probe Tare, Probe Activation Switch (#20379)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
Co-authored-by: Victor Mateus Oliveira <rhapsodyv@gmail.com>
Co-authored-by: Jason Smith <jason.inet@gmail.com>
2020-12-19 22:11:43 -06:00
InsanityAutomation 7a168205eb Minimum temp options for Probing and G12 Nozzle Clean (#20383)
Co-authored-by: Jason Smith <jason.inet@gmail.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-12-19 22:02:38 -06:00
Keith Bennett 9a8f8f8284 Let boards set Default TMC Slave Addresses (#20498)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-12-19 21:48:31 -06:00
thinkyhead 57f4d0523e [cron] Bump distribution date (2020-12-20) 2020-12-20 00:14:49 +00:00
Scott Lahteine 45b11553f4 Tweaks for pins_BTT_SKR_common.h 2020-12-18 21:15:48 -06:00
Scott Lahteine e5d0b27aaf Rename QUIET_PROBING 2020-12-18 21:13:50 -06:00
thinkyhead a33ae10c56 [cron] Bump distribution date (2020-12-19) 2020-12-19 00:15:28 +00:00
Tanguy Pruvot 017d97fd0e DOGM: Slow down touchscreen calibration (#20454) 2020-12-18 16:21:00 -06:00
Victor Oliveira b167cd2427 MKS Robin Nano V3 and STM32F4x0Vx Variant (#20430) 2020-12-18 16:18:04 -06:00
thinkyhead fae3c860a1 [cron] Bump distribution date (2020-12-18) 2020-12-18 00:15:25 +00:00
grauerfuchs e9677594ea Fix and optimize MightyBoard (#20493) 2020-12-17 17:22:59 -06:00
Jason Smith 7b9ff164cc Balance CI tests (#20485) 2020-12-17 06:18:07 -06:00
nb-rapidia 978d93af88 Make M220 B / R a standard feature (#20355) 2020-12-17 06:13:07 -06:00
ellensp 31337826a3 Fix ZoneStar LCD 2004 buttons (#20489) 2020-12-17 06:05:25 -06:00
rafaljot fbcc07261d Homing feedrates as XYZ array (#20426)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-12-17 06:02:05 -06:00
Scott Lahteine 20b3af1cc2 Use homing_feedrate function 2020-12-16 22:19:04 -06:00
thinkyhead 6d47baee5d [cron] Bump distribution date (2020-12-17) 2020-12-17 00:15:48 +00:00
Tanguy Pruvot c6dcf9d006 Update French language (#20472) 2020-12-16 00:46:10 -06:00
Scott Lahteine f934b774a1 Update Hungarian language
Co-Authored-By: Zs.Antal <45710979+AntoszHUN@users.noreply.github.com>
2020-12-16 00:42:55 -06:00
Giuliano Zaro e6fdf530b8 Update Italian language (#20480) 2020-12-16 00:35:13 -06:00
thinkyhead 1c4f125cb0 [cron] Bump distribution date (2020-12-16) 2020-12-16 00:14:09 +00:00
Scott Lahteine 3f93b8baed Trust STM32 gcc versions 2020-12-15 01:06:32 -06:00
Scott Lahteine 637123f340 Update some LCD includes 2020-12-15 01:06:27 -06:00
Scott Lahteine 7243ea549d Update some pins errors 2020-12-15 00:49:55 -06:00
Sebastiaan Dammann 686bb056a4 Creality v4.5.3 (CR-6 SE, CR-6 MAX) (#20468) 2020-12-15 00:33:01 -06:00
JoAnn Manges 1be16e3d8c Fix RESTORE_LEVELING_AFTER_G28 (#20471) 2020-12-15 00:16:50 -06:00
Scott Lahteine 69999f962a Please install the EditorConfig plugin 2020-12-14 21:27:12 -06:00
Scott Lahteine 5a6fc3e5b7 Auto-check followup 2020-12-14 21:08:09 -06:00
kisslorand 7be57ff9f0 Fix M1001 auto-check logic (#20456) 2020-12-14 21:04:45 -06:00
Jason Smith 81a0206df8 Trust that script -x flags will always be set (#20453) 2020-12-14 21:02:46 -06:00
Scott Lahteine 80bde7b6b5 Always enable leveling after G28 2020-12-14 20:34:22 -06:00
Scott Lahteine e349a44c60 Preheat before leveling 2020-12-14 20:34:22 -06:00
Scott Lahteine fbefe55102 Fix formatting 2020-12-14 20:34:22 -06:00
thinkyhead dee475cee1 [cron] Bump distribution date (2020-12-15) 2020-12-15 00:13:55 +00:00
Chris Pepper 9fd358f10c LPC176x framework update (#20469) 2020-12-14 22:36:25 +00:00
thinkyhead 8c05053951 [cron] Bump distribution date (2020-12-14) 2020-12-14 00:14:07 +00:00
Scott Lahteine b0392be4bf SHORT_MANUAL_Z_MOVE => FINE_MANUAL_MOVE 2020-12-13 01:54:31 -06:00
Scott Lahteine c824086825 Adjust planner debugging 2020-12-13 01:54:31 -06:00
FanDjango 1a9644cef9 Probe Offset Wizard followupBack to PROBE_PT_RAISE/separate STOW, make "PROBING" msg appear (#20439)
* Go back to always use PROBE_PT_RAISE with a discrete stow. This ensures a raise above the bed, while stowing prior to exiting the wizard.
* Fix issue preventing text while moving to X/Y position
Co-authored-by: FanDjango <FanDjango@users.noreply.github.com>
2020-12-12 17:18:33 -08:00
thinkyhead 8723440d1d [cron] Bump distribution date (2020-12-13) 2020-12-13 00:14:25 +00:00
qwewer0 ea9b4dc82c Improve ASSISTED_TRAMMING_WIZARD probe stowing (#20437)
* When BLTOUCH_HS_MODE enabled, stow pin before user interaction
* For all probes, ensure probe stows at end of wizard
2020-12-12 11:03:28 -08:00
ellensp 2eab920935 Add HAS_PIN_27_BOARD for CREALITY_V4 (#20446)
Co-authored-by: ellensp <ellensp@hotmsil.com>
2020-12-12 10:59:17 -08:00
leodoener 087a6fea13 Fix SDCARD_SORT_ALPHA on Ender 3 V2 (#20443) 2020-12-11 23:20:24 -03:00
Scott Lahteine 9c9113e225 Better animated boot screen 2020-12-11 18:24:27 -06:00
thinkyhead 8f008ac75d [cron] Bump distribution date (2020-12-12) 2020-12-12 00:13:47 +00:00
Jason Smith 8a4f8e72df SENSORLESS_PROBING sanity check followup (#20438) 2020-12-11 01:39:51 -08:00
FanDjango 43222d5879 Probe offset wizard fixes (#20414)
* STOW probe, reverting incorrect earlier change from #20344
* Adjust soft endstop disables, to ensure travel below bed functions properly

Co-authored-by: FanDjango <FanDjango@users.noreply.github.com>
2020-12-11 00:06:57 -08:00
elasticdotventures 04a3bd0d34 Z_SENSORLESS sanity checks (#20421)
Co-authored-by: Jason Smith <jason.inet@gmail.com>
2020-12-10 23:33:29 -08:00
thinkyhead af70e80816 [cron] Bump distribution date (2020-12-11) 2020-12-11 00:13:48 +00:00
ellensp 22de37ad50 Fix UBL Debug Messages (#20423)
Co-authored-by: ellensp <ellensp@hotmsil.com>
2020-12-10 15:30:58 -03:00
Keith Bennett 6cf4b888e1 Clarify "not Interrupt-capable" error message (#20419) 2020-12-10 15:27:02 -03:00
thinkyhead 6557751199 [cron] Bump distribution date (2020-12-10) 2020-12-10 00:13:42 +00:00
Victor Oliveira 6e4925e6b6 MKS Robin Pins fixes for STM32 and STM32F1 (#20404)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-12-09 18:43:49 -03:00
InsanityAutomation 3404cb1fc4 Move ExtUI ABL mesh edit, limit to bilinear (#20381)
* Move ExtUI call

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
Co-authored-by: Victor Mateus Oliveira <rhapsodyv@gmail.com>
Co-authored-by: Sebastiaan Dammann <sebastiaandammann@outlook.com>
2020-12-09 09:07:26 -08:00
Marcio T f3bddc4e4e Fixes and additions to FTDI EVE Touch UI (#20393)
- Fixed name conflict with "SUBSCRIPT_TWO"
- Fixed rendering bugs in "Leveling Menu"
- Only show "Bed Mesh Screen" when UBL is enabled
- Removed CocoaPress code from generic "Main Menu"
- Removed CocoaPress code from LulzBot Bio "Status" screen
- Moved generic "Move Axis" functionality into a base class
- Added CocoaPress custom screens:
   - Status Screen
   - Unload Cartridge
   - Load Chocolate
   - Main Menu
   - Advanced Settings
   - XYZ Move (based on "Move Axis" base class)
   - Extrusion Move (based on "Move Axis" base class)
- CocoaPress tweaks to "Temperature" screen
- Fix FTDI EVE Touch UI compilation errors when not using leveling.
2020-12-09 05:09:31 -06:00
Mike La Spina 3e68e4b418 Fix Spindle/Laser Control menu (#20347) 2020-12-09 04:37:26 -06:00
swissnorp edb2a83e71 Allow positive Z nozzle to probe offset (#20344)
* Allow a positive value for z offset from nozzle to probe without sanity checks
* Simplify menu_probe_offset.cpp (HOMING_Z_WITH_PROBE)
* Add some more explanation to Configuration Files
* Raise after probe_at_point as if homed

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Jason Smith <jason.inet@gmail.com>
2020-12-09 01:06:50 -08:00
Keith Bennett 2a4f8acd62 Clarify Delta & SCARA config location (#20403) 2020-12-08 22:12:42 -08:00
Scott Lahteine 885b0d2ec5 Style, spacing, typo cleanup for recent changes 2020-12-08 20:18:29 -06:00
thinkyhead 66834cf324 [cron] Bump distribution date (2020-12-09) 2020-12-09 00:13:32 +00:00
Victor Oliveira 9ead6a30f2 SPI TFT for STM32F4 boards (#20384)
* fix pinsDebug for F1 boards

* add MKS Robin PRO V2 board - development board

* tft spi working with F4 boards

* pins formating

* sanity check for TFT on supported cores in STM32

* Fix tabs/spaces in pins file

Co-authored-by: Jason Smith <jason.inet@gmail.com>
2020-12-07 21:26:39 -08:00
thinkyhead af20db4512 [cron] Bump distribution date (2020-12-08) 2020-12-08 00:13:33 +00:00
ellensp fee375f31f Allow BTT EXP-MOT be used with Displays that needs only EXP 1 (#20396)
Co-authored-by: ellensp <ellensp@ellensp-HP-ProBook-6470b.fritz.box>
Co-authored-by: Victor Mateus Oliveira <rhapsodyv@gmail.com>
2020-12-07 17:57:00 -03:00
ellensp 182fdd95c3 Shorten Filament Load/Unload Strings to Fit on Graphical Displays (#20369)
Co-authored-by: ellensp <ellensp@ellensp-HP-ProBook-6470b.fritz.box>
Co-authored-by: Victor Mateus Oliveira <rhapsodyv@gmail.com>
2020-12-07 17:53:53 -03:00
Scott Lahteine 7f20184ebc Fix auto#.g file handling, add NO_SD_AUTOSTART (#20071) 2020-12-07 05:53:15 -06:00
Scott Lahteine b04914fb72 More LPC P-string macros 2020-12-07 05:06:24 -06:00
Scott Lahteine 2ecb4fad72 Watch idle() depth over 5 2020-12-07 04:38:14 -06:00
Scott Lahteine ee4c2b36b8 Fix fileExists, use openFailed 2020-12-07 04:38:14 -06:00
thinkyhead 00143f77d0 [cron] Bump distribution date (2020-12-07) 2020-12-07 00:13:45 +00:00
Victor Oliveira 1a04c8c7bb Avoid invalid memory optimizations (#20389)
When building for AVR, merge-all-constants can incorrectly combine constants stored in flash with constants stored in RAM. These have different access requirements, leading to undefined behavior during execution.
Co-authored-by: ellensp <ellensp@hotmail.com>
2020-12-06 12:36:36 -08:00
Scott Lahteine 6f4589b375 G28 followup 2020-12-05 23:06:15 -06:00
Scott Lahteine 139a33c9fc G28 tweaks 2020-12-05 20:14:44 -06:00
Scott Lahteine a3f6e48eb6 Fix STM32F1 SERIAL_GET_TX_BUFFER_FREE 2020-12-05 20:05:39 -06:00
Scott Lahteine a8dffdebd4 Move G29 3-point startup earlier 2020-12-05 20:05:39 -06:00
Scott Lahteine 889695b6ba ExtUI homing / leveling additions 2020-12-05 18:29:03 -06:00
Scott Lahteine bf4c08bce1 Use 'nearby' for 'near' 2020-12-05 18:27:18 -06:00
Scott Lahteine 9e68c9a214 Creality 4.5.2 format and fix 2020-12-05 18:27:18 -06:00
LinFor 7a6b742d12 Fix FYSETC S6 I2C EEPROM size (#20340)
Both V1.2 and V2.0 boards have a 24LC16, which is a 2kB EEPROM.

Co-authored-by: PingWin <kirill@shashlov.ru>
Co-authored-by: Jason Smith <jason.inet@gmail.com>
2020-12-05 16:19:17 -08:00
thinkyhead 2dbd2063f8 [cron] Bump distribution date (2020-12-06) 2020-12-06 00:13:51 +00:00
InsanityAutomation e8ed880e62 Add Creality 4.5.2 board (#20378)
Co-authored-by: Jason Smith <jason.inet@gmail.com>
2020-12-05 13:23:58 -08:00
Jason Smith 2c8f566231 Suspend Servos for STM32+NeoPixel (#19963) 2020-12-05 00:02:58 -06:00
Jason Smith 21ee7b1c86 Fix TMC_HOME_PHASE divide by zero (#20368) 2020-12-04 23:58:39 -06:00
Scott Lahteine 5fdd949115 Improved Longer3D LKx Pro board (#20372)
Co-authored-by: mrv96 <marione96@live.it>
2020-12-04 23:56:20 -06:00
Tanguy Pruvot 0a03ef4b6f Don’t use near keyword as variable name (#20374) 2020-12-04 20:29:55 -08:00
thinkyhead 71db4f0426 [cron] Bump distribution date (2020-12-05) 2020-12-05 00:13:14 +00:00
Belin Fieldson 465840e1fb Loosen E on pause for fila-manipulation (#20346)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-12-04 04:49:30 -06:00
Jason Smith d17db47775 Fix MESH_BED_LEVELING w/o SEGMENT_LEVELED_MOVES (#20363) 2020-12-03 19:33:46 -08:00
thinkyhead 517bcd2b5d [cron] Bump distribution date (2020-12-04) 2020-12-04 00:12:52 +00:00
Victor Oliveira 3eddbc7286 Require minimum PlatformIO version (#20361)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Jason Smith <jason.inet@gmail.com>
2020-12-03 09:23:48 -08:00
Scott Lahteine a1f319d5b6 Consolidate common pin includes 2020-12-03 05:53:07 -06:00
ellensp 31352f8a8a Fix up start, monitor baud (#20326) 2020-12-03 04:44:33 -06:00
yysh12 2878876064 Fix circle arc condition (#20322) 2020-12-03 04:40:39 -06:00
thinkyhead 7bf04d1526 [cron] Bump distribution date (2020-12-03) 2020-12-03 00:12:40 +00:00
Jason Smith a4d6908d55 Permit SD EEPROM emulation on E3V2 (#20353) 2020-12-02 05:23:34 -06:00
Jason Smith a4618309ce Fix E3V2 DWIN Jerk Menu (#20352)
* Fix E3V2 DWIN build without CLASSIC_JERK
* Fix jerk edits applying to wrong index
2020-12-02 01:31:06 -08:00
Luu Lac 257dc6d173 Help hosts when password-locked (#20348) 2020-12-01 23:52:09 -06:00
Mathias Rasmussen 753cf994b6 Update to STM32 v10, optimize build (#20325) 2020-12-01 23:51:04 -06:00
Scott Lahteine c353eab898 Level Bed Corners is a sub-menu 2020-12-01 21:54:58 -06:00
thinkyhead 7226f6834e [cron] Bump distribution date (2020-12-02) 2020-12-02 00:12:48 +00:00
Scott Lahteine 2e010909ac Tweak to EEPROM safe delay 2020-12-01 16:14:37 -06:00
Jason Smith 0d080cea83 Fix E3V2 Control Menu when returning from Info (#20338) 2020-12-01 00:29:21 -08:00
Jason Smith 6f4381df53 Prevent Watchdog reset writing Creality 4.x EEPROM (#20328) 2020-11-30 22:25:44 -08:00
thinkyhead db8fb9a03a [cron] Bump distribution date (2020-12-01) 2020-12-01 00:13:08 +00:00
Jason Smith 87ede6fa1b Increase E3V2 DWIN steps/mm range to 999.9 (#20324) 2020-11-30 04:44:34 -08:00
Scott Lahteine fd35d1b8a6 General cleanup 2020-11-29 20:50:02 -06:00
Scott Lahteine 8fd8772a6f Adjust axis homed / trusted methods (#20323) 2020-11-29 19:06:40 -06:00
thinkyhead 0f9ac3026d [cron] Bump distribution date (2020-11-30) 2020-11-30 00:12:42 +00:00
Jason Smith df0a0c9490 Leveling Fade Height default setting (#20316) 2020-11-29 15:00:08 -06:00
Jason Smith f2b9be6e70 Fix STM32F1 'freeMemory()' warnings (#20319) 2020-11-29 14:57:05 -06:00
Alexander D. Kanevskiy 39abda8743 SKR E3 Turbo Controller Fan (#20320) 2020-11-29 14:55:18 -06:00
yysh12 dcb101224f Arc Direction followup for circles (#20314) 2020-11-29 14:50:54 -06:00
thinkyhead e7e1dcf190 [cron] Bump distribution date (2020-11-29) 2020-11-29 00:12:56 +00:00
thinkyhead d466ac12ea [cron] Bump distribution date (2020-11-28) 2020-11-28 00:12:13 +00:00
Thomas Niccolo Reyes 1c7f53bbb2 Fix M73 LCD code typo (#20300) 2020-11-27 15:26:19 -06:00
Sergey1560 0acd751e2d Group related homing options (#20283)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-27 00:00:25 -06:00
yysh12 bab660ca7d Fix G2/G3 arcs > 180° (#20292) 2020-11-26 23:29:07 -06:00
ellensp 109f68f7df Fix BTT GTR 1.0 endstop/DIAG pins (#20296) 2020-11-26 22:50:21 -06:00
BsCmOD 819ec462b8 FIX TMC menu message (#20294) 2020-11-26 21:25:18 -06:00
Scott Lahteine b6a32500c4 M808 Repeat Markers (#20084) 2020-11-26 21:18:40 -06:00
thinkyhead c61a311c0d [cron] Bump distribution date (2020-11-27) 2020-11-27 00:12:12 +00:00
Štěpán Dalecký 5cae4e9f55 [WIP] Fix Probe::offset_xy (#20290)
Co-authored-by: Jason Smith <jason.inet@gmail.com>
2020-11-26 13:21:48 -08:00
wmariz 58ac815822 Level Corners with Probe option (#20241) 2020-11-26 07:58:19 -06:00
Scott Lahteine 3ba374a29e Optimize emergency parser check 2020-11-26 03:56:21 -06:00
Scott Lahteine 7ce675e604 No auto debug for EEPROM_CHITCHAT 2020-11-26 03:56:21 -06:00
Scott Lahteine aa2ced96e0 Finish HAL/STM32 cpp wrappers 2020-11-26 03:47:15 -06:00
mks-viva 8c59212ca4 MKS Robin E3 / E3D v1.1 (#20216) 2020-11-26 02:36:29 -06:00
Scott Lahteine 4f4843a845 Tweak some pin errors 2020-11-26 01:08:21 -06:00
Jason Smith 3a396a25dc Retire HAL for STM32F4 / F7 (#20153) 2020-11-26 00:37:18 -06:00
Scott Lahteine 18853defdd Reduce warnings, extern "C" cleanup (#20279) 2020-11-25 21:40:56 -06:00
swissnorp 649965ae32 Probe Offset Wizard improvements (#20239) 2020-11-25 21:38:00 -06:00
thinkyhead afe5027a39 [cron] Bump distribution date (2020-11-26) 2020-11-26 00:11:33 +00:00
Victor Oliveira 04c4c6004e Fix COLOR_UI without TOUCH_SCREEN_CALIBRATION (#20269) 2020-11-24 21:39:49 -08:00
Victor Oliveira 2693e35cae add missing header to use HAS_SD_HOST_DRIVE (#20270) 2020-11-24 20:08:35 -08:00
Scott Lahteine e38abef720 Update TOUCH_UI_LULZBOT_BIO wrappers 2020-11-24 18:32:01 -06:00
thinkyhead 0eae28a663 [cron] Bump distribution date (2020-11-25) 2020-11-25 00:11:42 +00:00
Scott Lahteine b28b2ca266 Cosmetic G29 ABL tweak 2020-11-24 17:53:39 -06:00
Scott Lahteine 296a2ad7e4 Consistent Probe XY offset type 2020-11-24 17:38:26 -06:00
Jason Smith e9431b5445 No Z_MULTI_ENDSTOPS when HOMING_Z_WITH_PROBE (#20254) 2020-11-24 16:27:59 -06:00
pseudex 4258ff1a68 Allow cold Filament Load/Unload with M302 P1 (#20262)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-24 16:20:06 -06:00
ellensp ef12425bef Set "lcd_move_e" index to fix the label (#20263) 2020-11-24 16:14:22 -06:00
rdhoggattjr 62680bb356 LCD position in current units (#20145) 2020-11-23 23:02:54 -06:00
thinkyhead 94fea59e9d [cron] Bump distribution date (2020-11-24) 2020-11-24 00:11:40 +00:00
Jason Smith a4e1132048 Fix Z4 in ENABLE/DISABLE_AXIS_Z (#20256)
This was accidentally broken in PR #20218
2020-11-23 03:07:43 -08:00
Jason Smith 58eaad703a Fix dummy thermistors for Bed, Chamber, Probe (#20247) 2020-11-22 18:47:52 -06:00
Scott Lahteine 6f272e13c5 Allow Status Message without LCD (#20246) 2020-11-22 18:44:17 -06:00
Jason Smith 9dedd121bf Fix UBL manual mesh adjust behavior (#20248) 2020-11-22 18:20:33 -06:00
thinkyhead 315cb6d001 [cron] Bump distribution date (2020-11-23) 2020-11-23 00:11:32 +00:00
Scott Lahteine 48b0abc3a8 Hide docker droppings 2020-11-21 23:00:38 -06:00
Scott Lahteine d8a3b9eb3a Move core conditionals earlier 2020-11-21 22:33:27 -06:00
Scott Lahteine 60e8c7afb2 Put "$3" on all tests 2020-11-21 22:33:27 -06:00
qwewer0 e19c016c74 Clear menu history for browse media on insert (#20236)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-11-21 18:21:43 -06:00
thinkyhead 89b56ca5c2 [cron] Bump distribution date (2020-11-22) 2020-11-22 00:12:03 +00:00
Kurt Haenen ca83e1a26f Proper pullup/pulldown configurability (#20242)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-11-21 17:56:56 -06:00
Victor Oliveira 7a04df47f2 Fix Load Filament wait (#20243) 2020-11-21 17:16:03 -06:00
Orel 8db72d027e Skip unnecessary (costly) SW Stepper Enable (#20218)
Co-authored-by: Jason Smith <jason.inet@gmail.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-11-21 16:27:06 -06:00
Gurmeet Athwal 6851909f90 BTN_ENC_EN for many boards (#19890)
Enables CHECK_ENCODER_ACTIVE_SIGNAL for many more boards.

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Jason Smith <jason.inet@gmail.com>
2020-11-20 23:47:04 -08:00
Scott Lahteine 7e902b7e29 Power-Loss cleanup 2020-11-20 21:30:45 -06:00
Simone Primarosa f8e83f79c5 Superscript substitution (#20219)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-11-20 20:36:19 -06:00
Simone Primarosa 615bf2a6f1 Fix bad SET_FAST_PWM_FREQ calls (#20227) 2020-11-20 19:53:04 -06:00
Kurt Haenen 474be6058b Fix backward Filament (Presence) Sensor pulls (#20228)
Co-authored-by: Kurt Haenen <Kurt.Haenen@quintux.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-11-20 19:48:53 -06:00
thinkyhead fb3f6a46c1 [cron] Bump distribution date (2020-11-21) 2020-11-21 00:11:06 +00:00
Scott Lahteine b3bd47b4b2 Printrboard labels 2020-11-20 17:41:20 -06:00
Victor Oliveira 28e315cd69 SINGLE_TOUCH_NAVIGATION Follow Up (#20213) 2020-11-20 10:46:18 -03:00
Victor Oliveira 0e3d86579b Missing header to use suicide() on LVGL UI (#20214) 2020-11-19 23:09:33 -03:00
Ajtak a26a21d19a Longer LK Pro / Alfawise PRO board (#20185) 2020-11-19 18:25:27 -06:00
thinkyhead d8557547dd [cron] Bump distribution date (2020-11-20) 2020-11-20 00:11:02 +00:00
Orel fe88fb7ed9 Fix DAC setDrvPct (#20205) 2020-11-19 18:08:21 -06:00
Vitaliy 19d0c985be Windows LPC Upload for non-admins (#20208)
Co-authored-by: Victor Mateus Oliveira <rhapsodyv@gmail.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-11-19 17:49:12 -06:00
Scott Lahteine 4a0fc4d699 Fix Z label 2020-11-19 17:41:24 -06:00
Scott Lahteine 931df1231a MKS WiFi strings 2020-11-19 17:38:36 -06:00
Scott Lahteine b51c6d4737 More MKS WiFi 2020-11-19 17:29:01 -06:00
Scott Lahteine 3893114c86 MKS WiFi preliminary changes 2020-11-19 15:56:04 -06:00
Till fcc29fc189 Add Thermistor 20-21 notes (#19246) 2020-11-19 14:07:47 -06:00
Victor Oliveira d7aea9608e Reduce RAM usage for TFT Color UI on SGen-L V2 (#20209) 2020-11-19 16:47:49 -03:00
Maciej Rutkowski 4c5a58a5db Fix GTR NeoPixel pin with FYSETC Mini12864 (#20203) 2020-11-19 02:49:44 -08:00
ellensp c059ea0ea0 Remaining Time followup (#20199) 2020-11-19 00:09:51 -06:00
Victor Oliveira 6a8ac21f80 Fix Filament Change menu item labels (#20201) 2020-11-19 00:05:05 -06:00
Victor Oliveira 08c5557026 Abort print on media removal (#20200) 2020-11-18 23:32:33 -06:00
JoAnn Manges cb2ec628df Use RTD for MAX31865 reading (#20188) 2020-11-18 23:12:03 -06:00
bosd acdfbbeb86 Fix broken #include (#20193) 2020-11-18 19:32:52 -06:00
thinkyhead 8b72cbebde [cron] Bump distribution date (2020-11-19) 2020-11-19 00:10:51 +00:00
Giuliano Zaro 41529b6598 SMUFF (MMU2 clone) support (#19912) 2020-11-18 01:27:21 -06:00
Scott Lahteine 11b811820f USB Media Host followup
Restore HAS_SHARED_MEDIA
2020-11-18 00:13:28 -06:00
Jason Smith 39305aa47c Use MANUAL_PROBE_START_Z for UBL manual probing (#20160) 2020-11-17 23:59:48 -06:00
Philippe Cayrol caeac3851a Better edit range for Linear Advance K (#20155) 2020-11-17 23:56:51 -06:00
Thomas Niccolo Reyes 04a3ece3e0 Remaining Time for Prusa-style LCD layout (#20148)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-17 23:49:56 -06:00
Victor Oliveira f1cdd02d4c Improve USB Media Host conditions (#20176)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-17 23:48:14 -06:00
Foxies c1920f31ca FLSun Hispeedv1 Board update (#19959)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-17 22:32:34 -06:00
Thomas Niccolo Reyes ecd8227de0 Open File Browser on Media Insert (option) (#20151)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-17 22:30:32 -06:00
wmariz 5768ee0f9e Probe Wizard XY position (#20167) 2020-11-17 21:54:21 -06:00
Jason Smith 50a77ef7f0 Fix NAN mesh entries with ABL_BILINEAR_SUBDIVISION (#20143) 2020-11-17 19:11:13 -08:00
Victor Oliveira 75924edcf8 COLOR_UI without TOUCH_SCREEN 👍🏻 (#20178) 2020-11-17 20:07:34 -06:00
Costas Basdekis 1cceae89cd Local testing via Makefile & Docker (#19981) 2020-11-17 20:04:28 -06:00
Victor Oliveira 26ac992242 Prevent #div0 error (#20183) 2020-11-17 18:44:53 -06:00
thinkyhead 8c4a06d855 [cron] Bump distribution date (2020-11-18) 2020-11-18 00:10:44 +00:00
Victor Oliveira 51a1561ae9 Reduce RAM usage for TFT Color UI on SGen-L (#20179) 2020-11-17 12:32:30 -08:00
Roman Moravčík a15ab85557 Update Slovak language (#20181) 2020-11-17 12:30:06 -08:00
石立枫 9b2e810bdf Add FLY_CDY board (#19979)
Co-authored-by: FLYmaker <FLYmaker@users.noreply.github.com>
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
Co-authored-by: Jason Smith <jason.inet@gmail.com>
2020-11-17 03:35:02 -08:00
ellensp b57ca6e4ac add ethernet to src filter (#20136)
Co-authored-by: ellensp <ellensp@ellensp-HP-ProBook-6470b.fritz.box>
2020-11-17 00:45:43 -08:00
Victor Oliveira 7930fd9ce8 Use intptr types (simulator) (#20142) 2020-11-17 00:45:01 -08:00
Jason Smith 9767e59e6c Allow overriding servo pin for MKS Robin Mini (#20158) 2020-11-17 00:40:37 -08:00
Keith Bennett c12e6933f5 Multi-Hotend Preheat Fixes (#20165)
* Return to Status Screen on Multi-Hotend Preheat All

Co-authored-by: Victor Oliveira <81722+rhapsodv@users.noreply.github.com>
2020-11-17 00:37:37 -08:00
thinkyhead 59d2871b59 [cron] Bump distribution date (2020-11-17) 2020-11-17 00:10:50 +00:00
Jason Smith 4dd2496530 Allow dummy thermistors without pin definitions (#20159) 2020-11-16 14:56:59 -06:00
FanDjango 110e0d782f Guards for large BLOCK_BUFFER_SIZE (>=128) (#20130)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-16 14:56:05 -06:00
InsanityAutomation e955dce3dc Update IDEX menus, add post-M605 event G-code (#20133)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-15 23:56:05 -06:00
thinkyhead 101d57d093 [cron] Bump distribution date (2020-11-16) 2020-11-16 00:11:06 +00:00
Victor Oliveira ea371618da Add Touch Calibration screen (#20049) 2020-11-15 16:39:58 -06:00
Scott Lahteine cab83ba840 Fix some LCD/serial strings 2020-11-14 18:28:39 -06:00
thinkyhead 8d20a83e09 [cron] Bump distribution date (2020-11-15) 2020-11-15 00:12:28 +00:00
Scott Lahteine c5e411f492 Add parser.is_command(letter, code) 2020-11-14 18:09:17 -06:00
Minims 189306d24e BTT Motor Expansion for SKR Pro (#20123) 2020-11-13 20:13:36 -06:00
Keith Bennett f9e54331ba UTF Filenames followup (#20135) 2020-11-13 20:10:50 -06:00
phcay a97a1ae218 Fix extraneous Linear Advance DIR change (#20131) 2020-11-13 20:06:37 -06:00
Luu Lac a6ff61d52e Fix "autotune" LCD message (#20127) 2020-11-13 20:06:37 -06:00
Scott Lahteine c710b6e06c Optimize M360 2020-11-13 20:06:37 -06:00
Scott Lahteine 1d43e81be0 Fix compile warnings, serial alias 2020-11-13 18:28:15 -06:00
Scott Lahteine ddc997c81f .gitignore for native / simulation 2020-11-13 18:28:15 -06:00
Scott Lahteine 988fc202e2 LCD_FIRST_TOOL status bitmaps 2020-11-13 18:23:18 -06:00
thinkyhead 6aea00289c [cron] Bump distribution date (2020-11-14) 2020-11-14 00:10:15 +00:00
Gonçalo Pereira fbc2d2d726 Typo in MMU2 serial protocol description (#19949) 2020-11-13 01:23:05 -06:00
InsanityAutomation 1b0a5abd73 G34 Z stepper locking (#20091)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-12 22:54:18 -06:00
LinFor 99c377b4e4 Fix UTF filename scroll (#20121)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-12 22:49:19 -06:00
Jason Smith 288eb06708 UTF longname followup (#20115) 2020-11-12 22:26:49 -06:00
thinkyhead eb3d6a5333 [cron] Bump distribution date (2020-11-13) 2020-11-13 00:10:25 +00:00
thinkyhead 37b56e09a3 [cron] Bump distribution date (2020-11-12) 2020-11-12 00:10:01 +00:00
Scott Lahteine 0cccc60409 Terse sanity messages 2020-11-11 16:58:54 -06:00
Scott Lahteine 2282801172 Add HOME_Z_FIRST option (#20113) 2020-11-11 16:58:34 -06:00
LinFor f4e9f3654e Fix MAX6675 SPI init, conflicts (#20086) 2020-11-11 16:27:45 -06:00
JoAnn Manges 40d442fde2 Fix MAX31865 on SPI (PT100/1000) support (#20074) 2020-11-11 15:52:35 -06:00
Hebezo 6ccb4b93b1 Option to ignore SD at startup (#20099)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-11 15:16:19 -06:00
Scott Lahteine ddc23c6224 M32 followup 2020-11-11 14:39:39 -06:00
ellensp 7216b8f804 Fix compile with PLR, no fan (#20096) 2020-11-11 14:35:13 -06:00
Davidsg33k bd6e60f56d 400 Z steps-per-mm (#20104) 2020-11-11 14:30:36 -06:00
LinFor 5b9aeb2e5f Handle UTF in long filenames (#20087)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-11 14:14:39 -06:00
Costas Basdekis 0465e0ae3a Distinct runout states (#19965)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-11 00:39:23 -06:00
Costas Basdekis 3b68e44d9a Fix Linux GPIO logging (#20093)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-10 20:13:29 -06:00
ellensp d4ba94479b BTT driver expansion for SKR 1.3/1.4 (#20088)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-10 20:06:42 -06:00
Speaka 87ce545e15 Tramming Wizard wait position (#20063) 2020-11-10 19:41:21 -06:00
Victor Oliveira f8ee6f8b31 Fix UI compile issues (#20092) 2020-11-10 19:39:34 -06:00
thinkyhead f15fef90a9 [cron] Bump distribution date (2020-11-11) 2020-11-11 00:09:42 +00:00
Jason Smith 53e79224fc Fix Arduino DUE compilation (#20058) 2020-11-10 03:32:08 -06:00
qwewer0 2abb674c87 What if 8 was 9? (#20076) 2020-11-10 03:27:34 -06:00
qwewer0 60aadd2a02 Update issues/support link (#20077)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-10 03:26:45 -06:00
Gustavo Alvarez 6ce1eeb4ae Fix SKR E3 DIP pin CLCD_SPI_CS (#20078) 2020-11-10 03:22:08 -06:00
Tanguy Pruvot a70fdfaeba Fix 320x240 touch buttons Y (#20079) 2020-11-10 03:21:05 -06:00
Scott Lahteine f17394d677 Ability to disable M32 2020-11-10 02:21:12 -06:00
thinkyhead 12ba2ad77e [cron] Bump distribution date (2020-11-10) 2020-11-10 00:11:19 +00:00
Scott Lahteine 59eca253e1 Simplified temp sensor conditionals 2020-11-09 01:17:37 -06:00
Hebezo 4ace02f4c2 Add POWER_OFF_DELAY option (#19987)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-08 18:37:41 -06:00
qwewer0 c753d2b7f4 Use extra G35 BLTouch HS Mode clearance in Tramming Wizard (#20057)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-08 18:31:14 -06:00
thinkyhead d5fdc75c82 [cron] Bump distribution date (2020-11-09) 2020-11-09 00:11:21 +00:00
Alexander D. Kanevskiy 3c318d0dc7 POWER_LOSS_PIN for BTT SKR mini MZ / E3 2.0 (#20069) 2020-11-08 02:20:07 -06:00
Jason Smith 5013fdaf79 Fix tool-change servo index for E2 and up (#20060) 2020-11-08 02:15:30 -06:00
Scott Lahteine 06bf3ccfb7 Add alternative TERN macros 2020-11-07 22:19:25 -06:00
Scott Lahteine dcb0f5dc3b Temperature 'autostart' => 'auto_job' 2020-11-07 21:21:19 -06:00
Scott Lahteine 18fb4b1ce1 MSG_AUTOSTART => MSG_RUN_AUTO_FILES 2020-11-07 21:21:19 -06:00
thinkyhead 45116128e8 [cron] Bump distribution date (2020-11-08) 2020-11-08 00:11:23 +00:00
Albert van Osch 7beebcd315 Zonestar Z8 XM2 support (#19991) 2020-11-07 16:59:19 -06:00
Scott Lahteine 883347bc11 Apply some pins formatting 2020-11-07 16:54:20 -06:00
Scott Lahteine b5ef699523 TFT cleanup 2020-11-07 16:21:52 -06:00
LinFor 2da25d67e1 Fix Endstop Interrupts with SPI endstops, sanity checks (#20051)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-07 03:37:45 -06:00
Speaka 6954772ece Tramming Wizard submenu option (#20000)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-07 03:20:27 -06:00
Victor Oliveira 2fdeceda58 Color UI single touch menu navigation (#20053) 2020-11-07 03:00:29 -06:00
Darren Horrocks 53cc8a0d6e Optimized (non-optiboot) Melzi env (#20021)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-07 02:43:51 -06:00
Darren Horrocks 10fd9ed896 Anet 1.0 alternative graphical LCD wiring (#20022) 2020-11-07 02:42:14 -06:00
Scott Lahteine bb7dbceb5c Add 'mfconfig' script used to manage configs 2020-11-07 02:39:02 -06:00
Jason Smith a439892d7a Sanity-check illegal native USB (#20047)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-07 00:48:17 -06:00
Jason Smith bd872d5dcf STM32F1 cleanup, incl. SoftwareSerial removal (#20046) 2020-11-06 23:51:52 -06:00
Jason Smith bdfedf249a Fix FYSETC S6 timer conflict (#20044) 2020-11-06 23:49:53 -06:00
George Fu 4785b04aa1 FYSETC E4 board support (#20032) 2020-11-06 23:48:52 -06:00
Scott Lahteine 8c052e43f1 Update some file headers 2020-11-06 23:46:56 -06:00
Victor Oliveira 85d094bbb4 Standardize Marlin SPI (part 1) (#19989) 2020-11-06 21:07:15 -06:00
Scott Lahteine 97d7af7a23 Use nullptr 2020-11-06 20:17:05 -06:00
Mauro 0a64f197d9 Fix E4d@box pins, stepper i2s (#20055) 2020-11-06 19:28:41 -06:00
Scott Lahteine af75e24c2e Clean up corrected urls 2020-11-06 19:11:29 -06:00
thinkyhead 78e10d346a [cron] Bump distribution date (2020-11-07) 2020-11-07 00:10:42 +00:00
Marc Jovaní González c574bcce88 Add Spanish translations (#20020) 2020-11-05 18:16:08 -06:00
Jason Smith ce90447531 Fix 0 extruders & bed compile (#20030) 2020-11-05 18:15:29 -06:00
Sergey1560 f924344cc5 Don't close diveDir in fileExists (#20035) 2020-11-05 18:13:21 -06:00
thinkyhead 323b3a63d6 [cron] Bump distribution date (2020-11-06) 2020-11-06 00:10:33 +00:00
Jason Smith 077b9201ef Fix BTT002 PeripheralPins PWM assignments (#20036) 2020-11-05 18:10:18 -06:00
Scott Lahteine 1f6612dfc4 Comment, spacing cleanup 2020-11-05 17:16:47 -06:00
Josh Schroeder c43ca39ec2 Wiring warning for ANET_FULL_GRAPHICS_LCD on SKR 1.4 (#20011) 2020-11-04 21:15:25 -06:00
thinkyhead 0407828027 [cron] Bump distribution date (2020-11-05) 2020-11-05 00:10:28 +00:00
Victor a1cce36c1e FAST_PWM for STM32 (#20025) 2020-11-04 15:15:19 -06:00
Scott Lahteine 4fe1adc383 HAL support for 8s watchdog 2020-11-04 15:08:40 -06:00
thinkyhead 2a78fe0f81 [cron] Bump distribution date (2020-11-04) 2020-11-04 00:09:52 +00:00
Keith Bennett ea5886c77d Add note about TMC2225/6 (#20002) 2020-11-03 17:27:09 -06:00
Victor Oliveira e9053654a7 Better Classic UI touch resolution (#20004) 2020-11-03 17:25:33 -06:00
Victor Oliveira 0be276482e Show un-mounted media slot (#20005) 2020-11-03 17:21:15 -06:00
Scott Lahteine 7e55cbf798 DWIN cleanup, preserve Z offset 2020-11-03 17:18:05 -06:00
Victor Oliveira f131f58124 Add a filament runout note (#19973)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-02 20:22:14 -06:00
thinkyhead 5a4a6285bb [cron] Bump distribution date (2020-11-03) 2020-11-03 00:09:58 +00:00
Victor Oliveira e7ebb66200 Fix STM32 HW Serial + EP compile (#19990) 2020-11-01 20:38:10 -06:00
Victor Oliveira 5deca5a18f Increase SPI Speed on LPC. Color and Classic UI for MKS SGEN L. (#19945) 2020-11-01 20:15:06 -06:00
thinkyhead 05033bb9d6 [cron] Bump distribution date (2020-11-02) 2020-11-02 00:09:42 +00:00
Alexander D. Kanevskiy 83097657d5 Y-center GLCD status logo, reorganize (#19954)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-01 17:44:46 -06:00
Victor Oliveira 12e8861a1c Reset calibration screen touch timer on click (#19951) 2020-11-01 04:42:53 -06:00
Scott Lahteine 22bf2b49c6 Clean up SPI and ST7920 defines (#19956) 2020-11-01 04:40:59 -06:00
Jason Smith 4a39c8cd53 Get STM32 clock rates from framework (#19978)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-11-01 02:39:30 -06:00
thinkyhead c05beb74a9 [cron] Bump distribution date (2020-11-01) 2020-11-01 00:10:34 +00:00
Alexander Semion cd89fa141b Add SPINDLE_SERVO option (#19971) 2020-10-31 17:42:05 -05:00
Victor Oliveira 76f4dd34e0 Put PIO "debug" build in the corner (#19975) 2020-10-31 17:14:10 -05:00
Nick da60dcbf2e Fix Chiron probe low point (#19962) 2020-10-31 16:54:31 -05:00
Scott Lahteine 368a581de9 Cutter power cleanup 2020-10-31 16:51:42 -05:00
Julien Lirochon 24c5259005 Fix SpindleLaser::cpwr_to_pct() maths (#19970) 2020-10-31 16:19:51 -05:00
Scott Lahteine 2110739138 Cutter enable inline at full power
Co-Authored-By: Luu Lac <45380455+shitcreek@users.noreply.github.com>
2020-10-31 16:17:48 -05:00
thinkyhead a4a487b0cc [cron] Bump distribution date (2020-10-31) 2020-10-31 00:09:17 +00:00
thinkyhead 6071a0835a Fix bilinear_line_to_destination definition
See #19431
2020-10-30 00:18:46 -05:00
Orel a272c019f9 Rename, adjust Dagoma F5 (#19947) 2020-10-29 20:02:29 -05:00
thinkyhead dde86a4179 [cron] Bump distribution date (2020-10-30) 2020-10-30 00:10:04 +00:00
Scott Lahteine f8d57370d0 gcode_D EEPROM size, cleanup
Fixes #19920

Co-Authored-By: Orel <37673727+0r31@users.noreply.github.com>
2020-10-29 17:34:17 -05:00
Victor de315c97b1 FAST_PWM for STM32F1 (#19952) 2020-10-29 17:17:04 -05:00
Giuliano Zaro 1247f73754 Update Italian language (#19953) 2020-10-29 16:27:01 -05:00
Victor Oliveira 50ba20fe1f PIO env for MKS Nano boards in STM32 (#19905) 2020-10-29 02:01:25 -05:00
Marcio Teixeira b6856dcb99 Improvement and fixes to FTDI touch UI
- Fixed incorrect LCD text string
- Fixed incorrect refresh of filament change screens
- Allow host control via touch UI
- Updates to leveling menu
- Modified ExtUI::isPrinting() to check if the job timer is running
- Added ExtUI method to check whether a host print is paused
2020-10-29 01:14:15 -05:00
Scott Lahteine 54ec6a0ce2 Tweak code formatting 2020-10-29 01:14:15 -05:00
Victor Oliveira dca7c5d1ad Color UI for MKS SGen-L V2 (#19919) 2020-10-29 00:52:50 -05:00
Scott Lahteine 7473241438 .bin and .woff are binary 2020-10-29 00:49:18 -05:00
Scott Lahteine be0c9ff705 Fix comments, spacing 2020-10-29 00:49:18 -05:00
Scott Lahteine 3f644b6275 Add a note about substitution chars 2020-10-29 00:21:41 -05:00
Victor Oliveira 838220e4b3 Keep SPI active on LPC176x (#19932) 2020-10-28 23:47:12 -05:00
Victor Oliveira 18a5000718 Permit spaces in dependencies g++ path (#19929) 2020-10-28 23:45:10 -05:00
thinkyhead 21674b2879 [cron] Bump distribution date (2020-10-29) 2020-10-29 00:16:59 +00:00
Alexander Fomichev 12dec2563a Generalize BTT SKR E3-DIP version (#19910) 2020-10-27 21:59:22 -05:00
ellensp 603e4d66ac AZTEEG X5 mini LED pins (#19909) 2020-10-27 21:57:32 -05:00
Gurmeet Athwal 90fcb82a3e Update ExtUI path in config comment (#19908) 2020-10-27 21:55:49 -05:00
Victor Oliveira 94a6844521 Color UI circular task queue (#19918) 2020-10-27 21:54:30 -05:00
Jason Smith bdb3f1ae2f Fix LCD menus + DAC (#19907) 2020-10-27 21:40:12 -05:00
Orel e3f1f7cd85 Fix DAC-related bugs (#19921)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-27 21:37:10 -05:00
Lucas Seiki Oshiro c0b4f4eb47 "Sound: ON/OFF" menu item (#19901)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-27 20:41:12 -05:00
thinkyhead 68ef3ac675 [cron] Bump distribution date (2020-10-28) 2020-10-28 00:16:40 +00:00
Speaka 2cae26ee35 Fix G35 PROGMEM strings (#19926) 2020-10-27 17:25:01 -05:00
Scott Lahteine 83aa3dbfa6 Archim test matching env 2020-10-27 17:21:54 -05:00
Scott Lahteine 82ac8a1e76 Fix Archim 1, add Archim 1&2 tests 2020-10-27 16:21:03 -05:00
Victor Oliveira c60696dbae Keep watchdog refreshed in LVGL init (#19900) 2020-10-27 15:16:35 -05:00
Victor Oliveira 75b0e3246a Fix some LVGL bugs (#19904) 2020-10-27 15:09:19 -05:00
Marcio Teixeira a74e82fbae Fix NO_WORKSPACE_OFFSETS compile 2020-10-27 15:05:30 -05:00
thinkyhead 8cf672104e [cron] Bump distribution date (2020-10-27) 2020-10-27 00:16:29 +00:00
thinkyhead 8bdde8d7a0 [cron] Bump distribution date (2020-10-26) 2020-10-26 00:16:36 +00:00
Scott Lahteine c4f3f67537 Followup for BTN_ENC_EN 2020-10-25 04:19:59 -05:00
Scott Lahteine ec23e37a4a Clean up comments, USB flash, NULLs 2020-10-25 04:10:00 -05:00
Scott Lahteine 00fbe50bbe Format Nucleo F767ZI pins 2020-10-25 04:07:15 -05:00
ellensp 2e48d6cf70 Fix PASSWORD compile w/out LCD (#19888) 2020-10-25 03:46:21 -05:00
René Pasold ec04517710 Support Fysetc Mini 12864 + GT2560 A(+) (#19878) 2020-10-25 03:43:21 -05:00
ellensp 8cc0369d97 Use LiquidCrystal_I2C@1.1.4 for RA_CONTROL_PANEL (#19875) 2020-10-24 19:46:27 -05:00
Jason Smith f7cdc05937 Update ZMIB_V2 env names (#19886) 2020-10-24 19:44:46 -05:00
Jason Smith ea0afd0b4d Ignore NativeEthernet on AT90USB1286 (#19885) 2020-10-24 19:43:42 -05:00
Gurmeet Athwal 62ba799d72 Add 'BTN_ENC_EN' for SKR V1.4 with DOGM (#19796) 2020-10-24 19:41:52 -05:00
thinkyhead b6508c4bd1 [cron] Bump distribution date (2020-10-25) 2020-10-25 00:16:51 +00:00
Victor Oliveira 853d01de68 More LVGL UI code reduction (#19879) 2020-10-24 17:28:31 -05:00
Nick 311b65b225 Fix Anycubic Chiron "Ready" detection (#19880)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-24 16:48:29 -05:00
Victor Oliveira b632b52b11 Update PIO dependencies script 2020-10-24 16:25:14 -05:00
Victor Oliveira 9630c2683c More MKS UI cleanup, optimization (#19869)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-23 23:37:45 -05:00
Keith Bennett f53d5a0872 Fix Chitu V5/V6 FAN2 pins (#19874) 2020-10-23 23:29:58 -05:00
Scott Lahteine 5917b5cf5c Fix warning in gcode_D 2020-10-23 19:25:32 -05:00
thinkyhead 2a6d48bf9e [cron] Bump distribution date (2020-10-24) 2020-10-24 00:16:09 +00:00
Scott Lahteine 0967c87a8f Pins post-process header (#19860) 2020-10-23 14:52:59 -05:00
Scott Lahteine 0ffee29a11 Case light brightness cleanup (#19856)
Co-authored-by: Chris <chris@chrisnovoa.com>
2020-10-22 22:31:48 -05:00
Scott Lahteine c75e98dc84 Shorten a method name 2020-10-22 20:54:11 -05:00
qwewer0 c7f7f2403d Fix Chopper Timing extra axis defaults (#19850) 2020-10-22 20:46:48 -05:00
Scott Lahteine 4533a197d5 Slim down MKS UI code (#19843) 2020-10-22 20:22:17 -05:00
thinkyhead 1ed853f5d6 [cron] Bump distribution date (2020-10-23) 2020-10-23 00:16:15 +00:00
George Fu f83bbce3a3 Fix TMC serial port for FYSETC AIO_II (#19842) 2020-10-22 06:29:29 -05:00
ManuelMcLure 4fccb92e07 Configure TMC interpolation per driver (#19828) 2020-10-22 06:27:33 -05:00
thinkyhead ec596315bd [cron] Bump distribution date (2020-10-22) 2020-10-22 00:16:17 +00:00
Foxies 9aee6674bb FLSUN Delta QQS-Pro pins (#19793) 2020-10-21 19:00:57 -05:00
Scott Lahteine 7d64de646a Add power-on/off G-code options (#19837)
Co-authored-by: Chris <chris@chrisnovoa.com>
2020-10-21 15:03:11 -05:00
Keith Bennett 1e4691f02a BigTreeTech SKR Mini MZ V1 (#19818) 2020-10-21 14:14:19 -05:00
Mauro 4fe4fb0585 Fresh Web GUI (based on bootstrap.js) (#19812) 2020-10-21 13:51:14 -05:00
TheMichalcinOfficial cf74248949 Support for Ramps-S v1.2 (#19815) 2020-10-21 13:44:55 -05:00
Scott Lahteine 072f996af7 General cleanup, mostly MKS UI (#19825) 2020-10-21 12:45:27 -05:00
Scott Lahteine 1f7c085527 ESP32: i2s_init requires I2S_STEPPER_STREAM 2020-10-20 22:36:31 -05:00
uwedamm a596969049 Fix G2/G3 P<circles> E and Z motion (#19797)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-20 20:26:07 -05:00
thinkyhead 11badea962 [cron] Bump distribution date (2020-10-21) 2020-10-21 00:16:12 +00:00
Tanguy Pruvot d04ec15849 Longer3D: LONGER_LK_TFT28 now set by config (#19817) 2020-10-20 15:06:06 -05:00
ellensp 69d55cabd4 Handle dependent Stepper Driver defaults later (#19820)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-20 15:01:46 -05:00
bilsef 9baa944460 Teensy 4.1 Ethernet support (#19801) 2020-10-20 14:35:29 -05:00
Scott Lahteine 92767f5513 Misc. cleanup, serial strings 2020-10-19 20:39:36 -05:00
thinkyhead b320b1a3c2 [cron] Bump distribution date (2020-10-20) 2020-10-19 20:39:36 -05:00
Scott Lahteine 35b9e9b4a5 Tweak a host prompt call 2020-10-19 20:39:36 -05:00
Scott Lahteine 21ce39aa9b Use PGM serial strings 2020-10-19 04:25:48 -05:00
ellensp ea80b2c8fc Ensure A4988 for unspecified driver type (#19798)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-19 03:16:02 -05:00
Scott Lahteine f501930728 Document M125 P 2020-10-19 00:38:11 -05:00
thinkyhead 8285953c1b [cron] Bump distribution date (2020-10-19) 2020-10-19 00:16:11 +00:00
InsanityAutomation 6375829448 Apply home offsets to probing, Z Safe Homing (#19423)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-18 15:53:12 -05:00
Scott Lahteine b0f0dc683d ABM Teensy 3.6 build 2020-10-18 00:20:25 -05:00
Jago Strong-Wright c2802d35bb Distinct Chopper Timing settings (#19781)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-10-17 22:35:19 -05:00
thinkyhead 2693d0eb27 [cron] Bump distribution date (2020-10-18) 2020-10-18 00:16:03 +00:00
Sten Uusvali 6fed11896b Fix M503 output for M907 motor current (#19777)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-10-17 16:11:22 -05:00
Curtis Jenkins 178721a329 Fix Smoothieboard digipots i2c pin (#19784) 2020-10-17 15:05:50 -05:00
Scott Lahteine 263f29a96a MarlinUI followup 2020-10-16 20:48:59 -05:00
Scott Lahteine e99f967372 Starting fan followup 2020-10-16 20:38:30 -05:00
Victor Oliveira 313efa33ae Fix starting fan with bad material preset index (#19773) 2020-10-16 20:05:45 -05:00
Scott Lahteine eaf6777a66 Rename ultralcd => marlinui 2020-10-16 19:55:18 -05:00
Scott Lahteine 0f6fc48f85 touch_ms followup 2020-10-16 19:55:18 -05:00
thinkyhead 1e13a7161a [cron] Bump distribution date (2020-10-17) 2020-10-17 00:15:41 +00:00
arminth 3ed0b24831 Provide FYSETC F6 13 LCD pins for HD44780 (#19769) 2020-10-16 17:07:34 -05:00
Jason Smith 050ba0e0a0 LCD conditionals followup (#19766) 2020-10-16 17:04:10 -05:00
nb-rapidia 418b3e5ee2 Fix IDEX layer shift and DIR states (#19756)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-16 16:59:55 -05:00
Serhiy-K aa901ac4a2 Fix HAL/STM32 FastIO for analog pins (#19735) 2020-10-16 16:21:21 -05:00
Victor Oliveira 0b80841c38 Fix Color UI external_control, wait_for_release (#19771)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-16 16:19:48 -05:00
Victor Oliveira e370834c35 Handle M410 in the main task (#19752) 2020-10-16 16:11:00 -05:00
Jason Smith 9b9cd698a5 Fix SAMD Serial name macro (#19765) 2020-10-16 16:04:51 -05:00
mks-viva a4b89e67c6 Update MKS SGen-L V2 RGB LED pins (#19762) 2020-10-16 02:16:09 -05:00
Andreas Setterlind 814db9d7c9 Add ESP32 160MHz to README (#19748) 2020-10-16 02:06:05 -05:00
Jason Smith 7f83231385 Fix NUCLEO_F767ZI build, add tests (#19746) 2020-10-16 02:04:55 -05:00
Victor Oliveira 5247bb11f7 Sanity check unsupported EP (#19745) 2020-10-16 02:03:45 -05:00
thinkyhead 763544585a [cron] Bump distribution date (2020-10-16) 2020-10-16 00:15:39 +00:00
Victor Oliveira 8a885dc61b Fix TOUCH_SCREEN + TFT_LVGL_UI compile (#19754) 2020-10-15 18:38:27 -05:00
Victor Oliveira f74b5a6b9b Update Probe Offset Wizard for Color UI (#19742) 2020-10-15 14:15:11 -05:00
rlojek 72e3238c3f Fix ADVANCED_PAUSE && !PREVENT_COLD_EXTRUSION (#19740) 2020-10-15 13:44:57 -05:00
Peter Hall f86c6851fc Default LASER_POWER_INLINE to OFF (#19727) 2020-10-15 13:18:43 -05:00
Scott Lahteine f6ffbe548c TFT Presets, Generic options, Sanity checks (#19723) 2020-10-15 03:00:27 -05:00
thinkyhead 04c27573d6 [cron] Bump distribution date (2020-10-15) 2020-10-15 00:15:10 +00:00
Jason Smith 9a23fb5863 Fix SET_SOFT_ENDSTOP_LOOSE w/out soft endstops (#19734) 2020-10-14 13:50:03 -05:00
Jason Smith 90d364fc37 Revert at90usb1286 conditional (#19733) 2020-10-14 13:48:46 -05:00
Jason Smith 79d51581ba Fix digipot compilation (#19731) 2020-10-14 13:44:03 -05:00
Jason Smith 9507c49b18 Fix mega2560ext environment (#19730) 2020-10-14 13:43:36 -05:00
thinkyhead 87b07d6f2f [cron] Bump distribution date (2020-10-14) 2020-10-14 00:15:03 +00:00
Keith Bennett 64711e0d56 If needed, home before G34 (#19713) 2020-10-13 18:13:25 -05:00
Victor Oliveira bf33b2f862 Watchdog Refresh for LVGL Asset Load (#19724) 2020-10-13 18:12:34 -05:00
Jason Smith 54315252c7 Add NUCLEO-F767ZI dev board (#19373)
Co-authored-by: Lorenzo Delana <lorenzo.delana@gmail.com>
2020-10-13 18:03:09 -05:00
Scott Lahteine 733eb127e9 Simple bool in soft_endstops_t 2020-10-13 14:55:14 -05:00
Victor Oliveira 2132efa981 TFT followup fixes (#19710) 2020-10-13 11:58:50 -05:00
thinkyhead da79674f84 [cron] Bump distribution date (2020-10-13) 2020-10-13 00:15:19 +00:00
Scott Lahteine ae36ed3903 Move @section temperature 2020-10-12 18:02:25 -05:00
Victor Oliveira cc4db8e4a9 Fix UTF8 handling for Color UI (#19708) 2020-10-12 18:01:03 -05:00
Keith Bennett f9f8fd37de Sanity-check mutually-exclusive G34 features (#19706) 2020-10-12 16:52:56 -05:00
Earle F. Philhower, III 193c0a52d9 Add loose soft endstop state, apply to UBL fine-tune (#19681)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-12 16:48:04 -05:00
Jason Smith f5139f8bf4 Add D100 Watchdog Test (#19697) 2020-10-12 16:39:31 -05:00
Victor Oliveira c0920bbf6a TFT Refactoring (#19192)
* split tft folder in two: tft for color ui; tft_io for shared tft code

* after the files got moved, now the code was moved to the right place

* classic ui using TFT IO init lcd codes

* feature to compile tft_io when enabled

* compiling fix

* lvgl spi tft working with tft io init codes

* there is no need for separeted fsmc and spi class in lvgl anymore, as tft io handle everything

* remove debug

* base for TFT rotation and mirroring API, and ILI9488 support

* ST7796S rotate and mirror support

* ST7789V rotate and mirror support

* ST7735 rotate and mirror support

* ILI9341 rotate and mirror support

* ILI9328 rotate and mirror support

* R61505 rotate and mirror support

* MKS TFT definitions

* more configs for mks tfts

* update config

* naming typo

* to configure the user interface

* ANYCUBIC_TFT35

* tft configs

* support for SSD1963

* tft display types

* updated conditionals lcd; first board fully working with the new code - all 3 ui!

* compatiblity

* changed name

* move classic ui file name

* rename TURN -> ROTATE

* GRAPHICAL_TFT_ROTATE_180 deprecated

* first fsmc board fully working - chitu v5

* mks robin nano v1.2 + tft 35 ok!

* right pin name

* anycubic tft tested in a TRIGORILLA_PRO

* chitu v6

* nano 32 tft orientation

* mks tft43

* mks tft43 rotation

* fixed LONGER LK tft setup

* GRAPHICAL_TFT_UPSCALE defined by the display type

* better offsets defaults

* Update Configuration.h

* Update tft_fsmc.cpp

* Update Conditionals_LCD.h

* Tweak comments

* update nano tests

* Revert "update nano tests"

This reverts commit a071ebbfad30e28855a4a5695ec8a726542a1a65.

* default tft

* outdated comments

* to not break non-vscode builds

* upscale tft 35

* support tft 180 rotation for color ui

* Each TFT Driver is responsible for its default color mode.

* use auto detect in mks displays, because some of them could be shipped with diferent drivers

* extra s

* unused code

* wrong -1

* missing mirror options

* Smaller regex pattern

* Comment updates

* Clean up old defines

* Apply pins formatting

* GRAPHICAL_TFT_ROTATE_180 => TFT_ROTATE_180

* MKS_ROBIN_TFT_V1_1R

* merge fix

* correct resolution

* auto is default, dont need be there, and it will allow the user to configure it even for named displays

* to not use rotation with MKS_ROBIN_TFT_V1_1R

* i like () in macros

* avoid sleepy commits

* default for st7789 is rgb

* nano follow up

* to allow ili9328 rotation

* default is rgb

* boards merge follow up

* to match bootloader orientation

* HAS_TOUCH_XPT2046 is not hal specific anymore

* lets not forget LPC

* 180 rotation for ili9328 and R61505

* Clean up whitespace

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-10-12 16:38:07 -05:00
Scott Lahteine bcf65aa503 Fix screen click reading too often (#19696)
Co-authored-by: andreibobirica <39415547+andreibobirica@users.noreply.github.com>
2020-10-12 00:59:30 -05:00
Jason Smith a866a758cc Allow MAX31865 resistance values configuration (#19695) 2020-10-12 00:40:39 -05:00
InsanityAutomation e7838c5f79 G34 Mechanical Gantry Calibration (like Prusa M915) (#18972)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-11 21:34:27 -05:00
qwewer0 f21b91f1a7 Add REPORT_TRAMMING_MM option (#19682)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-11 21:30:18 -05:00
Jason Smith edda32e6b4 Fix motion compile w/out probe-oriented settings (#19684) 2020-10-11 19:42:50 -05:00
Victor Oliveira 639b0b8f50 Option to prevent (extra) Watchdog init on STM32 (#19693) 2020-10-11 19:31:21 -05:00
Victor Oliveira 18dd0d00a6 Implement wait_for_user for Color UI (#19694) 2020-10-11 19:26:16 -05:00
Jason Smith 24fd19259d Fix I2C_ADDRESS sign warning (#19685) 2020-10-11 19:23:23 -05:00
thinkyhead bdd555990b [cron] Bump distribution date (2020-10-12) 2020-10-12 00:15:08 +00:00
Jason Smith c762b7c91b Fix various errors, warnings in example config builds (#19686)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-11 19:06:57 -05:00
Jason Smith 45731bd022 Fix at90usb1286 build (#19687)
* Skip check for USBCON during dependency detection
* Ignore incompatible Teensy_ADC library, which requires Teensy >= 3
* Add IS_AT90USB

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-11 18:13:01 -05:00
Scott Lahteine 492ba2a111 Digipots refactor / cleanup (#19690) 2020-10-11 14:58:35 -05:00
thinkyhead 349465b168 [cron] Bump distribution date (2020-10-11) 2020-10-11 00:15:24 +00:00
Scott Lahteine 98427ea92a Save PLR on resume from pause (#19676)
Co-Authored-By: shahab <32130261+SHBnik@users.noreply.github.com>
2020-10-10 12:09:44 -05:00
Victor Oliveira a90edd5eb4 Restore correct STM32 port-bits code (#19678) 2020-10-10 11:47:28 -05:00
Serhiy-K 6fdaaf3d20 Fixes for TFTGLCD Panel, FastIO (#19614) 2020-10-10 05:08:01 -05:00
ellensp 406f8363bc HAS_CHARACTER_LCD => HAS_MARLINUI_HD44780 (#19673) 2020-10-10 04:39:12 -05:00
Victor Oliveira 8e03a4cb93 Keep HAL tasks running during PID Autotune (#19671) 2020-10-09 23:35:41 -05:00
thinkyhead 1403260487 [cron] Bump distribution date (2020-10-10) 2020-10-10 00:14:40 +00:00
Scott Lahteine 6831341ab4 Batch appercase hex values 2020-10-09 16:55:27 -05:00
Scott Lahteine 0988af453c Optional M42/M226; Add more features filters (#19664) 2020-10-09 16:42:23 -05:00
Victor Oliveira 631457ffea Support for Debug Codes - Dnnn (#19225)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-09 06:28:53 -05:00
石立枫 bec1844954 Support for FLY MINI (#19185) 2020-10-09 06:09:27 -05:00
Keith Bennett e6d0a8ef66 Fix touch ifndefs (#19661) 2020-10-09 02:52:06 -05:00
Giuliano Zaro 70ab146cbb Update Italian language (#19654) 2020-10-09 02:51:25 -05:00
thinkyhead 33b2e12886 [cron] Bump distribution date (2020-10-09) 2020-10-09 00:14:12 +00:00
Samantaz Fox 1de29026d5 Fix and improve Makefile / CMake (#19640) 2020-10-08 18:40:54 -05:00
Scott Lahteine 854af7a4bf Permit touch calibration override 2020-10-08 16:59:54 -05:00
Scott Lahteine f72c559824 Use 0xFF (not 'ff') for byte transfer 2020-10-08 15:18:43 -05:00
ellensp 321afd5fef Apply env:mega2560ext to relevant boards (#19624) 2020-10-08 02:30:31 -05:00
qwewer0 91df2bea80 Update PROBE_OFFSET_WIZARD comment (#19652) 2020-10-07 20:43:08 -05:00
thinkyhead 5de2946999 [cron] Bump distribution date (2020-10-08) 2020-10-08 00:12:06 +00:00
qwewer0 c650b752f1 More accessible PROBE_OFFSET_WIZARD (#19647) 2020-10-07 13:01:01 -05:00
ellensp c12f41ec6f Restore ° to 6x9 small info font (#19645) 2020-10-07 13:00:08 -05:00
Scott Lahteine 2c6ec0c999 Chamber vent/fan followup 2020-10-06 19:42:11 -05:00
Scott Lahteine f1e563d8cf Fix small font section directive, mixer warning 2020-10-06 19:18:00 -05:00
thinkyhead 6de179eb7d [cron] Bump distribution date (2020-10-07) 2020-10-07 00:14:42 +00:00
Scott Lahteine 584ffc6f52 Update language fonts 2020-10-06 18:37:32 -05:00
ladismrkolj 2c99c1e06f Add Chamber servo vent, auto fan (#19519) 2020-10-06 18:36:01 -05:00
signetica f95a2f6d91 Fix Ender-3 V2 DWIN Stop SD Print (#19642)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-06 16:58:28 -05:00
Scott Lahteine b31e358270 Improve retract / unretract labels 2020-10-06 03:01:28 -05:00
thinkyhead 673835e5d9 [cron] Bump distribution date (2020-10-06) 2020-10-06 00:14:30 +00:00
Scott Lahteine f5bae208cc Trailing whitespace 2020-10-05 17:16:42 -05:00
Scott Lahteine c25c31b1de Sync config to examples 2020-10-05 17:16:42 -05:00
Mathew Winters 343441d746 Z Probe Offset Wizard (#18866) 2020-10-05 00:31:20 -05:00
Cory Ory 78fc4c8947 Allow bypass for cold E movement (#19606) 2020-10-04 19:51:21 -05:00
thinkyhead 86165ceca5 [cron] Bump distribution date (2020-10-05) 2020-10-05 00:14:33 +00:00
Ryan V1 8989353fab Fix Archim1 stepper timing (with new variant) (#19596) 2020-10-04 17:41:41 -05:00
Scott Lahteine 7e0524109e Add HAS_FAST_MOVES 2020-10-04 17:31:10 -05:00
ellensp d88e694d06 Fix Z_AFTER_HOMING without probe (#19607) 2020-10-04 16:47:06 -05:00
Scott Lahteine 44d50c2bd3 Move SF_ARC_FIX option 2020-10-04 15:46:00 -05:00
Speaka 58548f5051 Fix German translation purging/unloading (#19615) 2020-10-04 14:50:12 -05:00
Scott Lahteine 782eabc226 Shared singlenozzle item 2020-10-04 14:47:06 -05:00
Scott Lahteine 0ff3ae3cc6 Fix Tune/Fan edit items
- Fixes #19617
- Followup to #18400
2020-10-04 14:29:44 -05:00
thinkyhead 8088c7dcd5 [cron] Bump distribution date (2020-10-04) 2020-10-04 00:14:30 +00:00
thinkyhead 604d10d307 [cron] Bump distribution date (2020-10-03) 2020-10-03 00:14:05 +00:00
Ryan V1 8dcc72ce9c Fix 'bossac' upload on Windows (#19545) 2020-10-02 17:31:33 -05:00
Marcio T d06bcd6dd3 Touch UI support for X2, Y2 and Z2 (#19538) 2020-10-02 17:30:32 -05:00
ellensp b3c2ee56f9 Fix wrappers on HAL/STM32F1 .cpp files (#19581)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-02 17:28:08 -05:00
ellensp 435e98ceed Fix TEMP_ADC_PROBE support for STM32F1 (#19582)
Co-authored-by: ellensp <ellensp@ellensp-HP-ProBook-6470b.fritz.box>
2020-10-02 17:19:43 -05:00
Andreas Setterlind 7d21dfc938 Add Configurations repo info to config/README.md (#19583)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-10-02 17:16:55 -05:00
ellensp 2e1ba73926 Fix compile of MMU2 with S-mode disabled (#19584) 2020-10-02 17:12:17 -05:00
bilsef e8a62ee3cf Fix onboard SD card support for Teensy 3.6 & 4.1 (#19593) 2020-10-02 17:08:50 -05:00
Scott Lahteine 4e8eea8e78 Adjust HAL platform defines, comments 2020-10-02 17:05:59 -05:00
Scott Lahteine d83baf8925 Replace tabs with spaces 2020-10-02 17:05:59 -05:00
Victor Oliveira 348570fd68 Minor SPI fixes, systick_callback for STM32F1 HAL compatibility (#19565) 2020-10-01 20:54:22 -05:00
thinkyhead cf61562196 [cron] Bump distribution date (2020-10-02) 2020-10-02 00:13:10 +00:00
swissnorp d02d7a95d1 G35 workaround for Pronterface "feature" (#19577) 2020-10-01 18:17:11 -05:00
Stéphane ba07c26761 Fix Anycubic i3 Mega target temperature display (#19572)
Also includes a workaround for missing (probably un-fetched) long name in file listing
2020-10-01 18:09:39 -05:00
Ilya e56295851f No move on Park = No move on Resume (#19569) 2020-10-01 17:51:11 -05:00
Roman Moravčík f7d93dadeb Update Slovak language (#19561) 2020-10-01 17:47:24 -05:00
Victor Oliveira 5c87762f9e Fix Buzzer (pin) init for uninitialized FastIO (#19559) 2020-09-30 20:14:19 -05:00
Victor Oliveira ea78514ff3 Fix Move Screen with disabled Touch (#19558) 2020-09-30 20:06:32 -05:00
thinkyhead 2616feb3df [cron] Bump distribution date (2020-10-01) 2020-10-01 00:14:15 +00:00
thinkyhead f4255b14e8 [cron] Bump distribution date (2020-09-30) 2020-09-30 00:13:59 +00:00
thinkyhead 41774ec9de [cron] Bump distribution date (2020-09-29) 2020-09-29 00:13:48 +00:00
Nick 60155aa442 Anycubic Chiron full feature support (#19505) 2020-09-28 18:53:40 -05:00
Scott Lahteine 169ec65e72 Fix up E3 DWIN Power Panic 2020-09-28 17:17:12 -05:00
Scott Lahteine 660420050b Fetch longname when a file exists 2020-09-28 17:17:12 -05:00
Scott Lahteine 0ddb4d88a9 Add extra CardReader debugging 2020-09-28 17:17:12 -05:00
Scott Lahteine 9142f5446a Improve Power-Loss Recovery (#19540) 2020-09-28 15:52:21 -05:00
Scott Lahteine 6d4c82f4d8 Fix diveToFile with open Dir object (#19539)
* Fix CardReader diveToFile
* Add CardReader::fileExists
2020-09-28 15:46:12 -05:00
qwewer0 4424645e04 Multi-line comments cleanup (#19535) 2020-09-28 14:53:50 -05:00
Pavel Melnikov 05517e2096 Change "Fr" on LCD to ">>" (#18830) 2020-09-28 04:55:46 -05:00
Scott Lahteine be7bbadabe Default E3 V2 to English 2020-09-28 04:39:29 -05:00
Scott Lahteine d4a5b10133 Tweaks to git helpers 2020-09-28 03:57:33 -05:00
Scott Lahteine 4584a52ba5 Update configs to 020007 2020-09-28 03:55:14 -05:00
Serhiy-K 27bdf4b24e MarlinUI for SPI/I2C TFT-GLCD character-based display bridge (#19375) 2020-09-28 01:52:38 -05:00
Scott Lahteine c2c6a679ea Rename LCD conditionals (#19533) 2020-09-28 01:13:27 -05:00
Scott Lahteine 1c372df449 Prettier INI 2020-09-28 01:11:48 -05:00
Scott Lahteine 3a91ab4706 Menu tweak 2020-09-28 01:02:05 -05:00
Scott Lahteine 303d871ca7 Update AnyCubic deps 2020-09-28 01:02:05 -05:00
Emperor 00c09e95ac Thermistor: Kis3d Silicone heater + precision cast plate (#19528) 2020-09-27 21:38:30 -05:00
Tanguy Pruvot f3de0f6c53 Working LCD_USE_DMA_FSMC (#19522) 2020-09-27 21:28:48 -05:00
Siana Gearz 7415e4e66d Fix Allen Key Probe pin test (#19520) 2020-09-27 21:25:35 -05:00
Victor Oliveira 6572d7131f LVGL followup fixing "C", etc. (#19517) 2020-09-27 21:22:08 -05:00
thinkyhead d9d920e0b3 [cron] Bump distribution date (2020-09-28) 2020-09-28 00:13:59 +00:00
Scott Lahteine cd5735130d CardReader cleanup 2020-09-27 16:58:50 -05:00
Scott Lahteine 3245a5fdf6 E3 DWIN: "No Media" message 2020-09-27 16:55:57 -05:00
Scott Lahteine 37cf156223 E3 DWIN: General cleanup 2020-09-27 16:55:57 -05:00
Scott Lahteine d2741c8680 Allow M524 between M23 and M24 2020-09-27 16:55:57 -05:00
Scott Lahteine dd118e2f36 Drop extra Bed PID 2020-09-27 16:55:57 -05:00
Scott Lahteine 4975e93350 Tweak MMU beeps, misc. cleanup 2020-09-27 02:03:00 -05:00
thinkyhead 82e602c847 [cron] Bump distribution date (2020-09-27) 2020-09-27 00:14:12 +00:00
Trocololo 88d7f4d7be MMU2 S Mode spins the BMG gears during C0 (#19429) 2020-09-25 20:28:01 -05:00
Victor Oliveira 5cf2cf2be9 Allow ColorUI color customization (#19484) 2020-09-25 20:05:23 -05:00
Victor Oliveira a7f5d38da7 Fix MBL "Click to continue" on Color UI touchscreen (#19514) 2020-09-25 19:58:45 -05:00
Keith Bennett ec4a0a3e0d SKR E3 Turbo followup (#19513) 2020-09-25 19:49:36 -05:00
Luke Harrison 97e0d55073 Fix SKR 1.4 thermistor pin comments (#19510) 2020-09-25 19:48:24 -05:00
ellensp 7efd740950 Fix MKS Robin undefined pins error (#19507) 2020-09-25 19:47:22 -05:00
Victor Oliveira 61d96ce1c9 Escape the M33 string arg (#19515) 2020-09-25 19:45:01 -05:00
thinkyhead f902e208a3 [cron] Bump distribution date (2020-09-26) 2020-09-26 00:13:15 +00:00
Victor Oliveira 178a1da165 TFT: No timeout on Move Screen (#19426) 2020-09-25 14:58:28 -05:00
Scott Lahteine 7ce91c5ffe Sanity check old serial names 2020-09-24 21:46:13 -05:00
Keith Bennett 23faf902ab BigTreeTech SKR E3 Turbo (#19500) 2020-09-24 21:19:04 -05:00
Jason Smith da6c8317a7 Fix and improve STM32F1 serial (#19464) 2020-09-24 20:28:48 -05:00
thinkyhead 6bb6f7f288 [cron] Bump distribution date (2020-09-25) 2020-09-25 00:13:26 +00:00
Scott Lahteine b3223d7b41 Fix some pin inits 2020-09-23 21:36:39 -05:00
Scott Lahteine 568f292883 HAL/serial followup 2020-09-23 21:36:31 -05:00
Scott Lahteine 4b928b2da8 HAL and serial cleanup
Co-Authored-By: Jason Smith <20053467+sjasonsmith@users.noreply.github.com>
2020-09-23 19:45:33 -05:00
thinkyhead 928d874dea [cron] Bump distribution date (2020-09-24) 2020-09-24 00:13:39 +00:00
Scott Lahteine ecc8013812 Whitespace cleanup 2020-09-23 17:43:32 -05:00
ellensp 6634bedb25 Define UART pins for LPC debug based on LPC_PINCFG_UART (#19475) 2020-09-23 16:03:07 -05:00
ellensp e3d4e328f9 Preserve brightness in EEPROM validate (#19485)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-09-23 15:44:15 -05:00
Scott Lahteine 93421f3a00 Teensy pins cleanup 2020-09-23 15:34:10 -05:00
Jason Smith 023cb54fae MKS Robin Mini uses ONBOARD_SPI_DEVICE (#19460) 2020-09-23 15:07:34 -05:00
Victor Oliveira 90bc1993b6 Include pins.h in dependencies script (#19468) 2020-09-23 15:06:36 -05:00
Marcio T 362145f608 New Touch UI buttons (#19465) 2020-09-22 21:01:01 -05:00
Jason Smith 5d0429ee2a Catch a TMC address conflict early (#19458) 2020-09-22 20:36:31 -05:00
Scott Lahteine 5f5f76956f Fix up tests, warnings 2020-09-22 19:59:02 -05:00
thinkyhead fd8cd31504 [cron] Bump distribution date (2020-09-23) 2020-09-23 00:13:17 +00:00
Scott Lahteine a87c517da5 Fix Teensy 4.1 include 2020-09-22 17:52:42 -05:00
Jason Smith d051c2adbd Update board/teensy comment (#19456) 2020-09-22 17:36:59 -05:00
makerbase 63e7ae793b MKS SGEN L V2 adaptable heaters/fans (#19462) 2020-09-22 15:57:17 -05:00
Victor Oliveira 79dc8a2297 Define <u8,u8,u8>::softSPI (#19419) 2020-09-22 15:44:17 -05:00
riodoro1 225487f9db Fix up K8800 pins (#19476) 2020-09-22 15:08:14 -05:00
thinkyhead 47aa61c0ec [cron] Bump distribution date (2020-09-22) 2020-09-22 00:13:24 +00:00
Chris Pepper 1bfc51ad5c Update pins_ANET_10.h 2020-09-21 16:19:09 +01:00
Jason Smith fb48cd0ab4 Replace Serial with Serial1 in pins files (#19459) 2020-09-20 22:30:20 -05:00
qwewer0 0251eb85b2 Optional menu item for Assisted Tramming (#19447) 2020-09-20 22:29:34 -05:00
makerbase d8ed749045 Add MKS Robin E3P, improve LVGL UI (#19442) 2020-09-20 20:55:02 -05:00
thinkyhead 77b06dce0c [cron] Bump distribution date (2020-09-21) 2020-09-20 20:51:21 -05:00
Scott Lahteine 4f73ac7289 Add HAS_ROTARY_ENCODER 2020-09-20 20:51:21 -05:00
Scott Lahteine 60ab7a1ddb Cleanup before MKS changes 2020-09-20 20:51:21 -05:00
Scott Lahteine 76d8d1742c Add multi-extruder condition 2020-09-20 20:51:21 -05:00
Scott Lahteine 8e0fac897b Whitespace cleanup 2020-09-20 18:25:42 -05:00
thinkyhead 0c7035d8a3 [cron] Bump distribution date (2020-09-20) 2020-09-20 00:13:46 +00:00
enigmaquip b5e4511de8 Fix Creality DWIN Control menu icons (#19441) 2020-09-19 10:19:45 -05:00
ellensp 98bcb25fd4 Ultratronics Pro SPI pins (#19444) 2020-09-19 10:18:42 -05:00
qwewer0 af8f9f790a Optional Host Start menu item (#19443) 2020-09-19 10:17:24 -05:00
Marcio T 9fd06fa767 Fix case light brightness save/load (#19436) 2020-09-19 09:23:56 -05:00
InsanityAutomation 4696142a31 Fix compile for Taz Pro (#19424) 2020-09-19 09:20:15 -05:00
Scott Lahteine 435e1535cc Change some dwin defines 2020-09-19 09:04:00 -05:00
Cole Markham 4628f0e237 Fix CoreXY compile with backlash cal. (#19422) 2020-09-19 08:14:34 -05:00
thinkyhead e65deacabb [cron] Bump distribution date (2020-09-19) 2020-09-19 00:13:10 +00:00
Keith Bennett 55ba5044ef Fix missing include (#19418)
Co-authored-by: ellensp <530024+ellensp@users.noreply.github.com>
2020-09-18 04:45:56 -05:00
thinkyhead 648269e0ec [cron] Bump distribution date (2020-09-18) 2020-09-18 00:13:20 +00:00
Victor Oliveira 5b56d6698a Move screen for Color UI (#19386) 2020-09-17 06:52:21 -05:00
InsanityAutomation 62206c0386 Host Action: Start (#19398) 2020-09-17 06:36:21 -05:00
jahartley da1a60aeb6 Expose JOYSTICK_DEBUG to the general user (#19394)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-09-17 06:01:10 -05:00
Victor Oliveira 3eaa19fdb0 Fix MKS UI SPI flash typo (#19410) 2020-09-17 05:52:47 -05:00
Marcio Teixeira c539254101 Add warning to ExtUI Bed Mesh Screen. (#19397)
- Show a warning on the Mesh Bed Leveling screen if some points aren't probed.
2020-09-17 05:49:18 -05:00
deram 24d8daa01b SHOW_REMAINING_TIME for HD44780 character LCD (#19416) 2020-09-17 05:41:13 -05:00
cosmoderp 073b7f1e3a E3 V2 DWIN: Z-Offset, cleanup, versatility (#19384)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-09-17 05:35:04 -05:00
enigmaquip 5926bacea1 Add more DWIN commands, docs (#19395) 2020-09-17 03:17:47 -05:00
tovam c5204807e9 Fix missing spaces in info menu (#19404) 2020-09-17 03:07:03 -05:00
Jason Smith 9d5a9621de Demo and test multiple PID defaults (#19413) 2020-09-17 03:06:01 -05:00
thinkyhead 9cf8537051 [cron] Bump distribution date (2020-09-17) 2020-09-17 00:13:06 +00:00
Scott Lahteine 56ed55ddba MarlinUI percent methods for all 2020-09-16 07:12:24 -05:00
Scott Lahteine 217bae9ff1 More DWIN cleanup 2020-09-16 07:12:24 -05:00
Scott Lahteine 250bfac0cc E3 V2 DWIN cleanup 2020-09-16 04:35:30 -05:00
thinkyhead 57a87a278b [cron] Bump distribution date (2020-09-16) 2020-09-16 00:12:57 +00:00
thinkyhead 0b7d69d06f [cron] Bump distribution date (2020-09-15) 2020-09-15 00:13:01 +00:00
Victor Oliveira 79d4123319 Only set up SPI pins as needed (#19372) 2020-09-14 17:16:19 -05:00
Zachary Annand 648e7f73a5 More strict STATIC_ITEM_N (#19378) 2020-09-14 03:28:21 -05:00
Marcio T 941b890881 Add missing FTDI EVE menu source (#19382) 2020-09-14 03:25:20 -05:00
Scott Lahteine 0f9eb480aa Allow E3 V2 DWIN without EEPROM, POWER_LOSS_RECOVERY 2020-09-14 02:48:45 -05:00
Scott Lahteine 0473f7ee58 M115 strings 2020-09-14 02:42:05 -05:00
Scott Lahteine 3a89d34e7f Always show Compiled: 2020-09-14 02:42:05 -05:00
Scott Lahteine cd85fa3abe Better choice of code
Followup to #19344
2020-09-14 02:22:44 -05:00
ellensp 979876e958 Improve temperature runaway, idle timeout (#19339)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-09-13 23:58:39 -05:00
thinkyhead cf8316bfbb [cron] Bump distribution date (2020-09-14) 2020-09-14 00:13:25 +00:00
Scott Lahteine 49ca16c3fb heater_ind_t => heater_id_t 2020-09-13 18:22:28 -05:00
mmajoor d93471fdad Allow SWD debug on Robin Nano (#19345) 2020-09-12 23:33:55 -05:00
Marcio T 872516f9f9 Touch UI "Leveling" menu, misc. fixes (#19349) 2020-09-12 23:32:00 -05:00
ellensp 7c7e663911 Fix extra string substitution bug (#19351) 2020-09-12 23:01:03 -05:00
ManuelMcLure c04d5624da Read from backup TMC StealthChop state (#19364) 2020-09-12 22:59:20 -05:00
Jason Smith d07ce9ef21 Fix EXP2 pin define for MKS SGEN_L (#19369) 2020-09-12 21:52:46 -05:00
Giuliano Zaro dcf3587d9a Update Italian language (#19365) 2020-09-12 21:51:20 -05:00
Jesse S 94244c1d93 Highlight Creality DWIN menu icons (#19368) 2020-09-12 21:50:15 -05:00
thinkyhead ed39317203 [cron] Bump distribution date (2020-09-13) 2020-09-13 00:13:14 +00:00
Neskik 1917ed8741 M872 wait for probe temperature (#19344) 2020-09-11 22:51:19 -05:00
Haxk20 6f8282f01e Fix Print Stats appearance (#19348) 2020-09-11 19:53:06 -05:00
thinkyhead 4f390ea18f [cron] Bump distribution date (2020-09-12) 2020-09-12 00:12:50 +00:00
Keith Bennett cb9a34c6f7 Fix Creality RET6 env - RE (#19340) 2020-09-11 02:12:49 -05:00
Scott Lahteine 6759aff220 Clean up W25QXXFlash class 2020-09-10 21:54:04 -05:00
Scott Lahteine b33f4ba300 Use F() for Ender 3 V2 DWIN 2020-09-10 21:52:36 -05:00
Scott Lahteine 85089898be Translate encoder comments 2020-09-10 20:14:07 -05:00
thinkyhead 4d65ab5a0b [cron] Bump distribution date (2020-09-11) 2020-09-11 00:12:52 +00:00
riodoro1 abf1222f1d Fix missing BOARD_K8800 (#19331) 2020-09-10 17:06:37 -05:00
Giuliano Zaro b2ba9009d0 Fix "too cold" in M600 (#19332) 2020-09-10 16:47:58 -05:00
Scott Lahteine 21ee7be30a Warning if SDCARD_READONLY should be disabled 2020-09-10 03:03:42 -05:00
Scott Lahteine 9b78138600 General cleanup 2020-09-10 02:29:01 -05:00
Victor Oliveira 160f70be63 LPC: Finish DMA transfer, use HW SPI class (#19191) 2020-09-10 00:41:26 -05:00
Victor Oliveira b98946b5c1 Raise STM32F1 UART IRQ Priority, add error handling (#19301)
(Error handling for Overrun, Framing and Parity.)
2020-09-09 22:46:50 -05:00
Zachary Annand 20ac0faa86 Fix Separate Neopixel menu labels (#19303) 2020-09-09 22:04:10 -05:00
Keith Bennett 700e0fe7d7 Warn in platformio.ini about RCT6 512K (#19312) 2020-09-09 21:59:42 -05:00
Marcio Teixeira 328d8b5952 Fix ExtUI SD sorting, compile issues 2020-09-09 21:54:08 -05:00
makerbase 006b7f3f17 MKS Gen L V2.1 (#19314) 2020-09-09 21:48:42 -05:00
Keith Bennett 6eebcb5e48 Fix compile with Danish, Basque (#19325) 2020-09-09 21:23:01 -05:00
thinkyhead 0b01aa8276 [cron] Bump distribution date (2020-09-10) 2020-09-10 00:12:33 +00:00
bilsef 049fbc92a9 Support for Teensy 4 (#19311) 2020-09-09 18:57:20 -05:00
Scott Lahteine bc7720c0cd Minor HAL cleanup 2020-09-08 22:17:44 -05:00
thinkyhead 40fdf8f087 [cron] Bump distribution date (2020-09-09) 2020-09-09 00:12:44 +00:00
Jason Smith 4fc1aba848 Update HAL/STM32 platform to 8.0 (#18496) 2020-09-07 21:41:48 -05:00
Giuliano Zaro 828a582f4d Make M600 heat up the nozzle. Reset runout on fail. (#19298)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-09-07 21:29:45 -05:00
thinkyhead d1d8417a61 [cron] Bump distribution date (2020-09-08) 2020-09-08 00:12:45 +00:00
Jason Smith 5c3140811d TFT is neither "graphical" nor "character" (#19297) 2020-09-07 17:07:53 -05:00
Victor Oliveira 4268d86da1 Sanity-check BABYSTEP_DISPLAY_TOTAL with ColorUI (#19284) 2020-09-07 03:17:35 -05:00
Kadah bb017038d4 Fix M166 Gradient Mix for DELTA (#19285) 2020-09-07 03:15:42 -05:00
Zachary Annand d3f1f3533d Separate Neopixel followup (#19287) 2020-09-07 02:59:31 -05:00
Scott Lahteine a445746a8b Clean up LCD conditionals, DWIN 2020-09-06 23:21:42 -05:00
Scott Lahteine b709baba7a Whitespace cleanup 2020-09-06 22:51:59 -05:00
Jason Smith ef1d154a4a Adjust GTR PeripheralPins to avoid timer conflicts (#19183) 2020-09-06 20:10:25 -05:00
Victor Oliveira a4bc9e669c STM32F1 EP with USB_COMPOSITE (#19281) 2020-09-06 20:04:20 -05:00
Zachary Annand 5ea7a8373a Menu items for Separate NeoPixel (#19280) 2020-09-06 20:00:24 -05:00
thinkyhead f29baed540 [cron] Bump distribution date (2020-09-07) 2020-09-07 00:13:11 +00:00
Keith Bennett d19fc64392 Clarify disabling StallGuard for axes (#19263) 2020-09-06 17:51:19 -05:00
Marcio T 2b789ddab9 Touch UI long filenames fixes (#19262)
* Improvements to FTDI DLCache functionality.
* Better handling of long file names in Touch UI
- Long file names now truncated and shown with ellipsis.
- Increased display cache buffer to allow for longer filenames.
- Visual error message when display cache is exceeded.
2020-09-06 17:37:16 -05:00
cosmoderp 86b71b83fa Fix Ender 3 V2 (DWIN) buffer overrun (#19268) 2020-09-06 17:34:08 -05:00
Victor Oliveira 486731162f Fix STM32F1 SPI device init, MKS_LCD12864 (#19271) 2020-09-06 17:29:43 -05:00
Victor Oliveira b6ab163814 Emergency Parser for STM32F1 (#19279) 2020-09-06 17:23:36 -05:00
thinkyhead 2ea1bf0e1d [cron] Bump distribution date (2020-09-06) 2020-09-06 00:13:05 +00:00
Scott Lahteine d9ad8caf02 SD card debugging 2020-09-04 20:14:30 -05:00
Scott Lahteine 14314b68ec No 'ls' if media isn't mounted 2020-09-04 19:57:47 -05:00
Scott Lahteine 3002e1cd60 Fix Creality V4 SD Detect 2020-09-04 19:34:51 -05:00
thinkyhead 00e738e485 [cron] Bump distribution date (2020-09-05) 2020-09-05 00:18:44 +00:00
Keith Bennett 1d6a92751b Tweak ESP32 Wifi sanity-check message (#19257) 2020-09-03 23:15:45 -05:00
Victor Sokolov e97e6865c3 MarkForged kinematics (#19235) 2020-09-03 20:12:53 -05:00
thinkyhead 55dcff746b [cron] Bump distribution date (2020-09-04) 2020-09-04 00:12:46 +00:00
Greg Nutt 691f02acab Smoothieboard GLCD w/ SD support (#19241) 2020-09-03 17:52:14 -05:00
Victor Oliveira 1f25312b65 Only show "SD Init Fail" with detectable media (#19236) 2020-09-03 17:46:05 -05:00
Zachary Annand 26858fdebf Separate Neopixel followup (#19250) 2020-09-03 17:43:52 -05:00
Tanguy Pruvot 7d8d0010e3 Fix Longer3D TFT defines, disable DMA (#19251) 2020-09-03 17:40:29 -05:00
Scott Lahteine 277042bc4e Hide multi-step G29 on Ender 3 V2 2020-09-03 16:55:16 -05:00
thinkyhead 768182c691 [cron] Bump distribution date (2020-09-03) 2020-09-03 00:12:25 +00:00
ManuelMcLure ab06d5c7fb Fix UBL 'G29 I' for large meshes (#19231) 2020-09-02 01:32:52 -05:00
thinkyhead f97b8c835a [cron] Bump distribution date (2020-09-02) 2020-09-02 00:12:22 +00:00
makerbase f375d9bd7b MKS SGEN L V2 (#18822) 2020-09-01 18:20:16 -05:00
Victor Oliveira e3d855673e Fail SD mount without SPI re-init (#19226) 2020-09-01 17:09:28 -05:00
Stéphane 62268aae65 Fix Anycubic LCDs / Trigorilla 1.4 pins (#19220) 2020-09-01 17:05:52 -05:00
Zachary Annand 09ddb5a724 Separate Neopixel followup (#19224) 2020-09-01 17:03:28 -05:00
Giuliano Zaro 56c44b053d Delete old LCD strings (#19227) 2020-09-01 16:59:29 -05:00
Stéphane 2979da73cf Fix Anycubic I3 Mega (S) original screen % display (#19210) 2020-08-31 22:27:42 -05:00
Ludy d3ac4ba83d Update German, fix Mix component index (#19206) 2020-08-31 22:23:28 -05:00
thinkyhead 203e44e026 [cron] Bump distribution date (2020-09-01) 2020-09-01 00:12:57 +00:00
Martin 4ab4dbb8a1 Permit touch params override w/ Robin nano (#19196) 2020-08-31 18:56:58 -05:00
Zachary Annand 41c7ae5d54 Separate Neopixels followup (#19179) 2020-08-31 16:06:24 -05:00
ellensp 2a72961be4 Fix 'cmd' array warning (#19193) 2020-08-31 15:05:42 -05:00
thinkyhead 8d76d8c081 [cron] Bump distribution date (2020-08-31) 2020-08-31 00:14:49 +00:00
thinkyhead c8995b91e2 [cron] Bump distribution date (2020-08-30) 2020-08-30 00:07:24 +00:00
thinkyhead e492c613f7 [cron] Bump distribution date (2020-08-29) 2020-08-29 00:13:59 +00:00
thinkyhead 6ac8f5abb7 [cron] Bump distribution date (2020-08-28) 2020-08-28 00:13:10 +00:00
Scott Lahteine e0b413cf19 Add set_all_homed 2020-08-27 16:38:26 -05:00
swissnorp a12ac5e175 Mark axes not-homed with HOME_AFTER_DEACTIVATE (#18907) 2020-08-27 16:05:53 -05:00
Scott Lahteine 462d3eeab1 set_axis_not_trusted => set_axis_never_homed 2020-08-27 14:49:00 -05:00
Zachary Annand 97ec6c1be6 Independent Neopixel option (#19115) 2020-08-27 14:18:16 -05:00
Scott Lahteine 21070c0aaf Fix Creality V4 probe pin 2020-08-27 14:01:56 -05:00
Scott Lahteine a96c5209d1 Fix small typø 2020-08-27 14:01:36 -05:00
Scott Lahteine e8dcbd8300 Allocate sufficient MSG_MOVE_Z_DIST buffer
See #19158
2020-08-27 12:22:47 -05:00
Victor Oliveira cb75bec06d One MARLIN_DEV_MODE warning per rebuild (#19163) 2020-08-27 11:29:07 -05:00
George Fu 1e124e6713 FYSETC S6 2.0 (#19140) 2020-08-26 19:41:15 -05:00
thinkyhead 84ad7cdc29 [cron] Bump distribution date (2020-08-27) 2020-08-27 00:11:19 +00:00
thordarsen 195d20cef2 Fix SINGLENOZZLE fan speed bug (#19152) 2020-08-26 05:23:56 -05:00
ellensp 91c8c6d96e Fix NEOPIXEL_STARTUP_TEST last delay (#19156) 2020-08-26 05:14:54 -05:00
Victor Oliveira 1a4b82a5d6 TFT (plus Hardware SPI) for LPC (#19139) 2020-08-26 05:13:58 -05:00
Scott Lahteine 4955aa5b78 Prusa => Průša 2020-08-26 02:15:50 -05:00
Colin Godsey 131ddeaeba Direct Stepping update (#19135) 2020-08-26 01:32:56 -05:00
Marcio Teixeira b07dd44ec2 Fixes to FTDI Touch UI (#19134)
- Fix unused variable warning
- Fix for filament runout sound
- Fix for developer menu access
- Fix compilation error when using CALIBRATION_GCODE
- Remove material labels in change filament screen
- Add decimals to status screen Z coordinate
- Add more descriptive message on heater timeout
2020-08-26 00:59:06 -05:00
Keith Bennett 1793de4a28 Add Einsy Rambo Filament Runout Pin (#19136) 2020-08-26 00:44:15 -05:00
Jason Smith 646d90f3da Fix SD pins for SKR Pro and GTR (#19047) 2020-08-26 00:43:33 -05:00
Scott Lahteine bd9dc73d3d Warn about MARLIN_DEV_MODE 2020-08-25 23:57:48 -05:00
Scott Lahteine 5db62d7abd No COM_PIN needed for DWIN 2020-08-25 23:34:58 -05:00
thinkyhead 076f59c630 [cron] Bump distribution date (2020-08-26) 2020-08-26 00:11:08 +00:00
ellensp 66694a213f LEDs followup (#19133) 2020-08-25 08:16:43 -05:00
thinkyhead e2edfabc3c [cron] Bump distribution date (2020-08-25) 2020-08-25 00:11:11 +00:00
Victor Oliveira f7fe499305 Color UI + Robin Nano test (#19118) 2020-08-24 13:23:32 -05:00
Giuliano Zaro f67ad6fd70 Fix auto-power in PID autotune (#19119) 2020-08-24 09:54:25 -05:00
Scott Lahteine c488070859 Minor cleanup w/r/t LEDs 2020-08-23 23:57:51 -05:00
Oleksii Zelivianskyi 4b124352ef TFT32 for MKS Robin Nano 1.2 (#19031) 2020-08-23 22:13:49 -05:00
thinkyhead 5dadba432e [cron] Bump distribution date (2020-08-24) 2020-08-24 00:12:38 +00:00
qwewer0 dd6cbbbbad Feedrate comment (#19116) 2020-08-23 05:08:47 -05:00
Scott Lahteine 638f6f0f06 Neopixel => NeoPixel 2020-08-23 03:14:11 -05:00
Scott Lahteine b36163d53a Fix up conditions, comments 2020-08-23 02:45:58 -05:00
Scott Lahteine 6036a0df6b Fix DUET_SMART_EFFECTOR 2020-08-23 02:07:52 -05:00
Scott Lahteine bff0c68078 Consistent static/value item macros 2020-08-23 01:09:23 -05:00
thinkyhead 34fb9c7071 [cron] Bump distribution date (2020-08-23) 2020-08-23 00:12:22 +00:00
Scott Lahteine d84aff701e Fix probing margin sanity-check 2020-08-22 17:28:44 -05:00
Scott Lahteine fa5a1f7d7f PGMSTR constexpr => const 2020-08-22 16:40:27 -05:00
Mathew Winters ca105493aa NOZZLE_CLEAN_NO_Y (#18870) 2020-08-22 16:20:37 -05:00
qwewer0 434e43cc42 Change XY_PROBE_SPEED format to (x*60) (#18997) 2020-08-22 02:04:28 -05:00
Scott Lahteine a9f7e855d8 Reformat pins files 2020-08-22 01:22:21 -05:00
mmajoor 8cededa7dd Permit ST7789V orientation override (#19044) 2020-08-22 00:35:39 -05:00
Giuliano Zaro b6e4acec9d Prefer Servo AVR timer4 over 3 (#19025) 2020-08-21 23:49:39 -05:00
Greg Nutt aa92fa7ee3 DIGIPOT_I2C pins for SMOOTHIEBOARD (#19098) 2020-08-21 23:47:25 -05:00
Steven Haigh 563eda4b6b Translatable strings on Ender-3 V2 DWIN (#19053)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-08-21 23:44:21 -05:00
Giuliano Zaro 8652a7bdd2 HIGH/LOW naming of pin state settings (#19089) 2020-08-21 23:13:43 -05:00
Scott Lahteine 93167afaf5 Update copy_marlin_variant_to_framework.py 2020-08-21 22:50:45 -05:00
mmajoor 02ea13b511 GRAPHICAL_TFT_ROTATE_180 for ST7789V (#19042) 2020-08-21 22:04:31 -05:00
Victor Oliveira d6574a03a1 CI with PIO-dev (#19058) 2020-08-21 22:03:32 -05:00
Scott Lahteine ec02aee46c More menu header fu 2020-08-21 22:01:33 -05:00
ellensp 04909a2010 Creality3D v4.2.7 (#19088) 2020-08-21 21:56:18 -05:00
Giuliano Zaro 6b549e1971 Optional homing in LCD Repeatability Test (#19104) 2020-08-21 21:20:30 -05:00
Scott Lahteine bb8606ac29 Menu headers followup 2020-08-21 21:19:13 -05:00
thinkyhead 45d22d4f09 [cron] Bump distribution date (2020-08-22) 2020-08-22 00:11:44 +00:00
Victor Oliveira a37cf24900 Emulated DOGM via HAL TFT, XPT IO (#19017) 2020-08-21 18:54:21 -05:00
Scott Lahteine b8c4098de2 Remove extraneous defines 2020-08-21 18:11:37 -05:00
Scott Lahteine 4f67642122 Header for individual menus 2020-08-21 18:11:37 -05:00
BigTreeTech e2ee05c976 Broadcast SD Print Completion (#19102) 2020-08-21 17:06:51 -05:00
Keith Bennett 7e65464dd7 Fix M512 comment (#19108) 2020-08-21 17:04:32 -05:00
Scott Lahteine d10b11ad9f Allow 'ghtp' to set a specific remote 2020-08-21 16:22:57 -05:00
Scott Lahteine db8522b411 Fix up mixer menu display 2020-08-21 03:37:30 -05:00
Scott Lahteine ba6c41b798 Apply specific menu item types 2020-08-21 02:59:38 -05:00
Scott Lahteine bf316d9ec5 Fix Select Screen cancel destination 2020-08-21 02:59:23 -05:00
Scott Lahteine 7807b613d5 Update some comments 2020-08-21 02:59:23 -05:00
Scott Lahteine 28a0650cf3 Add custom_verbose, custom_gcc deps flags 2020-08-21 02:49:05 -05:00
thinkyhead 16e1dbbb21 [cron] Bump distribution date (2020-08-21) 2020-08-21 00:11:45 +00:00
Scott Lahteine 853aec2c9a Move ExtUI displays to sub-folder (#19070) 2020-08-20 01:38:22 -05:00
Scott Lahteine 38cd7b9938 Config adjustments 2020-08-19 22:42:54 -05:00
Giuliano Zaro 3426c7fc94 Configurable number of M106 fans (#18883) 2020-08-19 20:11:20 -05:00
ellensp 64e181979c Env mega2560ext adds pins 70-85 (#19022) 2020-08-19 19:18:39 -05:00
thinkyhead a4809b3a47 [cron] Bump distribution date (2020-08-20) 2020-08-20 00:11:10 +00:00
Steven Haigh a62ae2aa2d Default Filament Runout Sensor enabled state (#19013) 2020-08-19 18:58:18 -05:00
Giuliano Zaro d3c5161476 Fix __ARM__ / __arm__ typo (#19063) 2020-08-19 02:59:37 -05:00
Serhiy-K 60b61de395 "SD init fail" status error (#19064) 2020-08-19 02:58:41 -05:00
Giuliano Zaro f205bff2cc Fix PSU on for PID autotune (#19066) 2020-08-19 02:49:46 -05:00
Scott Lahteine 092aad1813 Creality DWIN cleanup 2020-08-19 01:51:22 -05:00
Scott Lahteine 2cbc84855b Creality DWIN simple beeper 2020-08-19 01:51:08 -05:00
thinkyhead 167e42af99 [cron] Bump distribution date (2020-08-19) 2020-08-19 00:11:56 +00:00
thinkyhead c55f477520 [cron] Bump distribution date (2020-08-18) 2020-08-18 00:10:40 +00:00
thinkyhead ed775ac985 [cron] Bump distribution date (2020-08-17) 2020-08-17 00:11:16 +00:00
ellensp 19818a95a2 Checks for CR10_STOCKDISPLAY with Creality v4 (#19019) 2020-08-15 22:57:07 -05:00
Julius Mumme e70440b7cb Fix IS_PROBE_PIN macro (#19024) 2020-08-15 22:50:28 -05:00
Victor Oliveira bb64aa7841 Update build script for PIO 4.4 (#19034) 2020-08-15 19:38:13 -05:00
thinkyhead 0e8cdd1938 [cron] Bump distribution date (2020-08-16) 2020-08-16 00:11:06 +00:00
thinkyhead f7ff3f0803 [cron] Bump distribution date (2020-08-15) 2020-08-15 00:10:28 +00:00
Scott Lahteine 8f730cfb6e Fix ExtUI base methods 2020-08-14 08:46:38 -05:00
Giuliano Zaro 6cfc4b5711 Let laser/spindle use free AVR servo timers (#19011) 2020-08-14 08:41:44 -05:00
Robby Candra 1b097d0467 Wait for hotend temp before Resume move (#19009) 2020-08-14 08:38:00 -05:00
Tommy Hartmann e69bbc3531 ENDER2_STOCKDISPLAY for BTT SKR 1.4 (and Turbo) (#19002) 2020-08-14 08:35:53 -05:00
ellensp 5038cddfd5 Add option to arrange Neopixel sets in series (#18992) 2020-08-14 08:25:45 -05:00
Scott Lahteine 1b28a28ced Unhide /src folders in Sublime 2020-08-14 06:32:08 -05:00
Scott Lahteine b11c3ddbed M80 followup 2020-08-14 00:33:10 -05:00
Scott Lahteine 56b35fc103 Do runout.reset after EEPROM read 2020-08-14 00:16:22 -05:00
Scott Lahteine aaba9b7880 Clean up M80/M81, DWIN 2020-08-14 00:16:22 -05:00
Scott Lahteine 16cb4303a4 Fix touch test 2020-08-14 00:16:22 -05:00
Scott Lahteine 506deedfdd config-labels.py needs py3 2020-08-14 00:16:22 -05:00
swissnorp 3ddb720722 Fix 'sync_plan_position' call (#19016) 2020-08-13 22:37:57 -05:00
Tanguy Pruvot 567d77f1cb TFT: Restore ILI9341 colors and reversed logic (#19010)
Followup to #18877, #18901, #18817
2020-08-13 22:32:01 -05:00
thinkyhead f01cb240d7 [cron] Bump distribution date (2020-08-14) 2020-08-14 00:10:34 +00:00
Victor Oliveira ff5c8d3570 Optimize LVGL with HAL TFT IO (SPI and FSMC) (#18974) 2020-08-13 18:31:59 -05:00
thinkyhead 3b9e0c3dde [cron] Bump distribution date (2020-08-13) 2020-08-13 00:10:41 +00:00
Scott Lahteine ee28a10795 String interpolation for 2-digit numbers (#18998) 2020-08-12 16:46:51 -05:00
thinkyhead ca4eaf92b4 [cron] Bump distribution date (2020-08-12) 2020-08-12 00:10:11 +00:00
qwewer0 bd690f12bc Mention units for MANUAL_FEEDRATE (#18993) 2020-08-11 03:11:40 -05:00
Robby Candra 9590fcd855 EVENT_GCODE_SD_STOP => ABORT (#18978) 2020-08-10 20:25:35 -05:00
Anders Sahlman b14f630f26 MKS Robin new 320x240 TFT Color UI support (#18985) 2020-08-10 20:21:48 -05:00
Scott Lahteine 6dd054895b Add'l CI/git script tweaks, fixes 2020-08-10 20:17:41 -05:00
Marcio T f62578efec For FTDI800 compatibility, remove VERTEX_FORMAT dependency (#18982) 2020-08-10 20:06:19 -05:00
InsanityAutomation d2d6c167df Fix Ender-3 V2 DWIN with manual mesh, host prompt (#18981) 2020-08-10 20:04:40 -05:00
thinkyhead 276d78461e [cron] Bump distribution date (2020-08-11) 2020-08-11 00:10:45 +00:00
Scott Lahteine 911cdd4d2f Fix scripts using gawk and wget 2020-08-10 01:47:49 -05:00
Giuliano Zaro ce3df42e22 Fix DISABLE_[XYZE] code (#18970)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-08-09 20:48:57 -05:00
thinkyhead f642656bff [cron] Bump distribution date (2020-08-10) 2020-08-10 00:10:53 +00:00
ftk b15c207d08 Remaining Time for LIGHTWEIGHT_UI (#18875) 2020-08-09 17:19:35 -05:00
Scott Lahteine 81f5973afc Followup for SPI Flash 2020-08-09 15:58:12 -05:00
Scott Lahteine f7b261a363 Shorthand values for M575 B 2020-08-09 15:55:31 -05:00
cbaugher 837dc4727d Tool-change Z move followup (#18963) 2020-08-09 15:46:47 -05:00
Scott Lahteine 8318d90e85 Password followup 2020-08-08 20:13:15 -05:00
sherwin-dc 852e5ae042 Password via G-code and MarlinUI (#18399)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-08-08 20:00:42 -05:00
Victor Oliveira 0a1b865987 W25QXX SPI Flash support (#18897)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-08-08 19:24:31 -05:00
thinkyhead 58cfdb8f57 [cron] Bump distribution date (2020-08-09) 2020-08-09 00:10:45 +00:00
Victor Oliveira 2ef6c8ba97 Marlin Color UI for STM32F1 (SPI) (#18958) 2020-08-08 18:45:34 -05:00
Victor Oliveira e3c0891d2b Fix compiler search in non-default PIO installs (#18960) 2020-08-08 18:40:12 -05:00
Scott Lahteine c2d5b63a98 Fix up STATIC_ITEM (#18962) 2020-08-08 18:21:44 -05:00
Victor Oliveira ee69fb00a6 Marlin Color UI (FSMC) for STM32F1 (#18952) 2020-08-08 00:32:30 -05:00
Scott Lahteine b84c69072e Patch hex_print 2020-08-08 00:17:09 -05:00
Scott Lahteine 97cb0a8c3e General cleanup 2020-08-08 00:17:09 -05:00
Scott Lahteine fd646d0d66 Clean up whitespace 2020-08-07 20:52:23 -05:00
Scott Lahteine 18adfe87bc configuration_store => settings 2020-08-07 20:52:23 -05:00
Scott Lahteine b3ca43fe78 Use uintptr_t for pointer-to-int 2020-08-07 19:31:05 -05:00
thinkyhead b68e591e58 [cron] Bump distribution date (2020-08-08) 2020-08-08 00:10:15 +00:00
cbaugher 7b2f7a94fa Fix Z height after tool change (#18951) 2020-08-07 18:06:25 -05:00
ellensp f2f1d8fa21 HW PWM sanity checks for SPINDLE_LASER_FREQUENCY (#18947) 2020-08-07 17:59:09 -05:00
wmariz da4eaebdc9 ZoneStar Z6FB (#18918)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-08-07 17:03:59 -05:00
Victor Oliveira cec035688d Fix / optimize FSMC init (#18941) 2020-08-07 01:55:15 -05:00
Victor Oliveira 5e08efb0fc Fix LVGL "C" brace (#18942) 2020-08-07 01:53:43 -05:00
Victor Oliveira 35e11e5f8b Followup fixes to LVGL for Chitu (#18940) 2020-08-06 20:52:01 -05:00
thinkyhead 821d9e374e [cron] Bump distribution date (2020-08-07) 2020-08-07 00:10:58 +00:00
Victor Oliveira c3fdc7f81e Apply PIO-supported custom_option for deps (#18935) 2020-08-06 17:33:42 -05:00
Radek 4c8bb99059 Increase Manual E Move Feedrate to 2mm/s (#18937) 2020-08-06 17:21:55 -05:00
Victor Oliveira b2abeff9ad MKS Robin Nano CI Tests (#18927) 2020-08-06 08:15:19 -05:00
Scott Lahteine 99ba866d8d Optimize G-code / feature dependencies (#18919) 2020-08-06 08:14:00 -05:00
Marco Burato 6bcfb58cd4 More Anycubic + Trigorilla mappings, ExtUI (#18903) 2020-08-06 05:38:18 -05:00
Scott Lahteine 7a5d408bc0 Conditions cleanup 2020-08-06 04:20:15 -05:00
Scott Lahteine d69c2a90b7 Simple rename of hex_print 2020-08-06 04:07:59 -05:00
Scott Lahteine a9912681b4 General cleanup 2020-08-06 00:52:36 -05:00
Victor Oliveira 41718cf55f Request files needed to test a PR (#18925) 2020-08-05 22:44:30 -05:00
Keith Bennett c61e980c9c Add Chitu 3D V6 2nd Filament Runout pin (#18922) 2020-08-05 22:42:03 -05:00
Victor Oliveira d922c002ca Followup to LVGL patch (#18920) 2020-08-05 22:40:08 -05:00
swissnorp 6da477e6bf Move Cancel Object menu, fix canceled item index (#18930) 2020-08-05 22:38:23 -05:00
thinkyhead 3341fc6728 [cron] Bump distribution date (2020-08-06) 2020-08-06 00:10:09 +00:00
thinkyhead 99fb65f359 [cron] Bump distribution date (2020-08-05) 2020-08-05 00:10:17 +00:00
Victor Oliveira 04b12dde49 SPI Flash data compression (#18879) 2020-08-04 04:50:05 -05:00
Scott Lahteine 3b1f84a9b7 Followup to #18906 Z_AFTER_DEACTIVATE 2020-08-04 03:21:36 -05:00
Claus Näveke 181a35181b Make ili9341 rotatable (e.g., Anycubic Predator) (#18877) 2020-08-04 03:02:08 -05:00
Jeff Eberl 3a00ebd758 Change include to <stddef.h> (#18880) 2020-08-04 00:37:08 -05:00
Roman Moravčík 11b2bd835d Update Slovak language (#18884) 2020-08-04 00:32:47 -05:00
Giuliano Zaro b615431aa6 Update Italian language (#18886) 2020-08-04 00:32:25 -05:00
swissnorp 4856ac5028 Add Z_AFTER_DEACTIVATE to account for gravity (#18906) 2020-08-04 00:31:45 -05:00
Victor Oliveira 04c10eda92 Fix MKS Nano v1.2 FSMC display (#18901) 2020-08-03 23:41:23 -05:00
Keith Bennett 5823ebb446 Assisted Tramming requires a probe (#18912) 2020-08-03 22:39:29 -05:00
Scott Lahteine ca0ebf10d1 Move scaled TFT / touch defines (#18915) 2020-08-03 21:55:37 -05:00
thinkyhead ef749bb69d [cron] Bump distribution date (2020-08-04) 2020-08-04 00:10:16 +00:00
Scott Lahteine 5e3411029d Clean up some PeripheralPins 2020-08-02 20:34:24 -05:00
Claus Näveke 4d36baf375 No mks_robin extra_scripts in Trigorilla build (#18872) 2020-08-02 20:17:43 -05:00
ellensp 5701387ab9 Fix Spindle/Laser PWM DC (#18871) 2020-08-02 20:16:12 -05:00
FLYmaker c175cce56e Fix FLYF407ZG pins (#18865) 2020-08-02 20:13:57 -05:00
Sebastien Andrivet dd587d45db Fix Duplicator i3 Plus pin diagram (#18862) 2020-08-02 20:10:16 -05:00
Slats 1d240ce5a3 Translated DWIN screen titles (#18893)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-08-02 20:00:06 -05:00
thinkyhead 5847f9c718 [cron] Bump distribution date (2020-08-03) 2020-08-03 00:10:15 +00:00
thinkyhead 2465f2fd74 [cron] Bump distribution date (2020-08-02) 2020-08-02 00:10:12 +00:00
thinkyhead 6b0d154956 [cron] Bump distribution date (2020-08-01) 2020-08-01 00:09:59 +00:00
thinkyhead b058aee1d4 [cron] Bump distribution date (2020-07-31) 2020-07-31 00:09:42 +00:00
Scott Lahteine 90158f9f67 Repair config order 2020-07-30 02:27:52 -05:00
Scott Lahteine cc50c4956d Add monitor_flags 2020-07-30 02:26:02 -05:00
Scott Lahteine f3b37229fa Update include_tree 2020-07-30 01:51:08 -05:00
Alexander Gavrilenko 117df87d19 Support for TFT & Touch Screens (#18130) 2020-07-30 01:43:19 -05:00
Victor Oliveira bba157e5bd SanityCheck: No Adafruit NeoPixel for STM32F1 (#18833) 2020-07-29 22:04:47 -05:00
ellensp 8faa31df54 No HEATER_0_PIN needed with 0 EXTRUDERS (#18827) 2020-07-29 21:26:18 -05:00
Victor Oliveira 38ce5966e1 SPI Emulated DOGM (like FSMC_GRAPHICAL_TFT, but SPI) (#18817) 2020-07-29 21:25:07 -05:00
Scott Lahteine 73ce80af3a In G28 Z is sort-of known 2020-07-29 20:59:21 -05:00
Scott Lahteine 95f990a656 Fix UNKNOWN_Z_NO_RAISE in G28
Bug introduced in 73fc0778b8
2020-07-29 20:43:48 -05:00
thinkyhead 251c5c47aa [cron] Bump distribution date (2020-07-30) 2020-07-30 00:15:26 +00:00
Diego von Deschwanden e549d474aa Fix URLs to websites and resources (#18844) 2020-07-29 19:04:37 -05:00
Scott Lahteine 5eae8e7830 Update keypad link 2020-07-29 15:44:05 -05:00
lethalwallabies fc95946380 Typo fix (#18856) 2020-07-29 14:49:07 -05:00
Giuliano Zaro 05d95171cc Clarify Nozzle-to-Probe offset (#18828)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-07-29 14:35:31 -05:00
swissnorp 37b03dea8d Fix Cancel Objects index display (zero-based) (#18841) 2020-07-28 21:28:58 -05:00
Giuliano Zaro 83e15f7701 [SAMD51] ES Interrupt parity with other HALs (#18836) 2020-07-28 21:19:46 -05:00
Victor Oliveira 62da2c97d0 DISABLE_DEBUG required to free Robin nano Z_DIR_PIN (#18832) 2020-07-28 21:15:17 -05:00
MoellerDi 159dcd8e8a Fix NEOPIXEL_LED compile w/out PRINTER_EVENT_LEDS (#18824) 2020-07-28 20:19:12 -05:00
natemason f205cd7d2c Add TEMP_PROBE_PIN for Einsy Rambo (#18823) 2020-07-28 20:18:02 -05:00
thinkyhead aaf1ee78a4 [cron] Bump distribution date (2020-07-29) 2020-07-29 00:09:42 +00:00
Scott Lahteine b80cc09b13 Keep -std=gnu++11 in stm32 build_unflags 2020-07-28 03:10:33 -05:00
Diego von Deschwanden de5cca6b1f Update more external links (#18819) 2020-07-28 01:04:44 -05:00
Victor Tseng 5d14c3712f Fix DELTA + TMC sensorless homing + SPI endstops (#18811) 2020-07-27 20:15:14 -05:00
Victor Tseng b5ece63778 Fix garbled print_xyz output (#18810) 2020-07-27 20:13:27 -05:00
ellensp a63ad32f71 Fix WiFi / ESP32 sanity check (#18808) 2020-07-27 20:12:30 -05:00
thinkyhead cead93713f [cron] Bump distribution date (2020-07-28) 2020-07-28 00:09:26 +00:00
Scott Lahteine de68b3753f Config for Anycubic Mega TFT 2020-07-26 19:50:43 -05:00
thinkyhead 84b92d8f2f [cron] Bump distribution date (2020-07-27) 2020-07-27 00:09:57 +00:00
ellensp b9f0c06d83 Add 0 to EXTRUDERS :[json] (#18786) 2020-07-26 15:41:50 -05:00
ellensp 6924b2deaa Prevent ESP3D_WIFISUPPORT with non-ESP32 board (#18792) 2020-07-26 15:36:58 -05:00
giryan f949287aec Fix compile-time PWM_PIN (#18793)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-07-26 15:31:45 -05:00
Victor Oliveira 3eef000e2a Fix MKS Robin Nano V2 build / upload (#18784) 2020-07-25 23:08:30 -05:00
Scott Lahteine d0222e5c76 Randomize firmware.bin, fix unflag 2020-07-25 23:06:22 -05:00
Victor Oliveira e02817b077 More folders only compiled when their feature is Enabled (#18780)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-07-25 21:42:13 -05:00
ManuelMcLure 0bc8d315d8 Close host's Filament Change dialog (#18785) 2020-07-25 21:09:56 -05:00
Victor Oliveira 89722d2196 Fix search for best compiler (#18779) 2020-07-25 20:52:44 -05:00
thinkyhead 0dbebc2835 [cron] Bump distribution date (2020-07-26) 2020-07-26 00:09:32 +00:00
Victor Oliveira 6f26ed23ee Fix ui.external_control compile error (#18778) 2020-07-25 15:57:16 -05:00
Scott Lahteine 11702dc059 Update (c) 2020-07-25 04:10:21 -05:00
Scott Lahteine bc688f27dc Clean up after changes 2020-07-25 01:53:07 -05:00
MKS-Sean d20d459132 Robin nano V2, TFT LVGL UI parameters, and more (#18500) 2020-07-25 01:18:06 -05:00
InsanityAutomation c5ec80d6c7 G425/G35 menu items; G425 pre- and post- scripts (#18737) 2020-07-24 23:31:15 -05:00
J.C. Nelson 60500c0c49 Fix Lerdge variant script (#18771) 2020-07-24 22:56:33 -05:00
fleek 0a81eb15e2 Ender 3 V2: Inject 'G28 O' before G29 (#18767) 2020-07-24 22:53:35 -05:00
thinkyhead 97c655967f [cron] Bump distribution date (2020-07-25) 2020-07-25 00:09:21 +00:00
fleek 87ff532a41 Filament Runout pin for Creality v4.2.2 board (#18763) 2020-07-24 03:58:46 -05:00
Scott Lahteine 451f48231d Ender 3 V2 BL24C16 EEPROM support (#18758) 2020-07-24 03:09:14 -05:00
Victor Oliveira 8c88c33d9f Apply lib_ignore from [features] (#18762) 2020-07-23 23:47:01 -05:00
Scott Lahteine 1d2d616a7c Fix ESP3D_WIFISUPPORT ini typo 2020-07-23 23:35:58 -05:00
Mark Langezaal f23393c1ec Simplify encoder handling (#18754) 2020-07-23 21:28:44 -05:00
InsanityAutomation 2c61e6ba28 Add CONTROLLER_FAN_IGNORE_Z (#18735) 2020-07-23 21:27:40 -05:00
Scott Lahteine 9156c32a54 ibid. 2020-07-23 21:01:14 -05:00
Scott Lahteine d1e20eb29f Update links, README, contributing, etc. 2020-07-23 20:46:51 -05:00
George Fu 715271190c Update FYSETC AIO II TMC UART pins (#18749) 2020-07-23 20:01:50 -05:00
thinkyhead c5b3031c69 [cron] Bump distribution date (2020-07-24) 2020-07-24 00:09:15 +00:00
Scott Lahteine e27f031a55 General cleanup 2020-07-23 16:11:58 -05:00
InsanityAutomation e1191ded02 Fast Filament Change temperature check (#18738) 2020-07-22 23:01:56 -05:00
Diego von Deschwanden 42fbd527f3 Fix links to secure sites (#18745) 2020-07-22 22:20:14 -05:00
Jason Smith f9b1da7beb Linear Advance: Only change E DIR when needed (#18744) 2020-07-22 22:17:33 -05:00
thinkyhead 0b46fcdce6 [cron] Bump distribution date (2020-07-23) 2020-07-23 00:09:18 +00:00
InsanityAutomation b4b19aef7f Custom Nozzle Wipe (#18736) 2020-07-22 01:42:44 -05:00
Scott Lahteine 748c8a7ecd Explicit SdFat 2020-07-22 01:38:02 -05:00
Keith Bennett a9e6af8566 Fix Spanish preheat strings (#18743) 2020-07-21 20:55:27 -05:00
thinkyhead 2af216cf82 [cron] Bump distribution date (2020-07-22) 2020-07-22 00:08:57 +00:00
Scott Lahteine 1e5d73579c Anycubic followup 2020-07-21 14:43:55 -05:00
Scott Lahteine 2119e19bff Fix inline AnycubicSerial method 2020-07-21 05:41:26 -05:00
Scott Lahteine 6027055695 Optimize LCD, Wifi, etc. libraries (#18730) 2020-07-21 04:00:39 -05:00
yufanyufan 469f63f74d New DGUS UI var / definition syntax (#18718) 2020-07-21 03:19:25 -05:00
Victor Oliveira f34024af34 Filter some unused Marlin/src subfolders (#18729) 2020-07-21 03:15:20 -05:00
Victor Oliveira 2a72f491e4 Fix build for Windows path edge case 2020-07-21 03:09:33 -05:00
Ivan Kravets f1ffca1d2d Use development version of PlatformIO (#18724) 2020-07-21 03:07:56 -05:00
Victor Oliveira 9ca070fa10 Ignore unused (but downloaded) libraries (#18728) 2020-07-21 02:33:58 -05:00
Scott Lahteine e78f1237ea Matching mat.bed_temp condition 2020-07-20 21:51:25 -05:00
thinkyhead 3aecd92298 [cron] Bump distribution date (2020-07-21) 2020-07-21 00:19:36 +00:00
Victor Oliveira cea097df83 Patch auto-deps for Windows CXX (#18721) 2020-07-20 04:52:15 -05:00
Scott Lahteine 0a86291e66 Fix some LVGL warnings 2020-07-19 22:06:55 -05:00
Jason Smith a847f37d43 Reduce Step Smoothing ceiling to 50% CPU usage (#18719) 2020-07-19 21:53:29 -05:00
Victor Oliveira 4a55bdb165 Only download & compile required libraries (#18699) 2020-07-19 21:42:30 -05:00
Giuliano Zaro c6233b1ea8 SAMD51: More reliable Servo/BLTouch PWM (#18710) 2020-07-19 21:41:23 -05:00
thinkyhead 805fb4cb1b [cron] Bump distribution date (2020-07-20) 2020-07-20 00:09:07 +00:00
Jason Smith 12bc63913c Fix BLTouch PWM reliability in HAL/STM32 (#18702) 2020-07-19 17:41:36 -05:00
yufanyufan 1c94033f7c Fix endian DGUS WriteVariable (#18703) 2020-07-19 17:34:36 -05:00
cccc 12ebb71155 Update Chinese (cn) language (#18705) 2020-07-19 17:23:52 -05:00
Mark Langezaal d96691f8ad Fix encoder reverse, partial steps handling (#18694) 2020-07-19 17:20:35 -05:00
yufanyufan cfc36684aa More customizable DGUSDisplay (#18700) 2020-07-19 16:35:15 -05:00
thinkyhead e85d828b24 [cron] Bump distribution date (2020-07-19) 2020-07-19 00:36:28 +00:00
Scott Lahteine 0ddef5544a Misc formatting, cleanup 2020-07-18 18:59:38 -05:00
Pascal de Bruijn d579b70b7e Return to Status on PID Autotune (#18695) 2020-07-18 17:46:19 -05:00
cr20-123 a3795e3e48 Prettier BLTouch menu items (#18682) 2020-07-18 17:41:47 -05:00
Claus Näveke afce012960 Trigorilla Pro board (#18692) 2020-07-18 17:40:10 -05:00
yufanyufan 6f0885a3a3 Fix DGUS write variable endianness (#18689) 2020-07-18 17:26:00 -05:00
Victor Oliveira b9d4b0ddce Chitu V6 - Stepper Z2 pins (#18683) 2020-07-18 17:23:42 -05:00
thinkyhead f51388f287 [cron] Bump distribution date (2020-07-18) 2020-07-18 00:09:19 +00:00
Scott Lahteine c2363a81b4 Fix E3V2 M0/M1 and wait_for_user 2020-07-17 12:38:51 -05:00
Markus Towara f4aba99624 Use safe_delay for PSU_POWERUP_DELAY (#18680)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-07-17 12:33:45 -05:00
Scott Lahteine e34684a9c7 Smaller SD EEPROM file on Ender 3 V2 2020-07-17 09:30:48 -05:00
George Fu bd0430dc38 Support FT81050 with FYSETC F6 (#18678)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-07-17 07:40:28 -05:00
JBA 4abad60bf1 ExtUI for Anycubic I3 Mega (#18655) 2020-07-17 01:07:09 -05:00
Scott Lahteine e90bbb37d4 Tweak and use SD_ORDER 2020-07-16 22:45:57 -05:00
Scott Lahteine 6dd2b1210f Fix check_hotends with > 1 hotend 2020-07-16 22:37:26 -05:00
Sergey1560 9424567189 Fix passive Chamber Temp reading (#18674) 2020-07-16 21:42:55 -05:00
Evgeny Z 1d6868852b Chopper Timing Preset for 24V 0.9° (#18662) 2020-07-16 21:40:56 -05:00
Scott Lahteine b880712889 Fix material_preset reference issue 2020-07-16 21:07:21 -05:00
thinkyhead 6b0e8e5fd5 [cron] Bump distribution date (2020-07-17) 2020-07-17 00:09:09 +00:00
Scott Lahteine 11e29754e6 Sanity-check BABYSTEP_MULTIPLICATOR_* 2020-07-15 23:55:55 -05:00
Scott Lahteine ed3df41a7e Broadcast host actions
Fixes #18565
2020-07-15 23:55:48 -05:00
ellensp 0223ca8abb Fix SKR 1.4 LCD / ADC Keypad sanity-check (#18670) 2020-07-15 21:46:46 -05:00
thinkyhead 05c999a809 [cron] Bump distribution date (2020-07-16) 2020-07-16 00:11:04 +00:00
Keith Bennett 246eac0c82 Fix Hotend Idle Timeout trigger (#18657) 2020-07-15 02:46:04 -05:00
Scott Lahteine ef90cb7c97 PLR followup 2020-07-15 01:20:52 -05:00
Jason Smith 76b67d55e2 Fix some Power Loss Recovery behaviors (#18558) 2020-07-15 01:14:03 -05:00
Scott Lahteine 55e519a06f General cleanup 2020-07-14 21:27:49 -05:00
Scott Lahteine e78f19bc87 Clean up DWIN code 2020-07-14 21:15:14 -05:00
Scott Lahteine 2d33a9fd7c Add REPORT_FAN_CHANGE as an option 2020-07-14 21:15:14 -05:00
Scott Lahteine b40440cf38 Tool-change debug option 2020-07-14 21:15:14 -05:00
Scott Lahteine 3513ea7ae1 Specify ststm32 @ 6.1.x 2020-07-14 21:15:14 -05:00
thinkyhead 0451e43adb [cron] Bump distribution date (2020-07-15) 2020-07-15 00:14:27 +00:00
Jason Smith 95b76a65c3 Increase STM32F1 Servo Timer Interrupt Priority (#18637) 2020-07-14 19:07:27 -05:00
Leo c9718504c5 Fix leveling "Point n of 3" message (#18639) 2020-07-14 17:02:38 -05:00
Scott Lahteine 0e1cb10909 Fix / improve menu items (#18644) 2020-07-13 19:59:32 -05:00
thinkyhead b670001269 [cron] Bump distribution date (2020-07-14) 2020-07-14 00:09:09 +00:00
Scott Lahteine 7a0af01e69 Creality V4 cleanup 2020-07-13 16:10:38 -05:00
thinkyhead 0f6826ffc0 [cron] Bump distribution date (2020-07-13) 2020-07-13 00:09:18 +00:00
Keith Bennett 56c3deb423 Fix G35 output formatting (#18631) 2020-07-12 13:43:52 -05:00
Speaka 2c238e4fc2 Option for extra endstop check (#18424) 2020-07-12 13:16:56 -05:00
Scott Lahteine 4457b9d5d2 Clarify MICROSTEP_MODES 2020-07-12 03:20:06 -05:00
thinkyhead d09347d603 [cron] Bump distribution date (2020-07-12) 2020-07-12 00:09:12 +00:00
Axel c4dd0082a1 Option to assist thermocouple debug (#18621) 2020-07-11 00:23:48 -05:00
thinkyhead c765bb05d7 [cron] Bump distribution date (2020-07-11) 2020-07-11 00:11:31 +00:00
Scott Lahteine b6051efe5b Capitalize "G-code" 2020-07-10 01:35:37 -05:00
ellensp 8f725e25b5 Fix CHITU_F103 pio.board name (#18486) 2020-07-09 22:51:04 -05:00
Victor Oliveira e35a1d396f Fix Chitu V6 with LVGL UI (#18608) 2020-07-09 22:49:08 -05:00
ellensp 69490e1122 Fix CMSIS / USB-FD regression (#18602) 2020-07-09 22:45:06 -05:00
cccc b64113411c Add current offset for POWER_MONITOR sensor (#18600) 2020-07-09 22:43:04 -05:00
thinkyhead 0f64e7912f [cron] Bump distribution date (2020-07-10) 2020-07-10 00:08:58 +00:00
ManuelMcLure d884d1eda8 "M122 I" to reinitialize TMC (#18571) 2020-07-09 17:48:06 -05:00
Giuliano Zaro b0c6cfb051 MarlinUI support for up to 5 Material Presets (#18488)
- Add `I` preset parameter to `G26`, `M106`, `M140`, and `M190`.
- Extend menu items to permit a string interpolation.
- Keep material names in a list and interpolate in menu items.
- Extend material presets to support up to 5 predefined materials.

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-07-09 03:11:57 -05:00
Scott Lahteine abc5c93986 Clean up some MMU comments 2020-07-09 02:13:32 -05:00
Giuliano Zaro 95c2cc3966 Remove outdated comment (#18597) 2020-07-09 01:43:59 -05:00
Scott Lahteine 73fc0778b8 Consolidate probe clearance, add section debug (#18576)
* Better section / function log
* Add do_z_clearance motion function
2020-07-08 21:44:21 -05:00
Scott Lahteine 0eab9fc08c Fix missing controller fan include 2020-07-08 19:21:48 -05:00
thinkyhead ca78a57b1d [cron] Bump distribution date (2020-07-09) 2020-07-09 00:15:37 +00:00
Scott Lahteine 915847b75a Add Cap:RUNOUT
Co-Authored-By: Julius ter Pelkwijk <mrseeker@users.noreply.github.com>
2020-07-08 06:53:03 -05:00
Scott Lahteine 8a55f9405c Fix some comments 2020-07-08 06:53:03 -05:00
ellensp c2e0e61fe8 Fix User Temp Sensor (1000), reversed Pt100 / Pt1000 (#18590) 2020-07-08 06:28:32 -05:00
cccc 1815866877 Show fixed V in Power Display with no V sensor (#18579) 2020-07-08 05:02:40 -05:00
cccc f52a1eb111 Update Chinese (zh_CN) language (#18580) 2020-07-08 01:15:05 -05:00
Scott Lahteine d6c177008f SKR 1.4 alert for unsupported LCD 2020-07-08 00:03:20 -05:00
Scott Lahteine 67b2b78717 Fix warning with PIO 2020-07-08 00:03:20 -05:00
Scott Lahteine 759d63d76a Tweak PLR debug 2020-07-08 00:03:20 -05:00
thinkyhead 35bb616d32 [cron] Bump distribution date (2020-07-08) 2020-07-08 00:08:30 +00:00
notabucketofspam 588d40aedf Fix typo in Configuration_adv.h (#18570) 2020-07-07 12:55:01 +01:00
Scott Lahteine ea94716a87 Combine command macros 2020-07-07 02:30:26 -05:00
Scott Lahteine d6682c8609 Whitespace cleanup 2020-07-07 02:30:26 -05:00
Scott Lahteine 9546847dc1 Temp Residency followup 2020-07-07 01:51:09 -05:00
thinkyhead d3b2c09221 [cron] Bump distribution date (2020-07-07) 2020-07-07 00:08:30 +00:00
ellensp 12e7106a8a Update and fix POWER_MONITOR (#18561) 2020-07-06 18:53:26 -05:00
espr14 ea8c3a9388 Reduce 'first loop' temperature residency time (#18421)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-07-06 18:52:21 -05:00
Jason Smith 378b5685b3 0.7.1 <= TMCStepper <= 0.7.9 (#18564) 2020-07-06 17:51:36 -05:00
shuttercat 9a0b9de3ba Scale runout distance setting for editable range (#18567) 2020-07-06 17:48:55 -05:00
Giuliano Zaro 9ee891c4a6 Fix TMC homing phase coils alignment (#18528)
Co-authored-by: Fabio Santos <fabiosan@live.com>
2020-07-06 17:32:33 -05:00
J.C. Nelson 6f14d2d37f Add Lerdge S,X,K (#18302) 2020-07-06 17:08:52 -05:00
Jason Smith af8be58d92 Fix broken POWER_LOSS_RECOVERY prompt (#18557)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-07-06 01:18:49 -05:00
Luc Hoang Long 764fc81761 Use Material Preset 1 for PID autotune (#18446)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-07-06 01:17:40 -05:00
Scott Lahteine 9f5b8c9bbc Get SAMD51 CXX flags from script 2020-07-06 00:12:13 -05:00
Scott Lahteine e48489482c Filament state followup 2020-07-06 00:11:49 -05:00
thinkyhead 62c00aac2c [cron] Bump distribution date (2020-07-06) 2020-07-06 00:08:44 +00:00
Scott Lahteine a6b8b12a6a Simplify home_z_safely, respect HOME_AFTER_DEACTIVATE 2020-07-05 18:01:28 -05:00
Robby Candra c02451b602 Filament Runout Inverting => State (#18537)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-07-05 17:42:19 -05:00
GhostlyCrowd c8f7aceb20 STM32: No compile-time check for PWM_PIN (#18539)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-07-05 16:05:47 -05:00
Scott Lahteine dc6d8357a6 Reduce string duplication 2020-07-05 16:00:32 -05:00
Scott Lahteine 0fad9535d1 Add comment to M412 2020-07-05 15:58:12 -05:00
Scott Lahteine f9b6c504df Minor pins cleanup 2020-07-05 15:58:12 -05:00
Jason Smith 52a0895635 Fix stall sensitivity adjustment for FTDI screens (#18554) 2020-07-05 15:50:05 -05:00
ManuelMcLure db0436cc61 Fix Neopixel set_color (#18544) 2020-07-05 15:47:02 -05:00
Keith Bennett 2266a4c68a Add CI for pushed commits (#18549) 2020-07-05 15:46:00 -05:00
Scott Lahteine 81cc803ade Update actions on bugfix branch 2020-07-05 15:41:29 -05:00
Oliver Jean Eifler 67db7c0294 Probing points followup (#18552) 2020-07-05 15:32:04 -05:00
Scott Lahteine ea520e670a Fix "Probing mesh point" message
Closes #17770

Co-Authored-By: Jan-Gerard van der Toorn <jan-gerard@users.noreply.github.com>
2020-07-05 01:03:49 -05:00
ellensp 6df927d3b2 Fix thermistors exist-for-reading tests (#18533)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-07-04 20:04:31 -05:00
notabucketofspam 6eb19cef11 Fix "'ubl' not declared" error (#18541) 2020-07-04 19:18:11 -05:00
thinkyhead aa40deb901 [cron] Bump distribution date (2020-07-05) 2020-07-05 00:09:15 +00:00
Robby Candra 7ca0a7df19 PID Accelerated Edit (#18532) 2020-07-04 15:11:01 -05:00
thinkyhead 3641972d0d [cron] Bump distribution date (2020-07-04) 2020-07-04 00:08:37 +00:00
ellensp 91dc74ff16 M150 I to set Neopixel by index (#18490) 2020-07-03 16:33:09 -05:00
ellensp bb89e33e24 FIx Sanguino/1284p board_upload.maximum_size (#18502) 2020-07-03 16:18:09 -05:00
Keith Bennett 382c566a77 Fix env:mks_robin_nano35 (#18516) 2020-07-03 11:51:44 -05:00
Giuliano Zaro 7448b65567 Fix axis name in serial output (#18522) 2020-07-03 11:49:16 -05:00
Jason Smith 90380d5664 Ensure Git applies Unix line-endings in tests (#18495) 2020-07-03 10:39:03 -05:00
Keith Bennett 8c205c5ff6 FYSETC OLED followup (#18519) 2020-07-03 10:31:25 -05:00
Scott Lahteine f6a2b64091 Clean up LCD Manual Move / UBL Mesh Edit (#18373) 2020-07-03 09:53:22 -05:00
cbteeple 2c15a787c7 Option to set manual Babystepping distance in mm (#18503)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-07-03 09:24:41 -05:00
George Fu 097347b575 Add FYSETC 2.42 inch OLED support (#18485) 2020-07-02 20:33:52 -05:00
InsanityAutomation e401b0c8ee Keep filament runout pin for Creality Melzi (#18504) 2020-07-02 19:32:06 -05:00
thinkyhead 299d1fea24 [cron] Bump distribution date (2020-07-03) 2020-07-03 00:08:52 +00:00
Scott Lahteine 7b6629c08c Extend thermistor 1047 to 500°C 2020-07-01 23:07:44 -05:00
Scott Lahteine e25da63721 Tweak stepper shutdown test 2020-07-01 22:30:48 -05:00
thinkyhead 652c75ceb9 [cron] Bump distribution date (2020-07-02) 2020-07-02 00:08:43 +00:00
Scott Lahteine c43bbcce15 Enforce sensor range for temperature target (#18465)
* Mitigate stepper timeout

* Add CHAMBER PWM code

* Structured thermistor tables

* Fix reversed sensor ranges

* Prevent temps outside sensor range
2020-07-01 16:27:28 -05:00
Scott Lahteine 70fa4c9323 Per-Hotend Default PIDs (#18483) 2020-07-01 16:18:20 -05:00
Victor Oliveira e5bc9d31cc Add TFT_LVGL_UI support (#18438) 2020-07-01 01:30:24 -05:00
Robby Candra 39105384ba Permit independent X2,Y2,Z2,Z3,Z4 endstop inverting (#18481) 2020-07-01 01:22:34 -05:00
ellensp d7e06198c5 Hide menu item with no fan (#18470) 2020-07-01 01:14:18 -05:00
George Fu 992dc14c86 Fix FYSETC CHEETAH V1.2 SD re-insert (#18474)
Include this board with other Cheetah stepper reset.
2020-07-01 01:13:00 -05:00
ellensp 21cc924b75 Fix missing parenthesis (#18473) 2020-07-01 01:10:46 -05:00
thinkyhead 2d6c17b044 [cron] Bump distribution date (2020-07-01) 2020-07-01 00:08:43 +00:00
thinkyhead 34b84d3e63 [cron] Bump distribution date (2020-06-30) 2020-06-30 00:06:54 +00:00
Giuliano Zaro bfcf7ac2fd Use "reset reason" defines (#18462) 2020-06-29 01:02:36 -05:00
Keith Bennett 69b5b91c91 MKS Robin Nano flash-based EEPROM (#18466) 2020-06-29 00:59:08 -05:00
thinkyhead ca4ade4c44 [cron] Bump distribution date (2020-06-29) 2020-06-29 00:07:30 +00:00
Scott Lahteine 48151d1778 ClosedLoop as singleton 2020-06-28 14:35:23 -05:00
Scott Lahteine 30ee0d3800 Suppress unused var warning 2020-06-28 14:02:44 -05:00
Scott Lahteine f4e15967e8 Tweak pins formatting 2020-06-28 00:13:42 -05:00
Serhiy-K ed96b507b9 Russian, Ukranian for wide LCD (#18433) 2020-06-27 23:59:02 -05:00
Fabio Santos 29753baeee Adjustable delta_diagonal_rod_trim (#18423) 2020-06-27 23:53:44 -05:00
JP Flouret 31349fd69a Fix "probing failed" false positives (#18435) 2020-06-27 23:09:15 -05:00
Scott Lahteine 59e4de8a55 Add Romanian language (#18455)
Co-authored-by: cristyanul <47246451+cristyanul@users.noreply.github.com>
2020-06-27 22:59:44 -05:00
InsanityAutomation 3b80690a71 ExtUI additions (#18447)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-06-27 22:02:28 -05:00
InsanityAutomation c1dcc56a0b Tool Change Migration fixes and debugging (#18448) 2020-06-27 21:57:01 -05:00
Scott Lahteine e392745c86 Update language fonts 2020-06-27 19:08:55 -05:00
thinkyhead ad1470b5d2 [cron] Bump distribution date (2020-06-28) 2020-06-28 00:07:10 +00:00
thinkyhead 8474050adb [cron] Bump distribution date (2020-06-27) 2020-06-26 19:31:07 -05:00
Scott Lahteine a907e15ae6 Allow larger ADC debounce
Reference #17205
2020-06-26 19:31:07 -05:00
Scott Lahteine 319e93f55d Patch some DGUS warnings 2020-06-26 18:53:44 -05:00
Jason Smith 5a96695ead Fix Fan Speed menu items (#18400) 2020-06-26 18:10:11 -05:00
Lucas Seiki Oshiro 90135803a3 Update Brazilian Portuguese language (#18411) 2020-06-26 02:09:30 -05:00
Johnny Eshak 2330ee48f2 BTT SKR Pro runout pins (#18416) 2020-06-26 01:46:31 -05:00
Giuliano Zaro ce3fb61604 SAMD51 cleanup (#18419) 2020-06-26 01:39:49 -05:00
Keith Bennett c6a066c0be Update MKS Robin Nano auto-build env (#18417) 2020-06-26 01:37:22 -05:00
Giuliano Zaro aae5f7229c [samd51] Manifest assigned timers priority (#18402) 2020-06-26 01:23:39 -05:00
Giuliano Zaro 834c265e2c Update Italian language (#18414) 2020-06-26 01:22:32 -05:00
Scott Lahteine 452072cc08 Fix typo in DWIN, preheat array 2020-06-25 22:56:26 -05:00
Scott Lahteine f445bc26e5 Minor LCD cleanup, improvement 2020-06-25 22:23:22 -05:00
thinkyhead 520c0ab96b [cron] Bump distribution date (2020-06-26) 2020-06-26 00:07:40 +00:00
Scott Lahteine 4ace981ba0 Clean up preheat edit items 2020-06-25 16:16:21 -05:00
Scott Lahteine 859ccd2e28 NO_LCD_REINIT for FSMC (or, no SD_DETECT_PIN) 2020-06-24 20:15:23 -05:00
Scott Lahteine 43a994e0df Fix material preset editing 2020-06-24 20:15:23 -05:00
Scott Lahteine d0f2fde920 Fix material preset type 2020-06-24 19:47:32 -05:00
Scott Lahteine 4275466f49 Fix issues with no hotend / bed / fan (#18395) 2020-06-24 19:44:50 -05:00
Pascal de Bruijn b0aad414ec Use Preheat 1 as M303 default (#18407) 2020-06-24 19:20:07 -05:00
thinkyhead eb5f8b693b [cron] Bump distribution date (2020-06-25) 2020-06-25 00:06:53 +00:00
Pascal de Bruijn c135db1ce7 Display PID Autotune status (#18408) 2020-06-24 15:04:39 -05:00
Victor 2a650a2793 TFT_LITTLE_VGL_UI followup (#18410) 2020-06-24 14:54:39 -05:00
Scott Lahteine c3d2ffc09c Board-based ST7920 delays 2020-06-23 20:37:28 -05:00
Scott Lahteine 1fb2fffdbf General cleanup 2020-06-23 19:59:38 -05:00
Scott Lahteine 2a9ad52ab1 Run close-stale once per day 2020-06-23 19:59:38 -05:00
thinkyhead f011c6968b [cron] Bump distribution date (2020-06-24) 2020-06-24 00:06:36 +00:00
Scott Lahteine d55a53f9bb Add maintenance actions 2020-06-23 16:54:20 -05:00
Chris Pepper ea569ca29e Update LPC176x platform version (#18392) 2020-06-23 22:30:35 +01:00
Scott Lahteine a0bbdde421 Use libraries from the registry 2020-06-23 16:13:21 -05:00
Scott Lahteine 40fce56585 Move tests up one level 2020-06-23 16:13:21 -05:00
Scott Lahteine 2139141f99 Graphical LCD note 2020-06-23 16:13:21 -05:00
Fabio Santos 25c7c43a82 Add SERIAL_FLOAT_PRECISION option (#18367) 2020-06-22 21:12:45 -05:00
Kirill Vergun 1ea4e393c9 No 'probing failed' with retry (#18379) 2020-06-22 19:50:46 -05:00
thinkyhead 7434d40f8d [cron] Bump distribution date (2020-06-23) 2020-06-23 00:06:49 +00:00
RudolphRiedel e65e2f33f1 Fix ExtUI automatic font scaling (#18377) 2020-06-22 15:41:01 -05:00
ellensp 07966ea82b Fix LPC176x RGB NEOPIXEL startup (#18380) 2020-06-22 15:38:51 -05:00
MoellerDi 3bfbd47c6d Fix 3-point middle point (#18383) 2020-06-22 15:37:14 -05:00
Jason Smith e52afa8b19 Better STM32 Tone timer int priority (#18385) 2020-06-22 15:30:45 -05:00
Jason Smith 819e48972d Improve U8G+SPI delay override (#18386)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-06-22 15:27:01 -05:00
Jason Smith b6cd8b230e TMCStepper 0.7.0 followup (#18388) 2020-06-22 14:25:46 -05:00
Scott Lahteine 2b286a101a Quickie G35 patch 2020-06-21 22:54:26 -05:00
Scott Lahteine 8982756b40 Misc tweaks 2020-06-21 22:17:48 -05:00
Scott Lahteine 31167c158b TMCStepper 0.7.0 2020-06-21 22:17:48 -05:00
Scott Lahteine d236b3dcf5 Clean up setup 2020-06-21 21:24:36 -05:00
Scott Lahteine f604560c63 Tweak dogm_Statusscreen.h 2020-06-21 19:16:36 -05:00
Scott Lahteine 9944403cbf Add Cap:ARCS 2020-06-21 19:15:32 -05:00
thinkyhead 106cf0d71e [cron] Bump distribution date (2020-06-22) 2020-06-22 00:07:01 +00:00
Rui Caridade ac50a355a3 G35: Bed tramming assistant (#16897) 2020-06-21 04:27:51 -05:00
Chris Barr 900d4cf8e7 Allow STM32 HAL_TIMER_RATE override (#18374) 2020-06-21 03:56:00 -05:00
thisiskeithb e424dfc885 BigTreeTech SKR Pro 1.2 (#18366) 2020-06-21 03:46:31 -05:00
Scott Lahteine 8000182bb9 One loop call to ui.update 2020-06-21 02:40:41 -05:00
Scott Lahteine 67db50c699 Fix mfpub final checkout 2020-06-21 00:45:25 -05:00
thinkyhead 1399d75022 [cron] Bump distribution date (2020-06-21) 2020-06-21 00:07:24 +00:00
Scott Lahteine 6350b98fc2 Update Marlin.ino config info 2020-06-20 18:36:06 -05:00
thinkyhead eed32457e3 [cron] Bump distribution date (2020-06-20) 2020-06-20 00:06:55 +00:00
thisiskeithb 8225d66b55 Consolidate MKS Robin / SKR Mini E3 pins (#18354) 2020-06-19 18:32:05 -05:00
brian park bc9e5e2abc Fix _CAN_HOME (Y homing) bug (#18356) 2020-06-19 18:19:29 -05:00
thisiskeithb eddd0d91a4 Fix BIQU BQ111-A4 pins (#18361) 2020-06-19 18:14:22 -05:00
Scott Lahteine d8c3aed038 Sanity-check the chamber thermistor pin 2020-06-19 14:01:24 -05:00
thinkyhead a173f33997 [cron] Bump distribution date (2020-06-19) 2020-06-19 00:06:57 +00:00
Chris Barr d2363c5b35 Clean up RUMBA32 PlatformIO & tests (#18271) 2020-06-18 17:26:40 -05:00
thisiskeithb ef2657d565 Robin Nano updates (#18347) 2020-06-18 17:23:46 -05:00
Giuliano Zaro 88e4dffe88 Fix PID autotune timeout (#18352) 2020-06-18 16:05:12 -05:00
brian park 8e20691f42 Fix Core axis babystepping (#18342) 2020-06-18 15:28:52 -05:00
Scott Lahteine 424569b4c4 Power monitor and display (#17437) 2020-06-18 15:23:03 -05:00
thinkyhead c8e99d572c [cron] Bump distribution date (2020-06-18) 2020-06-18 00:06:49 +00:00
ellensp fa3cfa19be Fix: ANALOG_OK always fails (#18334) 2020-06-17 16:08:39 -05:00
ellensp f13ca24ade Shift/encoder pins not needed for ADC Keypad (#18335) 2020-06-17 16:06:13 -05:00
Scott Lahteine 031f308d39 Fix DWIN typo 2020-06-17 13:00:38 -05:00
chestwood96 c7b553c7b2 Optional move-to-center after UBL G29 J (3-point) (#17964)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-06-17 12:43:17 -05:00
George Fu 697b5fddf7 Update FYSETC S6 variant (#18331) 2020-06-16 22:55:09 -05:00
thinkyhead e58c2d27fc [cron] Bump distribution date (2020-06-17) 2020-06-17 00:06:31 +00:00
InsanityAutomation 23806aeb3c Fix non-PWM spindle/laser compile (#18311)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Luu Lac <45380455+shitcreek@users.noreply.github.com>
2020-06-16 15:49:32 -05:00
Anton Skorochod 0b30de1b8e M73 remaining time for MKS UI (#18326) 2020-06-16 14:33:17 -05:00
ellensp 1c13428d84 Fix CMSIS / USB-FD name conflicts (#18327) 2020-06-16 14:28:28 -05:00
Scott Lahteine caeba33d28 Sensor 502 and PTC cleanup 2020-06-16 14:08:51 -05:00
Scott Lahteine 51be595573 Fix core babystep compile 2020-06-16 13:48:14 -05:00
thisiskeithb 2603a237f9 Add MKS LCD12864 A/B Controller Support (#18120) 2020-06-16 02:43:09 -05:00
ModMike 749589b088 Fix Fysetc SD FW bootloader addr / size requirement (#18246) 2020-06-16 02:39:53 -05:00
George Fu c4b11e03b9 Fix DGUS screen bug (#18320) 2020-06-16 02:38:22 -05:00
ellensp c81ef492e3 Fix u8g draw character Y position (#18322) 2020-06-16 02:19:42 -05:00
Scott Lahteine 8b96d885e4 Ender 3 V2 followup 2020-06-16 02:14:42 -05:00
Scott Lahteine b5f5736c90 Ender 3 V2 followup 2020-06-16 02:10:46 -05:00
Scott Lahteine f4c258dc23 Creality Ender 3 v2 (#17719) 2020-06-16 01:45:27 -05:00
makerbase 642112d3eb Add MKS UI (TFT_LITTLE_VGL_UI) (#18071) 2020-06-15 21:05:33 -05:00
Victor 6d571a547c Clean up TFT / Touch code (#18296) 2020-06-15 20:51:12 -05:00
Scott Lahteine 884e2146a1 Rename part 2
Co-Authored-By: avion23 <avion23@users.noreply.github.com>
2020-06-15 20:46:52 -05:00
Ralf Waldukat 420efc18f4 Fix chitu_f103.json (make lowercase) 2020-06-15 20:46:52 -05:00
Victor 8358f3eadb Chitu V5 with extra GPIO init (#18299)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-06-15 20:00:44 -05:00
thinkyhead 636813a83a [cron] Bump distribution date (2020-06-16) 2020-06-16 00:17:01 +00:00
cccc fe46704848 Fix UTF char cutoff at DOGM edge (#18294) 2020-06-15 19:07:46 -05:00
XDA-Bam a4b46eaf8f Add JD_HANDLE_SMALL_SEGMENTS option (#18316) 2020-06-15 18:54:00 -05:00
Scott Lahteine aea60d9450 Clean up trailing spaces 2020-06-15 18:11:32 -05:00
InsanityAutomation 138d0622ee Fix CI test for FYSETC (#18314) 2020-06-15 16:46:55 -05:00
InsanityAutomation 955971486b Fix toolchange compile error (#18312) 2020-06-15 16:26:09 -05:00
InsanityAutomation fc99665c01 Fix Max Jerk edit menu (#18310) 2020-06-15 16:01:21 -05:00
MESlammer bc43a28587 Bring thermistor names up to date (#18303) 2020-06-15 16:00:19 -05:00
Per Ivar Nerseth 10601a932a Zonestar P802M bed thermistor (#18289)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-06-14 20:09:25 -05:00
thinkyhead e1d07f9541 [cron] Bump distribution date (2020-06-15) 2020-06-15 00:06:35 +00:00
Lukas Erlacher 9a52193cc6 Fix GTM32 Rev B LCD pins (#18293) 2020-06-14 01:02:04 -05:00
Scott Lahteine 5ba1cbaf8e Update formatting rules 2020-06-14 00:01:37 -05:00
thinkyhead 8609f5b2f2 [cron] Bump distribution date (2020-06-14) 2020-06-14 00:06:57 +00:00
cccc 1e41998dc6 Fix Chinese language typo (#18268) 2020-06-13 16:34:05 -05:00
Tanguy Pruvot 7db3391524 Remove DOGM bottom horizontal line/separator (#18273) 2020-06-13 16:33:08 -05:00
Tanguy Pruvot 62db10919a Update French language (#18276) 2020-06-13 16:31:24 -05:00
ManuelMcLure 3e5158c430 Move Case Light to LEDs submenu (#18290) 2020-06-13 16:29:43 -05:00
thinkyhead 2668288e6c [cron] Bump distribution date (2020-06-13) 2020-06-13 00:06:55 +00:00
Scott Lahteine 0c4cf2ce32 Update formatting rules 2020-06-12 16:33:32 -05:00
J.C. Nelson 40f55f8b98 Chitu variant for disk-based update (#18264) 2020-06-11 21:53:26 -05:00
Victor 0a49ad1ccf TFT 3x upscale followup (#18256) 2020-06-11 21:42:19 -05:00
Victor 1d504e596d Touch-to-jog on edit screens (#18266) 2020-06-11 21:21:18 -05:00
rudihorn eef2931150 Fix PTC calculation (#18265) 2020-06-11 20:46:25 -05:00
MoellerDi 2ddd7d2d8d Fix extra comma typo (#18262) 2020-06-11 20:44:48 -05:00
cbaugher 92435ef5ea Tenlog D3 Hero 7-axis board (#18263) 2020-06-11 20:43:28 -05:00
Chris Barr c12111e2cc Improve and extend RUMBA32 (#18249) 2020-06-11 20:28:20 -05:00
Scott Lahteine ea20c77df9 Clean up envs / variants 2020-06-11 20:26:24 -05:00
thinkyhead 85e48bbb0d [cron] Bump distribution date (2020-06-12) 2020-06-12 00:06:39 +00:00
Victor c6f3511d84 Touch-select MarlinUI menu items (#18239) 2020-06-11 16:13:52 -05:00
Scott Lahteine fe969ec6d3 FTDI whitespace tweaks 2020-06-11 15:27:51 -05:00
thinkyhead bbe8400c5a [cron] Bump distribution date (2020-06-11) 2020-06-11 00:06:30 +00:00
notabucketofspam b1609e82a0 Add Bed PID edit/autotune menu items (#18250)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-06-10 18:37:10 -05:00
Scott Lahteine 67305f7976 Add "Bed" / "Chamber" substitutions (#18255) 2020-06-10 18:35:56 -05:00
rudihorn 3bf990ec34 PTC: Extend options, fix probing bugs (#18253) 2020-06-10 18:25:17 -05:00
ellensp 2de22aae2d Melzi (Creality) pins notes (#18251) 2020-06-10 17:19:39 -05:00
Victor e2cc966621 Tronxy X5SA (V5 / V6 boards) (#18243) 2020-06-10 17:16:22 -05:00
Scott Lahteine 75119c433a Default filament 1.75mm 2020-06-09 23:20:20 -05:00
thinkyhead a9fc8c3f2a [cron] Bump distribution date (2020-06-10) 2020-06-10 00:06:54 +00:00
Tanguy Pruvot 3eda8b5a8f Fix DOGM / TMF buttons Y position (#18245) 2020-06-09 16:53:22 -05:00
Scott Lahteine ca5a8ea827 Add G-code "backspace" support 2020-06-08 20:17:44 -05:00
Victor 265ab19ed2 TFT 2x-3x scale, Anycubic, TronXY TFT support (#18224) 2020-06-08 20:02:01 -05:00
Sergey1560 bcf7ac7483 STM32F1: Fix SDIO read errors (#18228) 2020-06-08 19:59:44 -05:00
thisiskeithb 63c280a6ca Robin E3/E3D EEPROM size (#18230) 2020-06-08 19:56:06 -05:00
MoellerDi f2b2b391db Fix EEPROM struct (#18234) 2020-06-08 19:54:39 -05:00
Luu Lac 0fa345f98f Laser updates followup (#18237)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-06-08 19:53:39 -05:00
thinkyhead 2f28e8ba13 [cron] Bump distribution date (2020-06-09) 2020-06-09 00:06:39 +00:00
MoellerDi bac760207c Add volumetric extrusion limit (#17017) 2020-06-08 03:24:46 -05:00
Alexander Amelkin 8994cc8b26 Fix BTT SKR Pro 1.0 UART4/5 (#18222) 2020-06-08 03:04:52 -05:00
Luu Lac eda2fd8dbe Improvements for Laser / Spindle (#17661) 2020-06-08 00:47:31 -05:00
Scott Lahteine 5ac66b0f95 Rumba in the junga 2020-06-07 23:45:25 -05:00
Victor 215b400038 Allow SDIO clock/retry overrides (#18223)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-06-07 23:35:52 -05:00
Scott Lahteine d7561c4b98 Fix rumba32 environments
Followup to #18116
2020-06-07 22:34:39 -05:00
Scott Lahteine cfd31ff70e Add HAS_FILAMENT_RUNOUT_DISTANCE 2020-06-07 21:55:09 -05:00
Scott Lahteine 45488a431a Clean up whitespace 2020-06-07 21:52:06 -05:00
Jason Smith 1a5663fbf4 PIO base STM32 environment (#18116) 2020-06-07 20:29:10 -05:00
Scott Lahteine 89704ce7f9 Support STM32 platform up to 6.1.x 2020-06-07 19:50:22 -05:00
DocYester 19024306fc Robin E3D Flash-based EEPROM (#18219) 2020-06-07 19:48:18 -05:00
Roman Moravčík 941d72fd8d Update Slovak language (#18210) 2020-06-07 19:44:04 -05:00
cccc 2840e3a8f9 Update Chinese (CH) language (#18211) 2020-06-07 19:43:30 -05:00
thinkyhead 968979f42d [cron] Bump distribution date (2020-06-08) 2020-06-08 00:06:48 +00:00
mikekscholz 859b047a23 Revert M290 report style (#18202) 2020-06-07 18:44:35 -05:00
thinkyhead 8313302266 [cron] Bump distribution date (2020-06-07) 2020-06-07 00:06:51 +00:00
Scott Lahteine 9a0b0d8469 Add a code formatter 2020-06-06 04:04:35 -05:00
thinkyhead fda1ef2dd3 [cron] Bump distribution date (2020-06-06) 2020-06-06 00:06:30 +00:00
Scott Lahteine bf25cc8412 Add a script to id configs 2020-06-05 16:20:27 -05:00
Scott Lahteine 6371782263 Add HAS_MULTI_SERIAL conditional 2020-06-05 16:20:27 -05:00
Leo f350e9d0cb Shorter BTT board names (for LCD info) (#18139) 2020-06-04 21:29:47 -05:00
git-user44 9e2f142391 Clean up Melzi LCD timing defaults (#18187)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-06-04 19:55:39 -05:00
MoellerDi fcb8c5a1c1 Fix G34 move in wrong direction (#18188) 2020-06-04 19:09:01 -05:00
thinkyhead a500862dc6 [cron] Bump distribution date (2020-06-05) 2020-06-05 00:08:38 +00:00
Scott Lahteine 2d1cbf8e1d Add comment to M281 2020-06-04 03:14:41 -05:00
grauerfuchs d5bfc5b07b Fix Mightyboard envs (#18194) 2020-06-03 23:23:53 -05:00
Giuliano Zaro 076b2112a3 Fix spindle power LCD display (#18189) 2020-06-03 23:20:19 -05:00
thinkyhead 6f90967780 [cron] Bump distribution date (2020-06-04) 2020-06-04 00:06:15 +00:00
George Fu 8477dbf65d Update FYSETC STM32F103 ldscript and script (#18179) 2020-06-02 21:04:22 -05:00
cccc 419f31f371 SoftwareSerialM for MEEB (#18178) 2020-06-02 21:03:59 -05:00
ellensp ce62209bce Probe margin. Bump config version (#18140)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-06-02 20:41:50 -05:00
XDA-Bam a0b27e6702 Fix JD LUT math & bugs (#18175) 2020-06-02 19:30:43 -05:00
Scott Lahteine 5f9624f70b Ensure XY known for Z safe homing
Addressing #18143
2020-06-02 19:13:01 -05:00
thinkyhead 142e65192d [cron] Bump distribution date (2020-06-03) 2020-06-03 00:06:23 +00:00
Scott Lahteine a1f3d2f3cd Move set_all_z_lock to Stepper 2020-06-02 02:37:33 -05:00
Scott Lahteine c9a260ee12 MEEB cleanup, whitespace
Followup to #18138
2020-06-02 02:34:08 -05:00
thisiskeithb ad08722d0d Chirp followup 2 (#18176)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-06-01 22:40:51 -05:00
Mark Scammacca 7119596170 G-code line number for each serial port (for TFTs) (#18165) 2020-06-01 22:19:10 -05:00
Scott Lahteine 53cb2963dc Fix chirp with TOUCH_BUTTONS 2020-06-01 19:42:56 -05:00
thinkyhead 544f7202a3 [cron] Bump distribution date (2020-06-02) 2020-06-02 00:06:17 +00:00
ellensp 33d1e77e2e Allow pins override of *_TIMER_NUM and HAL_*_TIMER_ISR (#18128)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-06-01 18:33:30 -05:00
cccc 2bf63e29c6 Support for MEEB 3DP board (#18138) 2020-06-01 18:25:13 -05:00
Scott Lahteine 48d9a5367b Chirp followup 2020-06-01 17:06:38 -05:00
Scott Lahteine 785f442c8c Group some sanity checks 2020-06-01 17:03:58 -05:00
Scott Lahteine bda380513a Add valid() to recovery.info 2020-06-01 17:02:58 -05:00
Jonathan Gilbert e380498512 Fix Z homing with custom probe pins (#18150) 2020-06-01 00:19:36 -05:00
thinkyhead 6515100807 [cron] Bump distribution date (2020-06-01) 2020-06-01 00:06:36 +00:00
Scott Lahteine 657eeab013 Improve some probe sanity errors 2020-05-31 01:40:33 -05:00
Jason Smith dcb90a8d61 No SERIAL_STATS for LPC, STM32 (#18145) 2020-05-31 00:45:04 -05:00
MoellerDi d2d52e3c34 Declare MSerial6 (etc.) for STM32 (#18149) 2020-05-31 00:43:37 -05:00
Eyal 815c8d2b55 Improve G2 / G3 motion accuracy (#18144) 2020-05-31 00:26:15 -05:00
git-user44 46112b9d50 Adjust Melzi ST display timing (#18160) 2020-05-31 00:21:08 -05:00
Leandro A. F. Pereira 801f99edad SDCARD_READONLY (#17884) 2020-05-30 23:59:29 -05:00
Scott Lahteine 2ad3da98d4 Fix some spelling 2020-05-30 23:28:30 -05:00
thisiskeithb 3430d45f53 BTT SKR Mini E3 V2 (#18088)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-05-30 23:27:21 -05:00
Scott Lahteine 7628895ac8 Apply misc TERN 2020-05-30 22:34:30 -05:00
Scott Lahteine 6ee81f0d26 eeprom_init from STM32F1/access_start 2020-05-30 22:34:30 -05:00
thinkyhead 200ba87d63 [cron] Bump distribution date (2020-05-31) 2020-05-31 00:06:32 +00:00
thinkyhead 30832ce915 [cron] Bump distribution date (2020-05-30) 2020-05-30 00:06:08 +00:00
thinkyhead 9b92d5fb0e [cron] Bump distribution date (2020-05-29) 2020-05-29 00:06:03 +00:00
ellensp a740b6b318 More 'extend'ed environments (#18118)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-05-28 12:52:13 -05:00
thinkyhead 11ef4833f8 [cron] Bump distribution date (2020-05-28) 2020-05-28 00:08:57 +00:00
Scott Lahteine 84c43e9ee7 Fix test comments 2020-05-27 13:46:01 -05:00
Scott Lahteine 4724af1011 Better home for 'chirp' 2020-05-27 13:40:22 -05:00
Scott Lahteine 3bf0d8d161 Allow disable of LCD click 2020-05-27 13:17:30 -05:00
Chris Pepper a49319f3dd Fix FYSETC_AIO_II build (#18124)
BOARD_FYSETC_AIO_II also needs this header for the reset_stepper_drivers function
2020-05-27 17:06:32 +01:00
thinkyhead 094bf40063 [cron] Bump distribution date (2020-05-27) 2020-05-27 00:07:59 +00:00
Bob Kuhn 6c994002af No SD_CHECK_AND_RETRY with USE_USB_COMPOSITE (STM32F103 + SDIO) (#18108)
* disable SD_CHECK_AND_RETRY when USE_USB_COMPOSITE is enabled

* Update Sd2Card.cpp

* Disable SD_CHECK_AND_RETRY with USE_USB_COMPOSITE

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-05-26 00:44:12 -05:00
rudihorn 38ccc769f7 Emergency Parser for STM32 (#18095) 2020-05-26 00:43:29 -05:00
thinkyhead 8b320f9095 [cron] Bump distribution date (2020-05-26) 2020-05-26 00:07:25 +00:00
Jason Smith f402ab7afb Limit MAX31865 library to <1.2 (#18089) 2020-05-25 18:39:51 -05:00
Jason Smith 5fefecc526 Use 'extends' for STM32F1, fix lib versions (#18099) 2020-05-25 18:24:16 -05:00
Gurmeet Athwal f3bf343c89 Report fan speed on change (#18013) 2020-05-25 17:46:35 -05:00
XDA-Bam 5fbea83840 Explicitly optimize x/x in Classic Jerk (#18112)
Can we outsmart the compiler?
2020-05-25 17:29:02 -05:00
g3gg0.de f776260d7a Fix OCR / PWM calculation (#18094)
Fixes #17968
2020-05-25 17:14:15 -05:00
invalidflaw de89a4b7c1 Add PICA Servo / E1 pins (#18100) 2020-05-25 17:09:38 -05:00
grauerfuchs 7d7f58c3e3 Fix Mightyboard PIO env (#18098) 2020-05-25 16:24:50 -05:00
George Fu fe7452c5cb TMC serial multiplexer, FYSETC AIO-II (#18080) 2020-05-25 15:48:33 -05:00
Jason Smith 8c0c8e4046 8 Extruders + Graphical LCD fix (#18079) 2020-05-25 15:42:31 -05:00
thisiskeithb 59dfba3bb8 Fix GTR CR10_STOCKDISPLAY pins (#18078) 2020-05-25 15:37:33 -05:00
ellensp 9bfdc88e52 Provide strcmp_P where needed (#18103) 2020-05-25 15:36:37 -05:00
Scott Lahteine 929b3f6af9 Don't re-reverse sort 2020-05-24 20:17:51 -05:00
Scott Lahteine 0578bbbf5d Marlin: Use strcmp_P 2020-05-24 20:09:30 -05:00
thinkyhead e6e15dd764 [cron] Bump distribution date (2020-05-25) 2020-05-25 00:07:54 +00:00
thinkyhead 7554836589 [cron] Bump distribution date (2020-05-24) 2020-05-24 00:08:10 +00:00
thinkyhead dde8fb9efb [cron] Bump distribution date (2020-05-23) 2020-05-23 00:07:39 +00:00
Leo 8292136f77 Move DOGM progress bar up 1px (#18060) 2020-05-22 15:41:32 -05:00
saxc 62e903c463 Update "Mac OS X" to "macOS" (#18063) 2020-05-22 15:40:15 -05:00
Chris Pepper 4f1ebb4440 Fix Due wired EEPROM init (#18074) 2020-05-22 15:37:11 -05:00
Scott Lahteine 461647fcee Use MARLIN_EEPROM_SIZE with E2END as fallback (#18059) 2020-05-22 02:15:40 -05:00
Scott Lahteine 31eb487da5 whitespace 2020-05-22 02:02:11 -05:00
thinkyhead f7346b6ee1 [cron] Bump distribution date (2020-05-22) 2020-05-22 00:04:21 +00:00
thinkyhead 8cfcabe146 [cron] Bump distribution date (2020-05-21) 2020-05-21 00:04:28 +00:00
thisiskeithb 4e51240563 BTT GTR has I2C EEPROM (#18029) 2020-05-20 15:42:45 -05:00
Giuliano Zaro 9bf768a3fb Update Italian language (#18049) 2020-05-20 15:39:08 -05:00
Mobilinkd LLC 60bed3434b Ignore spurious MAX31855K / 6675 thermocouple errors (#18039) 2020-05-20 15:38:29 -05:00
Giuliano Zaro 7b2a056656 Update SAMD-RAMPS runout pin (#18048) 2020-05-20 15:31:08 -05:00
Giuliano Zaro 0b0ba7dcf6 Fix LCD throttle issue (#18055)
Fixes #18044
2020-05-20 15:28:02 -05:00
thinkyhead 7be748b9b7 [cron] Bump distribution date (2020-05-20) 2020-05-20 00:04:09 +00:00
thisiskeithb 1e32df4c75 Fix Hotend Idle Timeout comment (#18032)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-05-19 02:34:15 -05:00
Jason Smith 7696dea1c6 Fix LPC + EXPERIMENTAL_I2CBUS build error (#18040) 2020-05-19 02:29:19 -05:00
Scott Lahteine bce9527709 Whitespace 2020-05-19 01:32:56 -05:00
thinkyhead 63c43de9b4 [cron] Bump distribution date (2020-05-19) 2020-05-19 00:04:18 +00:00
Jason Smith 94063e3a87 Fix PID + Thermal Protection combos (#18023) 2020-05-18 13:51:32 -05:00
Italo Soares 213d4b890e Hotend Idle Timeout (#16362) 2020-05-18 00:50:35 -05:00
Scott Lahteine 6e01079b48 G29 patch followup 2020-05-17 20:57:16 -05:00
Scott Lahteine e275cd3798 Update some © 2020-05-17 20:49:24 -05:00
Scott Lahteine daa5bbc5eb Comment a motion function 2020-05-17 19:40:45 -05:00
Scott Lahteine fac3a7d147 Fix ABL G29 early BLTouch deploy 2020-05-17 19:40:45 -05:00
thinkyhead c60600ebb9 [cron] Bump distribution date (2020-05-18) 2020-05-18 00:03:57 +00:00
Scott Lahteine d9077e51e8 Make M421 more versatile 2020-05-17 15:12:08 -05:00
Scott Lahteine d9593c8ed4 Tweak mesh xy error 2020-05-17 15:12:08 -05:00
Scott Lahteine c73894308c Tweak M114 D output 2020-05-17 15:12:08 -05:00
Scott Lahteine b8fe3bbd6d Fix position sync on M420 S0 2020-05-17 15:12:08 -05:00
Bastien R 2ec482a102 MMU2 Extruder Sensor support (#17886) 2020-05-17 14:52:45 -05:00
Jason Smith df04a427f3 Fix BTT002 SPEAKER timer conflict (#18011) 2020-05-17 14:48:07 -05:00
thinkyhead 3de1421d72 [cron] Bump distribution date (2020-05-17) 2020-05-17 00:04:07 +00:00
Scott Lahteine 847bdeecaf BOARD_NAME => BOARD_INFO_NAME 2020-05-16 06:02:55 -05:00
Scott Lahteine 45a01a3eca Non-SPI core homing pin tests (#17996) 2020-05-16 01:06:18 -05:00
Mika Norén 76a65ffe74 Vertex nano with board K8600 (#17736) 2020-05-15 21:11:28 -05:00
thinkyhead 3e73993734 [cron] Bump distribution date (2020-05-16) 2020-05-16 00:04:08 +00:00
thinkyhead 64876f7781 [cron] Bump distribution date (2020-05-15) 2020-05-15 00:04:02 +00:00
Scott Lahteine 6ae7a40f99 CoreXY sensorless homing (#17972) 2020-05-14 13:00:47 -05:00
thinkyhead 1d654b559d [cron] Bump distribution date (2020-05-14) 2020-05-14 00:03:58 +00:00
Scott Lahteine 6ec89031ee Fix BIGTREE_SKR_PRO tests 2020-05-13 15:37:07 -05:00
thisiskeithb 5a92462c0f Less ambiguous option comment (#17983) 2020-05-13 14:26:27 -05:00
thisiskeithb 21bfb94357 Fix FTDI EVE Touch UI typo (#17985) 2020-05-13 14:22:41 -05:00
Gustavo Alvarez 6d92f56582 FTDI/EVE, pins cleanup for SKR E3/DIP (#17990) 2020-05-13 14:22:03 -05:00
thinkyhead 104d020222 [cron] Bump distribution date (2020-05-13) 2020-05-13 00:04:03 +00:00
Scott Lahteine 27beade888 Update EP comment 2020-05-12 16:32:40 -05:00
Zs.Antal 69d4bc9271 Fix Hungarian language (#17936) 2020-05-12 14:59:19 -05:00
chestwood96 18a01f2c40 Add user's build (_date_ _time_) to M115 output (#17957)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-05-12 14:57:18 -05:00
Scott Lahteine b88cf2edcb Remove version appendage 2020-05-12 14:48:50 -05:00
Scott Lahteine 2e03c7939c Simplification 2020-05-12 14:48:50 -05:00
Scott Lahteine 219812e3bb Squish microstep_readings 2020-05-12 02:11:32 -05:00
Scott Lahteine ac6a58010d Reorder RAMBo tests 2020-05-12 02:11:32 -05:00
Scott Lahteine 73e0937f49 Fix HAS_MICROSTEPS if only Z 2020-05-12 02:11:32 -05:00
Scott Lahteine d853a70556 Remove strcpy compile warning 2020-05-12 02:11:32 -05:00
Scott Lahteine d4aa197744 Add MAP macro 2020-05-12 02:11:32 -05:00
espr14 ab19a27f63 Prevent some macro pitfalls (#17956)
Co-authored-by: espr14 <espr14@users.noreply.github.com>
2020-05-12 01:01:16 -05:00
Scott Lahteine 181739d0d1 Move inline laser state to fix EEPROM error 2020-05-12 00:10:04 -05:00
Scott Lahteine a06a0c5b88 Fix SKR/GTR PeripheralPins.c (#17937)
* Add a separate GTR board/variant.
* Revert SKR Pro MOSI (before 248b7dfa59).
2020-05-11 23:56:44 -05:00
RudolphRiedel 98fdc67f1d Fixes for FYSETC Cheetah (#17935) 2020-05-11 23:51:07 -05:00
Scott Lahteine 798dc68847 Combine some conditions 2020-05-11 23:27:01 -05:00
Scott Lahteine c2d66a5df0 Tweak JD + Jerk limit 2020-05-11 23:27:01 -05:00
Scott Lahteine 7664e552f1 Finish DOGM progress bar
Fixes #17940
2020-05-11 23:26:58 -05:00
Scott Lahteine 0fbedf5b4c Fix LPC host actions, add tests
Fixes #17955
2020-05-11 22:15:25 -05:00
Scott Lahteine df9cad6a53 Correct DEFAULT_MINSEGMENTTIME units 2020-05-11 22:15:25 -05:00
Daniel Callander d35dd2a47e Fix babystep / double-click check (#17962) 2020-05-11 22:01:47 -05:00
Scott Lahteine e6079bd14e Correct endstop noise comment 2020-05-11 20:16:48 -05:00
Scott Lahteine aecfc05748 Align slightly in M114 detail 2020-05-11 19:24:58 -05:00
Colin Godsey 8a22ef0c83 G6 Direct Stepping (#17853) 2020-05-11 19:22:41 -05:00
thinkyhead 174e41c17d [cron] Bump distribution date (2020-05-12) 2020-05-12 00:19:12 +00:00
thisiskeithb 2f3077f219 Tests (LPC176x): Emergency Parser (#17967) 2020-05-11 19:14:06 -05:00
chestwood96 1475fd312a M600 R<resume temperature> (#17919)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-05-11 02:06:31 -05:00
Jason Smith 4680aa659c EEPROM Flash Leveling enabled for more STM32F4 (#17948) 2020-05-11 01:12:11 -05:00
Jason Smith 25aade1cf1 Improve STM32F4 Flash Behavior (#17946) 2020-05-11 01:10:20 -05:00
Eric Ptak 9d545f1231 Fysetc S6 direct DFU upload (#17943) 2020-05-11 01:07:19 -05:00
XDA-Bam 3381a4ab03 Fix vector normalization in JD (#17938) 2020-05-11 01:06:35 -05:00
XDA-Bam e22e0763d9 Reduce division in JD calc (#17945) 2020-05-10 21:23:51 -05:00
Desuuuu fcd1678a17 Actually apply DGUS_[RT]X_BUFFER_SIZE (#17952) 2020-05-10 21:21:47 -05:00
Desuuuu 00e7599c8c Fix host_action_notify and string types (#17953) 2020-05-10 21:19:23 -05:00
Scott Lahteine 3b87fc19e4 Adjust some variants spacing, comments 2020-05-10 19:28:49 -05:00
thinkyhead df7250baa8 [cron] Bump distribution date (2020-05-11) 2020-05-11 00:04:00 +00:00
Scott Lahteine 33127f4476 More conservative Trinamic DIR delay
See #17323

This makes babystepping more reliable and may improve Trinamic motion overall.

Co-Authored-By: chgi <chgi@users.noreply.github.com>
2020-05-10 18:43:00 -05:00
Scott Lahteine 86c1125380 Sanity check 3-point defines
Fixes #17870
2020-05-10 04:52:57 -05:00
Scott Lahteine e5b0892f08 Fix TERN typo, EXTRA_PROBING
Co-Authored-By: Matthew Kennedy <mattkenn4545@gmail.com>
2020-05-10 04:40:30 -05:00
Scott Lahteine 32dc874928 Tempted by the const of a seg_length 2020-05-10 03:42:58 -05:00
Jason Smith 8d3caa9944 Newer TMCStepper better for LPC176x (#17934) 2020-05-10 03:08:01 -05:00
Scott Lahteine de6a725b04 Fix G2/G3 segment size
Fixes #17348
2020-05-10 02:46:48 -05:00
Jason Smith ba9a9bbe58 Normalize HAL/STM32 targets (#17904) 2020-05-10 01:49:30 -05:00
Scott Lahteine 71b41c963b Better EEPROM alert message 2020-05-10 00:37:19 -05:00
Scott Lahteine 52aa459a2d Improved EEPROM boot error (#17916) 2020-05-10 00:12:56 -05:00
Gurmeet Athwal 91fe0e1022 Fix line ending in M360 (#17917) 2020-05-09 23:36:04 -05:00
Alexander Gee 7a9bb6bc86 Remove old M73 / SD comment (#17928) 2020-05-09 23:35:26 -05:00
Brais Fortes 37f86d9e08 Update Galician language (#17929) 2020-05-09 23:26:06 -05:00
Jason Smith 209fd2d0cb Fix SERIAL_ECHO forever bug (#17932) 2020-05-09 23:25:18 -05:00
Jason Smith 2af270ca42 Fix M115_GEOMETRY_REPORT extra commas (#17933) 2020-05-09 23:24:15 -05:00
thinkyhead 60be3b19be [cron] Bump distribution date (2020-05-10) 2020-05-10 00:03:47 +00:00
thinkyhead a95a60c7ea [cron] Bump distribution date (2020-05-09) 2020-05-09 00:07:15 +00:00
Bob Kuhn 8f3d17699a Init all ESP01 (module) WIFI pins (#17679) 2020-05-08 02:43:53 -05:00
Tanguy Pruvot 8fd3af0c79 Fix UBL mesh edit grid display (#17897) 2020-05-08 01:26:33 -05:00
George Fu 34a2fd7b09 DGUS minor fixups (#17901) 2020-05-08 01:24:27 -05:00
Jason Smith 703e97b7af Support TMCStepper with MKS Robin Pro (#17908) 2020-05-08 01:19:28 -05:00
Jason Smith a2153c15ee Add TMC driver HW serial defines (#17909) 2020-05-08 01:15:12 -05:00
thinkyhead c262b9c5a3 [cron] Bump distribution date (2020-05-08) 2020-05-08 00:03:24 +00:00
Scott Lahteine 6be76af617 Overrideable CASE_LIGHT_PIN 2020-05-07 14:57:41 -05:00
thinkyhead 10e875cd79 [cron] Bump distribution date (2020-05-07) 2020-05-07 00:03:32 +00:00
Gurmeet Athwal 6947dc139e Fix M503 output formatting (#17893) 2020-05-06 03:40:04 -05:00
Scott Lahteine 7c26a54d3f Fix, clarify LCD_TIMEOUT_TO_STATUS
Replaces #17887

Co-Authored-By: Daniel Callander <knifa@users.noreply.github.com>
2020-05-06 03:34:39 -05:00
Scott Lahteine 1aa9d44783 Format some pins 2020-05-06 01:40:40 -05:00
Gustavo Alvarez 0332666d38 Fix Cheetah pins alias (#17882) 2020-05-06 01:16:32 -05:00
Scott Lahteine 544b16639e Fix poll_runout_states bug 2020-05-06 01:15:13 -05:00
Gurmeet Athwal a4c981469e Extended reporting options (#16741) 2020-05-05 23:34:04 -05:00
Scott Lahteine 9ce950e3c1 Move M114 options down 2020-05-05 20:15:48 -05:00
Giuliano Zaro 7a03c5a0c6 Update Italian language (#17888) 2020-05-05 19:20:02 -05:00
thinkyhead 9df7992de8 [cron] Bump distribution date (2020-05-06) 2020-05-06 00:03:27 +00:00
Scott Lahteine 39f703310b Move S_FMT to HAL, apply to mixer 2020-05-05 18:12:36 -05:00
Scott Lahteine 7a2cc782b4 Clean up planner modifier methods 2020-05-05 15:38:48 -05:00
Scott Lahteine 852a8d6685 Configurable kill pin state
Co-Authored-By: AbdullahGheith <abdullahgheith@users.noreply.github.com>
2020-05-05 03:31:15 -05:00
Gustavo Alvarez 3fd8ef52c5 More FTDI EVE fixes (RAMPS, Cheetah) (#17759) 2020-05-05 02:38:06 -05:00
Axel 2acdd2fadc Add Mightyboard Mega env (#17861) 2020-05-05 02:25:22 -05:00
Scott Lahteine 973a6990b5 Trailing whitespace 2020-05-05 01:24:35 -05:00
Axel ac5249a76c Update README MCU/boards (#17827) 2020-05-05 01:07:02 -05:00
Scott Lahteine d2b7671253 No Z stall by default 2020-05-05 00:59:39 -05:00
Scott Lahteine eeabe66fc4 Some distinct E helpers 2020-05-05 00:52:45 -05:00
Scott Lahteine 39263efef7 Allow more serial parameters 2020-05-04 23:46:38 -05:00
Scott Lahteine 90e1035e9b Define max_e_jerk as array always 2020-05-04 23:10:23 -05:00
Scott Lahteine 97e47b4494 Wrap some macros 2020-05-04 23:08:15 -05:00
Scott Lahteine 65104b7d78 Whitespace, M200 test label 2020-05-04 19:26:46 -05:00
Scott Lahteine bab37dcfae Add templated j_move_axis 2020-05-04 19:26:46 -05:00
Scott Lahteine 0080305fa6 Tweaks to platformio.ini 2020-05-04 19:26:46 -05:00
thinkyhead 7655620fd0 [cron] Bump distribution date (2020-05-05) 2020-05-05 00:03:45 +00:00
Scott Lahteine c55475e8e7 Fix and combine JD condition 2020-05-04 19:02:08 -05:00
Mathias Rasmussen d571a4d389 Relax bed cooling safety check (#17877) 2020-05-04 17:23:35 -05:00
Marcio T 98196673aa Fix setStatusMessage calls (#17879) 2020-05-04 17:19:49 -05:00
Scott Lahteine 9fe781ccaf Tweak powerloss info 2020-05-04 16:37:27 -05:00
Scott Lahteine b8947ac8a5 More explicit junction/jerk math 2020-05-04 16:13:10 -05:00
Scott Lahteine 2efe28ca59 Minor conditional clean 2020-05-04 16:11:36 -05:00
Jason Smith cd8e6a1ad7 Git attributes for UNIX line endings (#17842) 2020-05-04 15:40:23 -05:00
randellhodges 4c4be32ad7 LPC176x requires USE_SHARED_EEPROM (#17858) 2020-05-04 14:54:33 -05:00
Štěpán Dalecký ebe8f2c605 Fix acosx condition (#17846) 2020-05-04 14:39:51 -05:00
Scott Lahteine 38d1587091 Malyan M200 V2 (#17840) 2020-05-04 14:37:43 -05:00
mojocorp 1c32f10039 Fix Malyan LCD crash bug (#17855) 2020-05-04 14:03:01 -05:00
MigueKun 714df3001a Fix Fysetc S6 PIO env (#17865) 2020-05-04 13:59:22 -05:00
Marcio T 2a959cde6f Fix undefined/unused, Touch UI (#17874) 2020-05-04 13:57:12 -05:00
thinkyhead 5e23fd6ef1 [cron] Bump distribution date (2020-05-04) 2020-05-04 00:03:16 +00:00
Scott Lahteine 9a6934874a Add XYZ_NO_FRAME option 2020-05-03 01:24:39 -05:00
studiodyne 36efe75ad1 Followup for Tool Migration (#17800) 2020-05-03 00:32:25 -05:00
Štěpán Dalecký 0c68794fa9 Improve JD acosx implementation (#17817) 2020-05-02 23:59:09 -05:00
studiodyne 9a4a768ee3 Fix frequency limit editing (#17763) 2020-05-02 22:21:40 -05:00
Stephan 120fcd1215 Support GT2560 3rd extruder (#17797) 2020-05-02 22:19:05 -05:00
animavitis 3ea1c8a6fa Support for Ortur 4.3 mainboard (#17790) 2020-05-02 22:12:52 -05:00
Scott Lahteine 6b3ed0f320 Cleanup in language.h 2020-05-02 21:32:36 -05:00
thinkyhead ef02358378 [cron] Bump distribution date (2020-05-03) 2020-05-03 00:06:47 +00:00
Axel 7613383e7b Add Rostock 301 thermistors (22, 23) (#17806) 2020-05-02 18:45:54 -05:00
Dipl.-Ing. Raoul Rubien, BSc cba4c5a756 Fix missing var for DGUS_LCD_UI_ORIGIN (#17819) 2020-05-02 18:32:01 -05:00
Dipl.-Ing. Raoul Rubien, BSc 739b738e7f Permit more Creality pin overrides (#17820) 2020-05-02 18:30:23 -05:00
Eric Ptak 8d425c6720 Fix missing ProbeTempComp refs (#17833) 2020-05-02 18:27:18 -05:00
Marcio T db32af9171 Fix ExtUI + Archim compile, typos (#17825) 2020-05-02 17:30:51 -05:00
Jason Smith 208af8cb15 Fix STM32 + SoftwareSerial compile (#17831) 2020-05-02 17:24:51 -05:00
Scott Lahteine 52f3f3b5ab Fix motor current array 2020-05-02 17:00:12 -05:00
Gurmeet Athwal 9381a76d75 Add Cap:LONG_FILENAME (#17821) 2020-05-02 16:19:40 -05:00
Mathias Gartner 288447d01e Fix XYZ types multiplication/division (#17826) 2020-05-02 16:15:49 -05:00
mojocorp 93946c2868 Fix ExtUI compile (#17834) 2020-05-02 16:13:14 -05:00
Scott Lahteine 9b7807d40f Clean up M122 code 2020-05-02 15:39:38 -05:00
thinkyhead dcd02284be [cron] Bump distribution date (2020-05-02) 2020-05-02 00:03:28 +00:00
Scott Lahteine 2e21c72542 Add ExtUI mesh items for Malyan LCD
Fixes #17429
2020-05-01 00:52:46 -05:00
Scott Lahteine 2107bc5836 Clean up EEPROM interfaces (#17803) 2020-05-01 00:04:55 -05:00
Scott Lahteine a226b281af UI and stall reset for extra TMC axes (#17818) 2020-04-30 22:52:33 -05:00
Scott Lahteine 6edc2c3690 Fix eeprom init glitch 2020-04-30 22:50:05 -05:00
J.C. Nelson b4aebbe78d Allow STM32 pins to specify timers (#17805)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-04-30 22:42:40 -05:00
Scott Lahteine 76bc7bf7b8 Pre-clean DUE flash eeprom code 2020-04-30 22:10:46 -05:00
Scott Lahteine 306578d7be More explicit LPC timer defines 2020-04-30 19:31:49 -05:00
thinkyhead 3efbe9a1c4 [cron] Bump distribution date (2020-05-01) 2020-05-01 00:03:30 +00:00
Giuliano Zaro 0b762189b4 Change RAMPS default filament runout pin (#17814) 2020-04-30 18:18:23 -05:00
Scott Lahteine 9b820d71a6 Remove QSPI from "wired" EEPROM type 2020-04-30 18:16:10 -05:00
Giuliano Zaro bd8436d1c5 Fix SAMD51 i2c EEPROM (#17815)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-04-30 18:14:49 -05:00
Scott Lahteine 7f5730ea3b Minimal interface for F4/F7 flash 2020-04-30 18:00:42 -05:00
Scott Lahteine 3c080ee3e6 Cleanup, comment "wired" eeproms 2020-04-30 18:00:42 -05:00
Scott Lahteine a521b0edbb Strip never-used eeprom functions 2020-04-30 17:25:27 -05:00
Scott Lahteine b335c38162 Drop extra Marduino includes 2020-04-30 17:25:27 -05:00
thinkyhead 391f7fd742 [cron] Bump distribution date (2020-04-30) 2020-04-30 00:03:19 +00:00
Scott Lahteine e8b0796fc7 Revert menu_item_if ahead of refactor 2020-04-29 15:06:38 -05:00
Scott Lahteine c26725c5a0 L64XX can use hardStop for M17
See #17794
2020-04-29 15:06:19 -05:00
Scott Lahteine 5e6faa999d Refine EEPROM types / flags (#17772) 2020-04-29 14:46:33 -05:00
Scott Lahteine 2d758663db G12 E soft endstops parameter (#17788) 2020-04-29 03:25:35 -05:00
ellensp 36adbfa41c Fix MKS S-Gen standard pins (#17786)
Fixes #17783
2020-04-29 03:16:13 -05:00
Scott Lahteine ef43520d56 Disambiguate i2c calls 2020-04-29 03:13:50 -05:00
Scott Lahteine 2fbce22910 Cleanup followup 2020-04-29 01:47:41 -05:00
thinkyhead 7b0891b3fa [cron] Bump distribution date (2020-04-29) 2020-04-29 00:20:13 +00:00
Scott Lahteine 3d3d2a923b Cleanup with updated macros 2020-04-28 19:18:14 -05:00
Scott Lahteine f03f76ecfb Fix info menu without leveling
Fixes #17664
2020-04-28 19:18:14 -05:00
Scott Lahteine 1d714512f0 Fix undefined Z stall 2020-04-28 19:18:14 -05:00
Stephan e7a6a52eda Use center defines for Z Safe Homing XY (#17782) 2020-04-28 18:12:56 -05:00
Scott Lahteine bd82b8bc7e Suppress compile warnings 2020-04-28 08:34:07 -05:00
Scott Lahteine 4b35ff1f07 STEPPER_TIMER_RATE might call a function 2020-04-28 07:53:51 -05:00
Scott Lahteine 56e3106b63 Clean up whitespace 2020-04-28 07:53:04 -05:00
Scott Lahteine 2c959123e5 Clean up whitespace 2020-04-28 06:09:52 -05:00
randellhodges 5f7a75979f LPC176x SPI / I2C PersistentStore (#17651) 2020-04-28 02:27:55 -05:00
Neil van Geffen 7c3909bc3f Save/Load distinct TMC SG thresholds (#17741) 2020-04-28 01:22:03 -05:00
Marcio T 07a6bf9b84 Enhance and fix FTDI EVE Touch UI (#17755)
- Stop print and play error sound if USB drive is removed.
- Allow configuration of version string in touch UI.
- Print a completion message in the bed mesh leveling screen.
- Don't play redundant sound at the start of a print.
- Clicking on percentage in status screen now goes into print speed screen
- Clicking on axis in status screen now goes to nozzle motion screens
- Use default increment of 100 when nozzle is preheated in temp screen, 10 otherwise
- Fixed grayed out change filament button in tune menu
- Eliminated code duplication in tune menu
- Add button for resetting BLTouch to advanced settings menu
2020-04-28 00:31:05 -05:00
Scott Lahteine 0eeb5e2a29 General cleanup: pause, MarlinCore 2020-04-28 00:22:04 -05:00
studiodyne 89b17b5463 Followup fixes for singlenozzle, etc. (#17712) 2020-04-28 00:21:23 -05:00
Scott Lahteine 4f003fc7a7 Streamline menu item logic (#17664) 2020-04-27 23:52:11 -05:00
Jason Smith f709c565a1 STM32F1: SD EEPROM fallback (#17715) 2020-04-27 23:45:20 -05:00
FilippoR 9fa5119333 Block during move in UBL mesh edit (#17670) 2020-04-27 23:35:10 -05:00
Scott Lahteine 630b4ecfff Patch XY frequency menu 2020-04-27 23:31:17 -05:00
Marcio T 919e53a5d4 Fix: SD pause broken with PARK_HEAD_ON_PAUSE (#17754) 2020-04-27 22:43:42 -05:00
Scott Lahteine 01c646a892 Apply more HAS_HOTEND 2020-04-27 22:39:31 -05:00
Scott Lahteine 94291eb59f Clean up old externs / includes 2020-04-27 22:39:31 -05:00
Scott Lahteine f6e820b4e9 Fix buffer stuff 2020-04-27 22:39:30 -05:00
thinkyhead cd2652b2fc [cron] Bump distribution date (2020-04-28) 2020-04-28 00:17:17 +00:00
Scott Lahteine 66676e6dd4 Remove extra macro 2020-04-27 10:19:37 -05:00
RudolphRiedel 0b3a96412c Fixes for ExtUI / EVE (#17726) 2020-04-27 10:14:42 -05:00
Scott Lahteine 035d6cd16d Patch i2c, info menu 2020-04-27 09:50:10 -05:00
grauerfuchs 9b90dfaa48 Fix draw_temps missing define compile (#17750) 2020-04-27 09:26:45 -05:00
Scott Lahteine 267c25fd53 Remove spurious brace
Followup to c536b8de62
2020-04-27 09:06:56 -05:00
Warboy1982 7eac76d31b Patch BLTouch Z_MAX_PIN for GT2560 Rev.A (non-plus) (#17721) 2020-04-27 08:38:23 -05:00
Neil van Geffen c56b66543d Permit Stall Sensitivity of 0 (#17722) 2020-04-27 08:27:14 -05:00
Scott Lahteine 37176ed2b9 Apply maxtemp patch 2020-04-27 08:17:59 -05:00
Martin 0777e391be Add M115 Cap:BABYSTEPPING (#17691) 2020-04-27 07:31:48 -05:00
Scott Lahteine 5d1498f2cb Fix SKR Pro / GTR i2c pins
Fixes #17297

Co-Authored-By: NAPCAL <napcal@users.noreply.github.com>
2020-04-27 06:57:38 -05:00
Scott Lahteine 5507b6073c Fix dummy thermistors
Fixes #17422

Co-Authored-By: Moeschus <moeschus@users.noreply.github.com>
2020-04-27 06:35:02 -05:00
Scott Lahteine c536b8de62 Apply ternary macros 2020-04-27 06:30:28 -05:00
Scott Lahteine 967c1d8534 Do SD sort order in CardReader 2020-04-27 06:30:28 -05:00
Scott Lahteine fc98383659 Update home bump assert 2020-04-27 06:29:09 -05:00
Scott Lahteine fec416f9db LCD preheat followup 2020-04-27 06:29:09 -05:00
studiodyne 5ae45bab18 Adjustable XY_FREQUENCY_LIMIT (#17583) 2020-04-27 05:59:52 -05:00
InsanityAutomation 65daf3ba40 Fix G12 for SINGLENOZZLE (#17540)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-04-27 05:22:06 -05:00
ellensp c7f9eb7b21 Allow M42 M with other parameters (#17744) 2020-04-27 05:16:47 -05:00
Jason Smith 8f7f7f7c45 Apply missed const& SPI optimization (#17734)
Followup to eebb68cd7f
2020-04-27 05:13:47 -05:00
Scott Lahteine c4d57462dc Apply HAS_MULTI_HOTEND 2020-04-27 05:10:47 -05:00
Scott Lahteine 33217b0dd0 Add HOTEND_OVERSHOOT 2020-04-27 05:07:08 -05:00
Scott Lahteine 8b3c7dda75 Add HAS_FAN and others 2020-04-27 05:07:08 -05:00
Scott Lahteine 3d45a4bd23 Encapsulate Temperature items 2020-04-27 05:07:08 -05:00
Scott Lahteine 011ecc341a Fix I2C_ADDRESS ambiguity 2020-04-27 05:07:08 -05:00
Scott Lahteine e1ad955897 Revert EEPROM tweak 2020-04-27 05:07:08 -05:00
Gurmeet Athwal 8f86f7c601 Add Cap:SDCARD to M115 (#17208) 2020-04-26 20:55:14 -05:00
thinkyhead 3bee705feb [cron] Bump distribution date (2020-04-27) 2020-04-27 00:03:28 +00:00
Scott Lahteine ef74ca60c0 Fix unwarm regData index 2020-04-26 03:11:28 -05:00
Scott Lahteine eebb68cd7f SPI performance tweak 2020-04-26 03:11:28 -05:00
Scott Lahteine 4ed912eb23 Misc. patches 2020-04-25 22:10:19 -05:00
Toni 21067ab062 Add Prusa MMU2S settings - beta (#17523) 2020-04-25 21:07:21 -05:00
thisiskeithb 02a054cda4 HOME_BEFORE_FILAMENT_CHANGE on any axis unknown (#17681) 2020-04-25 20:56:54 -05:00
Axel 1752cd4fe5 Add a Mightyboard pin (#17538)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-04-25 20:03:16 -05:00
thinkyhead 4895546238 [cron] Bump distribution date (2020-04-26) 2020-04-26 00:15:43 +00:00
Scott Lahteine f907de272a Fix mesh point sign
Most obvious part of #17670

Co-Authored-By: FilippoR <filippo.rossoni@gmail.com>
2020-04-25 16:50:05 -05:00
ellensp 75c17c7a67 Include echo: with M503 output (#17665) 2020-04-25 13:29:30 -05:00
studiodyne 28518c2352 Save/Restore leveling on toolchange for singlenozzle too (#17682) 2020-04-25 12:20:42 -05:00
Scott Lahteine aa832a05c7 Use MCP4451 interface for MKS SBASE
Followup to #17536
2020-04-25 12:02:16 -05:00
Gustavo Alvarez 11f7695907 Touch UI FTDI EVE is now beta (#17704) 2020-04-25 11:47:19 -05:00
randellhodges b700b3cde6 Fix M261, i2c EEPROM, i2c Encoder for LPC (#17678)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-04-25 11:35:35 -05:00
Scott Lahteine 307c48fe0a Parity between LPC176x pins 2020-04-25 11:25:05 -05:00
Giuliano Zaro 4d3a2bd22c Clean up filament change menu (#17702)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-04-25 10:56:56 -05:00
Giuliano Zaro be7e04056f Update Italian language (#17707) 2020-04-25 10:44:46 -05:00
studiodyne 58ac9f257c NOZZLE_PARK_FEATURE - X/Y only axis move (#17697) 2020-04-25 10:42:34 -05:00
Ondřej Nový d2a5d51f69 Add NOZZLE_PARK_Z_RAISE_MIN (#17624) 2020-04-24 22:39:08 -05:00
Scott Lahteine 3a27933ae7 Fixes for FYSETC Touch EVE 5" on AVR (#17659)
Co-Authored-By: RudolphRiedel <rudolphriedel@users.noreply.github.com>
Co-authored-by: sL1pKn07 <sl1pkn07@gmail.com>
2020-04-24 22:35:46 -05:00
Giuliano Zaro d7f90c36df Fix SAMD51 Step Timer (#17692) 2020-04-24 22:27:58 -05:00
Gustavo Alvarez 4af83430b5 ReARM SDSS pin for RRD LCDs (#17698) 2020-04-24 22:20:24 -05:00
Giuliano Zaro 75b91550f3 Update Italian language (#17695) 2020-04-24 22:16:47 -05:00
Scott Lahteine e25402b541 Apply TERN 2020-04-24 21:00:42 -05:00
thinkyhead 94dd9ce73d [cron] Bump distribution date (2020-04-25) 2020-04-25 00:03:26 +00:00
Scott Lahteine cf8c14b1b0 ExtUI allow small JD mm 2020-04-24 17:41:35 -05:00
Scott Lahteine 2efbca5535 Composite test followup
See ab2b98e425
2020-04-23 22:46:53 -05:00
Scott Lahteine e11a806460 Revert config replace 2020-04-23 22:36:05 -05:00
Scott Lahteine ab2b98e425 Apply composite tests 2020-04-23 21:53:52 -05:00
Scott Lahteine 55d66fb897 Add HAS_JUNCTION_DEVIATION 2020-04-23 21:53:51 -05:00
Scott Lahteine df22b96d72 Update mfpr 2020-04-23 21:53:51 -05:00
Scott Lahteine 07252ad0b3 Update firstpush 2020-04-23 20:49:58 -05:00
thinkyhead b151feb31e [cron] Bump distribution date (2020-04-24) 2020-04-24 00:03:19 +00:00
Scott Lahteine 44b71103df Patch tool_change typo 2020-04-23 16:19:57 -05:00
Scott Lahteine 69f211cf78 Add empty ui.completion_feedback 2020-04-23 15:17:25 -05:00
Scott Lahteine 239c45dc11 German language followup 2020-04-23 15:17:25 -05:00
Scott Lahteine d5b791a26a Fix Malyan ExtUI parse_lcd_byte
See https://community.platformio.org/t/marlin-compile-fail-board-board-h-no-such-file-or-directory/11843/43
2020-04-22 22:07:38 -05:00
Scott Lahteine 76efba686b More explicit firstpush 2020-04-22 21:05:31 -05:00
studiodyne 2f6262c27b Automatic Tool Migration feature (#17248) 2020-04-22 21:03:28 -05:00
thinkyhead 4dce03fa42 [cron] Bump distribution date (2020-04-23) 2020-04-23 00:03:05 +00:00
Scott Lahteine e222ba4c81 Prevent DUE / Spindle conflict
Fixes #17449
2020-04-22 18:54:13 -05:00
Scott Lahteine 19873f04d4 Fix M100 compile warning 2020-04-22 18:53:40 -05:00
RudolphRiedel f263787f07 Fix ExtUI 0<brightness<12 (#17644)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-04-22 16:47:29 -05:00
Alexander Amelkin c3aeed0dcc Prevent SKR Pro bootloader corruption (#17657)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-04-22 16:43:43 -05:00
Ondřej Nový 468b813bc1 Better ooze prevention during pause (#17625) 2020-04-22 16:43:06 -05:00
Scott Lahteine 6d90d1e1f5 Apply TERN to compact code (#17619) 2020-04-22 16:35:03 -05:00
Bob Kuhn 88bdd26c99 Clean up SKR Pro v1.1 pins (#17653) 2020-04-22 15:04:21 -05:00
Flo082002 fd453d23b9 Update German language (#17591) 2020-04-22 15:01:19 -05:00
Bob Kuhn 33bb7859d4 Composite USB for STM32 SDIO (experimental) (#17222) 2020-04-22 15:00:10 -05:00
Scott Lahteine 8a9c14ea1d Remove obsolete comment 2020-04-22 14:55:33 -05:00
Scott Lahteine 00d35ccc14 Add EXPERIMENTAL_SCURVE to AGC test 2020-04-22 14:55:33 -05:00
Scott Lahteine 5a5be7e287 Reorder setup, with serial early 2020-04-21 21:38:21 -05:00
Scott Lahteine 0fec478562 Wrangle HAL EEPROM types 2020-04-21 21:33:13 -05:00
Scott Lahteine d666ef00e0 Prevent 'I2C_EEPROM' on LPC176x 2020-04-21 21:33:13 -05:00
thinkyhead 1563d128d8 [cron] Bump distribution date (2020-04-22) 2020-04-22 00:03:05 +00:00
Scott Lahteine d34c22ac22 Skip redundant file/dir tests 2020-04-21 18:39:43 -05:00
Scott Lahteine c3946dd017 Add a warning on LA + S-Curve 2020-04-21 18:39:43 -05:00
Scott Lahteine 5de87361e9 Call first_load from manage_media 2020-04-21 18:39:43 -05:00
Scott Lahteine d96c769fd6 Move Power Loss Recovery check 2020-04-21 15:27:53 -05:00
Scott Lahteine 2ae00db43e Move G26 heading up 2020-04-21 15:27:53 -05:00
Scott Lahteine a5b2e3e63c Fix Mixer::reset_vtools bug
Fixes #17635
2020-04-21 13:07:56 -05:00
thinkyhead eb91dbce42 [cron] Bump distribution date (2020-04-21) 2020-04-21 00:03:16 +00:00
Ondřej Nový abd42e5dea Fix M125 unretract length (#17623) 2020-04-20 11:32:21 -05:00
Scott Lahteine 000ec9fc13 Ensure language.h include order
See #17604
2020-04-20 09:43:48 -05:00
Mathias Rasmussen 875cd4e081 Remove 'Media Released' message (#17272)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-04-20 09:17:55 -05:00
Fabio Santos ccfd5c1010 Trinamic steppers Homing Phase (#17299) 2020-04-20 08:08:00 -05:00
Jason Smith cba58b1027 Fix "possible buffer overrun" warning (#17513) 2020-04-20 07:16:38 -05:00
Roman Moravčík 90a432279b Update Slovak language (#17588) 2020-04-20 07:13:33 -05:00
Zs.Antal 9338fb87e9 Update Hungarian language (#17593) 2020-04-20 07:13:04 -05:00
Thomas Hollstegge b55dd2cb82 Fix low contrast on Minipanel display (#17601) 2020-04-20 07:07:23 -05:00
Ondřej Nový f779d1be3f HD44780 mapping for Czech accents (#17603) 2020-04-20 07:05:58 -05:00
RudolphRiedel 27f0f10590 Ensure brightness > 0 in ExtUI (#17611) 2020-04-20 07:03:00 -05:00
Ondřej Nový 1af6a6d4f9 Update Language fonts (#17620) 2020-04-20 06:55:55 -05:00
Ondřej Nový a0d0ce464e Sanity-check nozzle park point (#17621) 2020-04-20 06:54:24 -05:00
Scott Lahteine 15f6f53638 Add HAS_HOTEND, etc. 2020-04-20 00:12:22 -05:00
Scott Lahteine 5d0deba938 Longer default power-up delay
See MarlinFirmware/Configurations#78
2020-04-20 00:12:22 -05:00
Scott Lahteine 78fe411c7d Include swt_init in log 2020-04-20 00:12:21 -05:00
thinkyhead 776d7761d9 [cron] Bump distribution date (2020-04-20) 2020-04-20 00:03:17 +00:00
Scott Lahteine 1bbd77646e Clean up language files 2020-04-19 02:37:44 -05:00
Scott Lahteine 87875e0de8 Fix mixing with "unload all" compile 2020-04-19 02:10:02 -05:00
Scott Lahteine ad7a6e10a7 Fix no-bed compile error 2020-04-19 00:57:29 -05:00
Scott Lahteine b420fdaa87 Digipots followup 2020-04-18 23:36:34 -05:00
grauerfuchs 4a5a3d27ed Option to use raw digipot values (#17536) 2020-04-18 22:56:23 -05:00
thinkyhead 8e8ba46cb6 [cron] Bump distribution date (2020-04-19) 2020-04-19 00:03:26 +00:00
Scott Lahteine 8ad056013c Define "resolution" in bits 2020-04-17 22:33:15 -05:00
thinkyhead a12b021733 [cron] Bump distribution date (2020-04-18) 2020-04-18 00:03:23 +00:00
studiodyne 50fa87f1cf Proportional Autotemp followup (#17585)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-04-17 11:19:31 -05:00
android444 d78ce58b6f Update a (c) date (#17584)
Little update
2020-04-17 10:46:04 -05:00
Scott Lahteine 3a42b6c5c6 Patch M425 for CAN_CALIBRATE
Fixes #17430
2020-04-17 10:24:27 -05:00
Scott Lahteine f94ab84dac Malyan M300 support (#17421) 2020-04-17 09:10:41 -05:00
djessup 360e07c90f Add USE_PROBE_FOR_Z_HOMING option (#17359) 2020-04-17 09:02:21 -05:00
George Fu a794538c54 Homing backoff enhancements
- Define homing bump as an array
- Add pre and post homing backoff options
- Consolidate homing config options
2020-04-17 08:52:41 -05:00
George Fu cbf349b5eb Fix some DGUS bugs
- No action on first click of the move button
2020-04-17 08:52:41 -05:00
Gustavo Alvarez e7f3b625b0 Use 'melzi' envs for MELZI_CREALITY (#17578) 2020-04-17 07:19:47 -05:00
Scott Lahteine 880f73d471 Minor cleanup 2020-04-17 04:35:00 -05:00
Scott Lahteine 3fcb36d8dc M200/M300 LCD comment 2020-04-17 03:44:50 -05:00
XDA-Bam bbe2cb75ad More accurate Junction Deviation fast-acos (#17575) 2020-04-16 21:51:05 -05:00
thinkyhead 927e29b93e [cron] Bump distribution date (2020-04-17) 2020-04-17 00:05:52 +00:00
Tanguy Pruvot 3210155ab7 Update French language (#17577) 2020-04-16 19:04:43 -05:00
studiodyne 9110f756ad AUTOTEMP default proportions (#17560) 2020-04-16 19:03:53 -05:00
Giuliano Zaro fd4c025e98 More features in SAMD51 test (#17572) 2020-04-16 18:01:17 -05:00
Davide Toldo 720795ac7d More verbose probing error (#17482) 2020-04-16 16:22:37 -05:00
Scott Lahteine 847ea583f6 STM32F103VE has 512K Flash EEPROM (#17565) 2020-04-16 15:34:44 -05:00
InsanityAutomation d353d67a34 SD detect override for older Creality3D RAMPS (#17469) 2020-04-16 04:41:05 -05:00
Giuliano Zaro f5577b320b Update Italian language (#17467) 2020-04-16 04:39:01 -05:00
Giuliano Zaro c16818b261 Fix SAMD51 timer usage (#17471) 2020-04-16 04:38:17 -05:00
Zs.Antal 78a5079558 Add Hungarian language (#17491)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-04-16 04:11:42 -05:00
Gustavo Alvarez aca2e149ab Silence E3 DIP build warning (#17492) 2020-04-16 03:58:29 -05:00
Bob Kuhn f5d809f366 SKR Pro 1.1 WiFi and LCD SD card support (#17531) 2020-04-16 03:55:33 -05:00
dandantsui d194688020 Define EEPROM, SD type for MKS Robin nano (#17498) 2020-04-16 03:53:58 -05:00
Jason Smith 7d0ea3e2c4 Fix framework-arduinoststm32 minimum version (#17512) 2020-04-16 03:43:32 -05:00
android444 0f0b1aff55 Update GLCD Silvergate display timing (#17518) 2020-04-16 03:41:27 -05:00
android444 0ce532547a Update Polish language (#17525) 2020-04-16 03:40:17 -05:00
Scott Lahteine d8b8d88276 Move setup logging to the top 2020-04-16 03:37:00 -05:00
Scott Lahteine 1c43870cec Add chamber to sensitive pins 2020-04-16 03:31:44 -05:00
Scott Lahteine 03020dd31e Use the common pattern for auto fan pins
Now that pins.h is guaranteed included after configs.
2020-04-16 03:31:44 -05:00
Scott Lahteine 3a9f8a00bf Fix SD connection for some boards 2020-04-16 03:31:44 -05:00
Scott Lahteine 880f63b008 It looks like HAS_ONBOARD_SD is obsolete 2020-04-16 03:31:44 -05:00
mks-viva bc856fd8ec MKS Robin E3 / E3D support (#17569)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-04-16 01:19:24 -05:00
Desuuuu 2824e67d95 Add ExtUI::onStatusChanged_P (#17543) 2020-04-16 00:33:31 -05:00
thisiskeithb 089a0af119 More info on E3D, Keenovo, and Wanhao thermistors (#17561) 2020-04-16 00:04:53 -05:00
George Fu e990a98404 FYSETC TFT81050 LCD support (#17568) 2020-04-15 23:34:48 -05:00
Marcio T 791873b10d Fix ExtUI compile errors (#17544)
Fixes #16628
2020-04-15 23:17:01 -05:00
randellhodges 808f632997 Update print job timer with Chamber temp (#17552) 2020-04-15 23:12:09 -05:00
thinkyhead 4edaffebfb [cron] Bump distribution date (2020-04-16) 2020-04-16 00:03:23 +00:00
Scott Lahteine cdbc7cc52c Define En DIAG pins for auto-assigns 2020-04-14 19:09:06 -05:00
Alexander Amelkin cae2b7bf4e SKR Pro V1.1 StallGuard pins (#17550)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-04-14 19:05:08 -05:00
thinkyhead 3cdc9b8156 [cron] Bump distribution date (2020-04-15) 2020-04-15 00:03:14 +00:00
Axel c834b313a5 Fix Mightyboard build (#17537) 2020-04-13 21:49:55 -05:00
Brais Fortes 9038278735 Galician language corrections (#17454) 2020-04-13 21:17:01 -05:00
thinkyhead f59c0ab842 [cron] Bump distribution date (2020-04-14) 2020-04-14 00:08:34 +00:00
InsanityAutomation 6ce0c94d12 Fix bad comparison (#17470)
* Suggested message change

* Fix Bad Comparison

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-04-13 17:23:54 -05:00
Scott Lahteine e9c8da35c5 Subcall overflow error message 2020-04-13 14:54:51 -05:00
Scott Lahteine 421825259e Shorter M32 error message 2020-04-13 14:54:50 -05:00
Scott Lahteine e6ccec17a6 Expose SD_PROCEDURE_DEPTH in config 2020-04-13 14:54:50 -05:00
Scott Lahteine 22da1b2b31 Rename some "kill" messages 2020-04-13 14:54:50 -05:00
thinkyhead a7a76f123d [cron] Bump distribution date (2020-04-13) 2020-04-13 00:03:48 +00:00
Scott Lahteine e3321920f3 Update Marlin website links to https 2020-04-12 17:21:14 -05:00
Scott Lahteine f090a927f4 Reapply BLTouch deploy/stow patch
- Fixes #14328
- Originally #14352
- Reverted in 2580104
2020-04-12 15:16:43 -05:00
Scott Lahteine ac7b484703 Safe homing: Raise Z on G28 Z (#17501)
Co-Authored-By: RFBomb <robbery525@gmail.com>
2020-04-12 14:58:58 -05:00
Scott Lahteine a2e9a02429 Fix PLR when card isn't mounted yet
Fixes a regression from 9bff67bc74
2020-04-12 14:44:45 -05:00
Gustavo Alvarez 7894937737 Update Spanish language (#17505) 2020-04-12 14:12:08 -05:00
Scott Lahteine 4cdd51cd3a Apply TERN to status screen 2020-04-12 13:28:07 -05:00
Gustavo Alvarez 37752bd8bb Update Spanish language (#17465) 2020-04-12 01:35:30 -05:00
dandantsui 333092c488 Fix MKS Robin infinite boot (#17497) 2020-04-12 01:23:08 -05:00
Scott Lahteine 2493cf0364 Fix M1001 with HAS_LEDS_OFF_FLAG 2020-04-12 01:22:10 -05:00
Scott Lahteine 7aed32df00 Fix SD_FINISHED_RELEASECOMMAND bug
Fixes #17401 bug that was introduced in 8f26c3a
2020-04-11 22:08:37 -05:00
Ryan a97ae51cc7 Archim: PIO upload on Windows, Arduino IDE LCD (#17405)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-04-11 20:39:02 -05:00
Scott Lahteine e4903396d4 Fix up pausing / parking display (#17460) 2020-04-11 20:36:17 -05:00
thinkyhead dfb5968bfe [cron] Bump distribution date (2020-04-12) 2020-04-12 00:03:21 +00:00
Roxy-3D 07c9dc4142 Make pid_debug_flag match declaration in M303.cpp
Get it right this time!
2020-04-11 11:03:04 -05:00
Roxy-3D a65198882f Make declaration of PID_debug_flag match M303.cpp 2020-04-11 10:25:19 -05:00
thinkyhead 8647d6b8d8 [cron] Bump distribution date (2020-04-11) 2020-04-11 00:03:20 +00:00
Scott Lahteine 48919c54fb Add SRAM command injection (#17459) 2020-04-09 20:05:58 -05:00
thinkyhead 7af0da7f93 [cron] Bump distribution date (2020-04-10) 2020-04-10 00:03:54 +00:00
Scott Lahteine c2bd9dd4f5 Show "Pausing…" during pause 2020-04-09 18:09:54 -05:00
Marcio T dbdfe61644 Fix and improve FTDI Eve Touch UI (#17426) 2020-04-09 16:00:25 -05:00
Gustavo Alvarez 397fa59eee Sort out USBComposite for STM32F1 confusion (#17400) 2020-04-09 15:58:45 -05:00
Gustavo Alvarez 5158106c12 Update Spanish translation (#17406) 2020-04-09 13:35:32 -05:00
Scott Lahteine 3645e59893 Minor style tweaks 2020-04-09 12:31:33 -05:00
Scott Lahteine 71a4ab3331 Add "Settings Stored" message 2020-04-09 12:31:33 -05:00
thinkyhead 556406a127 [cron] Bump distribution date (2020-04-09) 2020-04-09 00:02:53 +00:00
studiodyne a1523d6419 Fix: const needed for operator* (#17443) 2020-04-08 15:00:31 -05:00
Scott Lahteine 3ea23712eb Fix stepper DAC compile
Fixes #17438
2020-04-08 14:17:29 -05:00
Scott Lahteine d6badb77a4 Clean up whitespace 2020-04-08 14:04:51 -05:00
grauerfuchs 293a0997c9 Fix / optimize PCA9533 LED (Mightyboard) (#17381) 2020-04-08 12:53:28 -05:00
thinkyhead 079644d012 [cron] Bump distribution date (2020-04-08) 2020-04-08 00:02:57 +00:00
thinkyhead e1fc6f7e25 [cron] Bump distribution date (2020-04-07) 2020-04-07 00:03:10 +00:00
thisiskeithb 966e0e4a77 BTT002 release V1 uses STM32F407VGT6 (#17387) 2020-04-06 15:51:09 -05:00
Tor-p d6f39a69af Fix G76 probe height / position (#17392) 2020-04-06 15:32:06 -05:00
thinkyhead 1d81bb7a2b [cron] Bump distribution date (2020-04-06) 2020-04-06 00:02:56 +00:00
Brais Fortes c47feb1cfe Update Galician language (#17418) 2020-04-05 18:36:27 -05:00
Scott Lahteine fad9235cd8 Move MSG_x_LINE to multi_language.h 2020-04-05 18:25:59 -05:00
Scott Lahteine 07b3f38269 First SD status change is silent 2020-04-04 23:51:20 -05:00
Giuliano Zaro 86a3efda6f Update Italian language (#17407) 2020-04-04 20:51:05 -05:00
Scott Lahteine 8dd9afe4f9 Better push in 'mfpub' 2020-04-04 20:33:48 -05:00
thinkyhead da0f63cd1c [cron] Bump distribution date (2020-04-05) 2020-04-05 00:02:50 +00:00
Scott Lahteine 0e06aaa2bc Add millis helper macros 2020-04-04 02:48:30 -05:00
Scott Lahteine 723d4d6f61 Fix Archim 2 build for PIO 2020-04-04 02:18:33 -05:00
Scott Lahteine 65f6a373b0 Refactor SD detect handler (#17380)
Co-Authored-By: Eric Ptak <trouch@users.noreply.github.com>
2020-04-04 00:08:25 -05:00
InsanityAutomation bc01d8d023 Toolchange touchup (#17395)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-04-03 19:17:05 -05:00
thinkyhead ed0799d653 [cron] Bump distribution date (2020-04-04) 2020-04-04 00:03:24 +00:00
Ben df8b7dfc40 Various Laser / Spindle improvements (#15335) 2020-04-02 19:31:08 -05:00
thinkyhead e7e9304819 [cron] Bump distribution date (2020-04-03) 2020-04-03 00:03:31 +00:00
Scott Lahteine 2b9d2dce16 Apply GRID_LOOP 2020-04-02 14:33:04 -05:00
Marcio T be0e313c07 Touch UI additions, bug fixes (#17379) 2020-04-02 14:24:55 -05:00
Scott Lahteine 11ce281694 Followup to #17351 2020-04-02 13:32:59 -05:00
Scott Lahteine 9f86dde195 Clean up UI declarations, apply TERN_ 2020-04-02 01:31:03 -05:00
Scott Lahteine f263782f1b Fix ESP32 eeprom flag 2020-04-01 23:51:33 -05:00
Scott Lahteine 62e8c2dd87 Fix up 'system' includes 2020-04-01 23:51:09 -05:00
Scott Lahteine 514afddeb4 Minor code cleanup 2020-04-01 19:48:58 -05:00
Scott Lahteine 7f5dc7b919 More 8 extruders (TMC) support 2020-04-01 19:46:21 -05:00
thinkyhead c47bdae9f2 [cron] Bump distribution date (2020-04-02) 2020-04-02 00:03:23 +00:00
Simon Jouet 192c7c27b9 Fix extra TMC serial begin calls (#17351) 2020-04-01 16:20:38 -05:00
Marcelo Castagna 178ca2bcdf Fix M710 report formatting (#17356) 2020-03-31 19:13:37 -05:00
thinkyhead 5236889377 [cron] Bump distribution date (2020-04-01) 2020-04-01 00:03:36 +00:00
Scott Lahteine e7f020f3f2 Shorten some internal pin names 2020-03-31 14:43:01 -05:00
Marcio T d83ad6f321 Improve / fix FTDI EVE Touch UI (#17338)
- Fix timeout and debugging string
- Fix check for whether `LCD_TIMEOUT_TO_STATUS` is valid
- Fix incorrect debugging message
- Make capitalization of callbacks consistent.
- Allow Touch UI to use hardware SPI on Einsy boards
- Move print stats to About Printer page.
- More generic about screen with GPL license.
- Add missing handler for power loss event
- Less code duplication on status screen and main/advanced menu; more legible
- Reorganize advanced and main menu to add more features
- Hide home Z button when using Z_SAFE_HOMING
- Fix compilation errors when certain features enabled
- Fix missing labels in UI
- Improve color scheme
- Add new preheat menus
- Fix incorrect rendering of Marlin logo on boot
- Add Level X Axis and Auto calibrate buttons
2020-03-31 14:22:04 -05:00
Tanguy Pruvot c759729478 STM32F1: Restore M43 build support (#17336) 2020-03-31 14:13:20 -05:00
Eric Ptak ac0a7f2281 Fix Fysetc stm32flash usage (#17331) 2020-03-31 13:59:08 -05:00
Scott Lahteine e0e87ca19a Fix last arc segment
Co-Authored-By: ellensp <ellensp@hotmail.com>
2020-03-31 12:50:48 -05:00
Scott Lahteine 528907cb16 Additional TERN macros 2020-03-31 12:50:48 -05:00
Scott Lahteine 96ab16a9dd Pulldown for all FastIO headers
Co-Authored-By: borsegbr <borsegbr@users.noreply.github.com>
2020-03-31 12:37:22 -05:00
thinkyhead 0ea26d538b [cron] Bump distribution date (2020-03-31) 2020-03-31 00:03:22 +00:00
thinkyhead 747a4bb623 [cron] Bump distribution date (2020-03-30) 2020-03-30 00:03:19 +00:00
Scott Lahteine 9b886c2ad4 Load balance some tests 2020-03-29 18:14:15 -05:00
Scott Lahteine 223aa5cc4e No unscaled_e_move for CNC 2020-03-29 17:20:26 -05:00
Scott Lahteine d029a09810 Minor HAL cleanup 2020-03-29 17:14:23 -05:00
Scott Lahteine 765a9f3471 do_pause_e_move => unscaled_e_move 2020-03-29 16:26:55 -05:00
Scott Lahteine fc11e72174 Fix extra unskew call
Fixes #17264
2020-03-29 16:11:03 -05:00
thisiskeithb add34aa286 Fix STM32F1 USB Composite Dependency
Co-authored-by: Lord-Quake <Lord-Quake@users.noreply.github.com>
2020-03-29 13:55:14 -05:00
oscarsan1 b35dc5f0b4 Fix Trigorilla 1.4 missing spaces 2020-03-29 13:46:03 -05:00
thinkyhead fc74c6a7b6 [cron] Bump distribution date (2020-03-29) 2020-03-29 00:03:23 +00:00
Roxy-3D 2f7e5cf7dd Fix typo... 2020-03-28 09:53:04 -05:00
Scott Lahteine 747b964295 Clean up user-wait, SD completion (#17315) 2020-03-28 03:18:53 -05:00
Scott Lahteine a84990961a Simplify TWIBus debug 2020-03-28 01:20:15 -05:00
Scott Lahteine 53fe572bbd Limited backlash editing with Core kinematics (#17281) 2020-03-27 22:00:27 -05:00
InsanityAutomation de648bfdc1 Add Funmat HT V4.0 board support (#17305)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-03-27 21:08:47 -05:00
thinkyhead e71b25a555 [cron] Bump distribution date (2020-03-28) 2020-03-28 00:03:16 +00:00
Mathias Rasmussen 8752fbd92c Store case light brightness in EEPROM (#17307) 2020-03-27 17:38:28 -05:00
InsanityAutomation bed41af868 Fix Stepper PWM menu (#17298) 2020-03-27 17:30:17 -05:00
Giuliano Zaro 129b270628 QSPI EEPROM for SAMD51 (#17292) 2020-03-27 17:29:17 -05:00
InsanityAutomation 3655e240f5 Fix SD finished ExtUI / host action (#17285) 2020-03-27 16:06:39 -05:00
thinkyhead 98ef161bfe [cron] Bump distribution date (2020-03-27) 2020-03-27 00:03:27 +00:00
Scott Lahteine 54a12ee1d6 Tweak eeprom storage type 2020-03-25 21:07:08 -05:00
Scott Lahteine d6a4c3079d Tweak ui.finish_status 2020-03-25 21:07:08 -05:00
Giuliano Zaro 8122468a36 Update Italian language (#17293) 2020-03-25 21:05:36 -05:00
Acenotass 5c150c0c94 Update Russian language (#17290) 2020-03-25 21:04:57 -05:00
Scott Lahteine 5ec1a8bb2b Fix M0 unused var warning 2020-03-25 20:27:21 -05:00
Scott Lahteine dd6781217a motion.cpp: HAS_DIST_MM_ARG 2020-03-25 19:21:48 -05:00
Scott Lahteine 0175189c34 Allow G2_PWM to be slimmer 2020-03-25 19:18:42 -05:00
Scott Lahteine adb6334ba0 Use "dist" instead of "delta" for clarity 2020-03-25 19:18:42 -05:00
thinkyhead 4dea020050 [cron] Bump distribution date (2020-03-26) 2020-03-26 00:03:54 +00:00
Scott Lahteine c86ee574ec Drop old comment 2020-03-25 15:11:12 -05:00
Scott Lahteine f2ed18d150 M303 followup
- Put 'D' before other params for clean exit.
- Use serial on/off for debug status.
2020-03-25 15:08:52 -05:00
Roxy-3D 1986e1cdf8 Allow PID_DEBUG to be turned on and off (#17284)
M303 D will now toggle activation of PID_DEBUG output.   This allows the debug capability to be built into the firmware, but turned on and off as needed.
2020-03-24 19:38:09 -05:00
thinkyhead 0aeee64cca [cron] Bump distribution date (2020-03-25) 2020-03-25 00:03:18 +00:00
Roxy-3D 075a86b076 Update LCD timing on Formbot T-Rex 2+ machines
The code is slightly more optimized than it used to be and this has caused the setup and hold times on the Formbot T-Rex 2+ machines to be insufficient.   This change gives sufficient margin and the LCD Display is clean again.
2020-03-24 17:15:03 -05:00
Roxy-3D 5d515c3a2f Adjust for timing shift on Max7219 displays on AVR's
Something has shifted.   The previous timing delays on the Max7219 debug displays is too tight without this correction.
I suspect something has been optimized and roughly 50ns of needed setup and hold time has disappeared.
This corrects the issue and the display results are clean again.
2020-03-24 17:08:31 -05:00
Scott Lahteine 68face848a Sanity check CONTROLLERFAN_SECS 2020-03-24 16:41:21 -05:00
Scott Lahteine 7455bb09b3 Add SoftwareSerialM for MKS Robin (#17207) 2020-03-24 16:14:30 -05:00
ellensp 41e944da00 Fix Emergency Parser on DUE (#17276)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-03-24 15:14:52 -05:00
MarkMan0 4113481c4e Fix limits on acceleration editing (#17280) 2020-03-24 15:13:37 -05:00
mkpfalz 3260228009 Sanity-check CORE backlash axes (#17279)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-03-24 14:08:55 -05:00
rado79 bef9b9b07e Delay after homing_backoff for CoreXY sensorless homing (#17273) 2020-03-23 20:32:36 -05:00
thinkyhead edd6f6c5f2 [cron] Bump distribution date (2020-03-24) 2020-03-24 00:03:08 +00:00
Scott Lahteine c87d73045b Fix extra M114 output line
Fixes #17255
2020-03-23 18:31:26 -05:00
George Fu e3ebbe25e0 DGUS updates (#17260) 2020-03-23 18:00:22 -05:00
ellensp cd4060a99c Add USB serial support to SERIAL_PORT_2 on DUE (#17245)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-03-23 17:55:21 -05:00
Scott Lahteine adb7a88428 Fix an unused var warning 2020-03-23 17:35:43 -05:00
Scott Lahteine 580d314fbe Skip impossible PWM sanity-checks 2020-03-23 17:35:43 -05:00
Scott Lahteine fe154fa5de Fix CONTROLLER_FAN options compile 2020-03-23 17:35:43 -05:00
RasmusAaen 717c216851 Fix Copymaster Y_MAX pin (#17267) 2020-03-23 17:34:38 -05:00
thinkyhead 27c281eec3 [cron] Bump distribution date (2020-03-23) 2020-03-23 00:03:08 +00:00
Scott Lahteine e7a9f17371 Tweak serial port descriptions 2020-03-21 23:38:44 -05:00
Scott Lahteine 2460a3dfbb Fix custom version file include 2020-03-21 23:34:19 -05:00
Scott Lahteine 2c325c2a7d Format some pins files 2020-03-21 21:18:46 -05:00
Scott Lahteine 9340a33980 Add a pins formatting script 2020-03-21 21:18:46 -05:00
Scott Lahteine e62b52da99 Use pin/port names for CHITU pins 2020-03-21 21:18:46 -05:00
Scott Lahteine 7988e31f5e whitespace 2020-03-21 21:16:15 -05:00
Scott Lahteine 1674df00b1 Stay at v0.91 of USBComposite for STM32F1 2020-03-21 20:56:14 -05:00
thinkyhead 29874b21b6 [cron] Bump distribution date (2020-03-22) 2020-03-22 00:03:15 +00:00
Scott Lahteine 04cea864bc Split up STM32 pins files (#17212) 2020-03-20 23:45:00 -05:00
thinkyhead 3151856e98 [cron] Bump distribution date (2020-03-21) 2020-03-21 00:03:28 +00:00
thinkyhead 1738c13bc2 [cron] Bump distribution date (2020-03-20) 2020-03-20 00:03:07 +00:00
George Fu 71db5c1605 Fix FYSETC mini 12864 init / glitches (#17209) 2020-03-19 14:11:55 -05:00
thinkyhead 14daf1ee5e [cron] Bump distribution date (2020-03-19) 2020-03-19 00:03:40 +00:00
InsanityAutomation 84dec5da10 Add M42 M, improve M43 (#17173) 2020-03-18 16:12:51 -05:00
Scott Lahteine de45ac41ad Implement CONTROLLER_FAN_USE_Z_ONLY
Followup to #17149
2020-03-18 14:36:40 -05:00
Erkan Colak 83eec683c9 New Controller Fan options and M710 gcode (#17149) 2020-03-18 13:41:12 -05:00
Scott Lahteine abea6d5787 Tweak some lambdas 2020-03-18 10:33:15 -05:00
thinkyhead 252178fe62 [cron] Bump distribution date (2020-03-18) 2020-03-18 00:04:28 +00:00
RasmusAaen c768605bde Add Copymaster3D board (#17188) 2020-03-17 15:25:10 -05:00
Joe Prints 1f5824247f More decimal places for babystep / Z probe offset (#17195) 2020-03-17 15:12:52 -05:00
Scott Lahteine e8205af6fb Apply HAS_TMC_UART to pins files 2020-03-17 15:06:01 -05:00
Karl Andersson e5dcab8fd2 ARMED support for TMC UART, probe temp (#17186) 2020-03-17 15:05:12 -05:00
ellensp 40922c7da7 Fix MKS SBASE 1.6 E1 heater pin (#17191) 2020-03-17 14:51:57 -05:00
thinkyhead c1672220fd [cron] Bump distribution date (2020-03-17) 2020-03-17 00:04:33 +00:00
Scott Lahteine f6e80d576d Fix Z_MIN_PROBE_PIN on SKR 1.4 (#17187) 2020-03-16 17:49:33 -05:00
Scott Lahteine b14c933171 LPC1768 EEPROM fallback to flash, add overrides (#17184) 2020-03-16 15:59:05 -05:00
Pascal de Bruijn 2fc0df1b39 Shorter LCD remaining time to prevent overlap (#17181) 2020-03-16 14:11:55 -05:00
thinkyhead a662079cbc [cron] Bump distribution date (2020-03-16) 2020-03-16 00:04:45 +00:00
InsanityAutomation 775a4294fc Configurable SLOWDOWN divisor (#17171) 2020-03-15 18:29:18 -05:00
Giuliano Zaro 3b987dfcec Fix G34 Z lower, extra "BLTOUCH" debug line (#17175) 2020-03-15 18:23:24 -05:00
Scott Lahteine c39873759f Fix Z after ABL Bilinear G29 with fade
Co-Authored-By: Alan T <interstellarmisfit@users.noreply.github.com>
2020-03-15 18:18:38 -05:00
Karl Andersson 85187290a7 Fix incorrect type on ubl_storage_slot (#17170) 2020-03-15 18:03:10 -05:00
Scott Lahteine 695e014075 Do later mounting of LCD-based SD 2020-03-14 19:24:35 -05:00
Scott Lahteine 090a90a036 Add EEPROM_BOOT_SILENT option 2020-03-14 19:24:35 -05:00
Scott Lahteine 095a1123c1 Add a global machine state 2020-03-14 19:24:35 -05:00
Scott Lahteine 41ffe9851d Fix LCD progress bar
Fixes #17162
2020-03-14 19:24:33 -05:00
thinkyhead 5c1970a229 [cron] Bump distribution date (2020-03-15) 2020-03-15 00:04:39 +00:00
Roxy-3D 9f85165101 Allow Tool Offset adjustments to have another digit of precision
Some of the items in the Tool Offset Adjustment menu (in particular, the Z Offset!!!) were only adjustable with .1mm accuracy.
This is not enough.    So the edit menu is switched to float52 to fix the issue.
2020-03-14 18:12:29 -05:00
Scott Lahteine 8b2d55e345 Config version 020005 2020-03-13 23:22:46 -05:00
InsanityAutomation cee07f3f6b Quad Z leveling, G34 (R)ecalculate (#17122) 2020-03-13 23:22:04 -05:00
Scott Lahteine 118bd2f8b2 Apply loop shorthand macros (#17159) 2020-03-13 23:18:16 -05:00
Scott Lahteine a96be32fae Fix G26 corrupted position 2020-03-13 19:27:02 -05:00
thinkyhead 983a8cee45 [cron] Bump distribution date (2020-03-14) 2020-03-14 00:04:00 +00:00
Scott Lahteine 6bead0c1b0 Shorter paths to HAL, ExtUI (#17156) 2020-03-13 16:29:29 -05:00
Scott Lahteine ad980a72f7 M0 Q preserve status 2020-03-13 14:42:42 -05:00
Scott Lahteine 7ec45f4382 Fix end of short (auto0.g) prints 2020-03-13 13:59:17 -05:00
Scott Lahteine 81b0548518 Fix Emergency Parser stuck state 2020-03-13 13:59:17 -05:00
Erkan Colak aa32c47fb5 Shorten German BLTouch menu item names (#17151) 2020-03-13 12:34:03 -05:00
nick-diel 7070ea0b49 Add OnPidTuning event to Malyan LCD (#17143)
All ExtUI LCDs need to keep up with ExtUI API changes.
2020-03-12 19:48:33 -05:00
Scott Lahteine 59cb1466b7 Fix DUGS / DGUS typo 2020-03-12 19:30:18 -05:00
Jason Smith 9c759e5f74 Fix BAUD_RATE_GCODE, etc. (#17135) 2020-03-12 19:26:09 -05:00
Jason Smith 4e96a014a8 Use arduinoststm32 3.x for FYSETC S6 (#17131) 2020-03-12 19:20:22 -05:00
thinkyhead 8c11ecaf73 [cron] Bump distribution date (2020-03-13) 2020-03-13 00:04:16 +00:00
thinkyhead 1f55986ed2 [cron] Bump distribution date (2020-03-12) 2020-03-12 00:04:11 +00:00
Scott Lahteine 318a16637b Fix M810 macro multiple use
Fixes #17125
2020-03-11 17:15:39 -05:00
BigTreeTech 8bad6e11e2 Fix STM32 _WRITE macro parameter (#17121) 2020-03-11 16:42:28 -05:00
Scott Lahteine 112245ee48 More explicit EEPROM types (#17127) 2020-03-11 16:41:18 -05:00
Scott Lahteine 924fa6045c Non-const REMEMBER needed for RESTORE 2020-03-11 15:25:16 -05:00
Daniel Kreuzhofer (@danieldotnet) f29d6f802f Revert Anet 1.x envs change (#17120) 2020-03-11 15:08:47 -05:00
George Fu 201c991cfa Fix and update DGUS displays (#17072) 2020-03-11 03:40:30 -05:00
Jamie 23c5701178 Apply soft limits to joystick jogging (#17114) 2020-03-10 22:59:49 -05:00
Scott Lahteine eb6c992bfb Announce SD file open
Requested in #17110
2020-03-10 22:54:19 -05:00
Gurmeet Athwal bd44f041e8 M220 print FR percentage (#17101) 2020-03-10 20:13:59 -05:00
Daniel Kreuzhofer (@danieldotnet) d78fbce827 Fix pio environments for Anet 1.x (#17109) 2020-03-10 20:04:44 -05:00
jufimu12 627aa8db2d Fix G34, add HOME_AFTER_G34 option (#17108)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-03-10 20:00:26 -05:00
Scott Lahteine e7004550c4 Tweaks to finishSDPrinting (#17082) 2020-03-10 19:42:57 -05:00
thinkyhead a31b7339cd [cron] Bump distribution date (2020-03-11) 2020-03-11 00:04:19 +00:00
Scott Lahteine 4e3a793f1e Fix broken enqueue_P 2020-03-10 18:28:49 -05:00
Scott Lahteine 9bff67bc74 Always look for PLR file, but more quickly 2020-03-10 17:07:14 -05:00
Vert 8bbcbc528c Fix Z4 stepper indirection macros (#17107) 2020-03-10 15:57:10 -05:00
Scott Lahteine 8f66dbfcd5 SD_DETECT_INVERTED => SD_DETECT_STATE (#17112) 2020-03-10 15:43:06 -05:00
thinkyhead 8799f8bfdb [cron] Bump distribution date (2020-03-10) 2020-03-10 00:04:08 +00:00
Scott Lahteine 972d1bf5b4 Ensure welcome message 2020-03-09 18:19:37 -05:00
Scott Lahteine b5530775c9 Add debug logging for setup() 2020-03-09 17:46:49 -05:00
Scott Lahteine 13118dbd8d Additional numtostr functions 2020-03-09 17:46:49 -05:00
Scott Lahteine 0f39386d9b Make BOOTSCREEN_TIMEOUT generally available 2020-03-09 17:46:49 -05:00
Scott Lahteine 7674befa47 DOGM SPI delay is less common 2020-03-09 17:46:49 -05:00
Scott Lahteine b579f5dc99 Move 'last_pause_state' closer to usage 2020-03-09 17:46:49 -05:00
thinkyhead 7f490c08da [cron] Bump distribution date (2020-03-09) 2020-03-09 00:04:03 +00:00
Scott Lahteine 982197b162 Fixes for Z4 axis, CS pins (#17097) 2020-03-08 16:31:37 -05:00
MangaValk 57f488738b [ToolChanger] Lock the current tool at power-up (#17093) 2020-03-08 16:13:41 -05:00
Scott Lahteine b21edce943 More general SD_DETECT_INVERTED override 2020-03-08 14:47:16 -05:00
Scott Lahteine 2a71e4f336 Revert that wack backoff 2020-03-07 23:10:56 -06:00
Scott Lahteine 64d092935b More useful ENABLED / DISABLED macros (#17054) 2020-03-07 22:20:41 -06:00
thinkyhead 5eb6fb1c2f [cron] Bump distribution date (2020-03-08) 2020-03-08 00:04:21 +00:00
Scott Lahteine 20f93404a7 Add / correct comments 2020-03-07 02:16:17 -06:00
Scott Lahteine 3db784f3c7 More pins debugging cleanup 2020-03-07 02:15:05 -06:00
Scott Lahteine 7b9eb233cb Emergency Parser dumb terminal compatibility 2020-03-07 02:15:05 -06:00
Scott Lahteine c99773bae0 Max7219 suspend/resume 2020-03-07 01:18:26 -06:00
Scott Lahteine 8ff25a9566 Max7219 init last 2020-03-07 00:16:44 -06:00
Scott Lahteine e9f451bffe Pins debug followup 2020-03-06 21:59:20 -06:00
thinkyhead 3b14158979 [cron] Bump distribution date (2020-03-07) 2020-03-07 00:04:33 +00:00
Scott Lahteine 913de024a9 Change PID dummy value to NAN
Fixes #17078
2020-03-06 13:55:27 -06:00
Scott Lahteine 1da49d0ac5 Non-blocking Max7219 test pattern 2020-03-06 13:19:38 -06:00
Scott Lahteine ca4423ed2a Clean up pins debugging 2020-03-06 13:14:22 -06:00
Scott Lahteine 6cd99e6a77 Add pins to the pins debug list 2020-03-06 13:14:22 -06:00
Scott Lahteine 6d18f715e4 Fix M0/M1 message string 2020-03-06 13:14:22 -06:00
thinkyhead 459a0dae29 [cron] Bump distribution date (2020-03-06) 2020-03-06 00:04:16 +00:00
Scott Lahteine 3a72b0fd41 Update Chinese (TW) language (#17071) 2020-03-05 15:39:49 -06:00
Scott Lahteine f0248c9ed9 Update Turkish language (#17070) 2020-03-05 15:37:02 -06:00
Scott Lahteine c0801e900d Define Z_MIN_PROBE_PIN for Cohesion 3D Remix 2020-03-05 15:10:46 -06:00
Scott Lahteine 5a6daa7c54 Fix CI test for SENSORLESS_PROBING 2020-03-05 15:07:48 -06:00
Scott Lahteine e3da86fb45 Fix SKR test for ONBOARD SD 2020-03-05 13:37:09 -06:00
Scott Lahteine 0578e9b16e Move SENSORLESS_PROBING to the probes section
Fixes a bug with HAS_BED_PROBE not being set before use.
2020-03-05 11:05:11 -06:00
thinkyhead 7e58739a1f [cron] Bump distribution date (2020-03-05) 2020-03-05 00:04:13 +00:00
Scott Lahteine 631addbbb4 SAMD51 SoftwareSerial (#17041) 2020-03-04 13:15:32 -06:00
Scott Lahteine d4ac78535c Allow Z_STOP_PIN override on SKR 1.4 (#17063) 2020-03-04 13:12:48 -06:00
Scott Lahteine 70863fbd55 Avoid name conflict with 'UART' 2020-03-04 12:50:58 -06:00
Scott Lahteine 7709261ea9 Move shared code to wait_for_bed_heating 2020-03-04 12:50:57 -06:00
thinkyhead ab1863ac48 [cron] Bump distribution date (2020-03-04) 2020-03-04 00:04:06 +00:00
Scott Lahteine 72b63e9520 Fix TEMP_PROBE_PIN for SKR 1.4
Co-Authored-By: Anthrix <anthrix@users.noreply.github.com>
2020-03-03 14:53:22 -06:00
George Fu a698bfdc2a Update FYSETC S6 pins/variants (#17056) 2020-03-03 14:30:09 -06:00
thisiskeithb efc739a880 Use BED_MAXTEMP for PTC_MAX_BED_TEMP (#17061) 2020-03-03 14:22:28 -06:00
Scott Lahteine fd1af0189e mftest: Set machine name 2020-03-03 14:21:07 -06:00
Scott Lahteine 83a60f15ff Fix EEPROM compile errors 2020-03-03 14:21:07 -06:00
Scott Lahteine c083728e4c General code cleanup 2020-03-03 14:20:37 -06:00
Scott Lahteine 5e28b0f471 Minor EEPROM cleanup 2020-03-02 21:56:21 -06:00
Scott Lahteine 3a07b4412d Asynchronous M114 and (R)ealtime position option (#17032) 2020-03-02 21:52:53 -06:00
Scott Lahteine 5171e9da93 No more direct G28 calls 2020-03-02 21:01:58 -06:00
Scott Lahteine af62d7f937 Fix MMU test 2020-03-02 19:18:00 -06:00
thinkyhead 12d05e4835 [cron] Bump distribution date (2020-03-03) 2020-03-03 00:04:10 +00:00
Scott Lahteine 07e22d1d65 Neopixel on LPC uses GPIO toggling 2020-03-02 17:20:01 -06:00
Scott Lahteine d3e232d1c1 Add single extruder LIN_ADVANCE test 2020-03-02 17:11:41 -06:00
Scott Lahteine 646599d0d9 Finish M900 updates 2020-03-02 17:10:51 -06:00
Scott Lahteine eb4d5120bf Keep name around for old configs 2020-03-02 16:23:17 -06:00
thisiskeithb e0c0173f73 Fix nested comment warning (#17045) 2020-03-02 16:08:26 -06:00
InsanityAutomation 552f7a91d0 Default on/off for Power Loss Recovery (#17051) 2020-03-02 16:07:53 -06:00
jufimu12 ad4a9eb73a Fix G34 probing range/error bug (#17052) 2020-03-02 13:35:02 -06:00
Scott Lahteine 5aa528781f Fix ambiguous type
Co-Authored-By: Andrew Kroll <xxxajk@gmail.com>
2020-03-02 13:23:07 -06:00
ellensp af23c0480e Don't define 'valptr' if unused (#17048) 2020-03-02 13:17:52 -06:00
ellensp 624ab24a5c Suppress thisItemNr warning (#17049) 2020-03-02 13:14:08 -06:00
Jason Smith 66334820ca Add TMC micro-steps sanity check (#17044)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
2020-03-02 13:13:04 -06:00
Scott Lahteine 2c4e054e9a Fix fastio pin comment 2020-03-02 13:11:30 -06:00
Scott Lahteine 49c5f614c6 Minor motion style changes 2020-03-02 12:54:18 -06:00
Scott Lahteine 6b5347ee39 Improved M900 2020-03-02 12:05:00 -06:00
Scott Lahteine b1a50d54e2 HAS_TRINAMIC => HAS_TRINAMIC_CONFIG 2020-03-02 12:04:36 -06:00
Scott Lahteine 736521a3f1 Balance mega tests, shorten some env names 2020-03-01 21:20:22 -06:00
Scott Lahteine 870a1f753a Fix undefined STATUS_CHAMBER_WIDTH 2020-03-01 21:19:50 -06:00
Jason Smith cc822bf70f Fix some 8 extruders issues, GTR build (#17043) 2020-03-01 21:19:02 -06:00
Jason Smith 5da6819277 Fix build issues with REPRAPWORLD_KEYPAD (#17038)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-03-01 19:54:22 -06:00
Scott Lahteine 362c9ae79a Clean up use of extra_xyjerk 2020-03-01 19:23:48 -06:00
thinkyhead ac93df43cd [cron] Bump distribution date (2020-03-02) 2020-03-02 00:04:18 +00:00
ellensp 4b256a6fa8 Revert FYSETC Mini encoder change (#17040)
Reverting #17010
2020-03-01 17:59:00 -06:00
Jason Smith 45fae55929 Fix SKR nested comment warning (#17037) 2020-03-01 17:39:00 -06:00
Jason Smith 4a3fcd0bf9 Fix three extruder with auto-fan build (#17035) 2020-03-01 17:37:16 -06:00
Scott Lahteine edd1b76a9a Fix set_current_from_steppers_for_axis(E_AXIS) bug 2020-03-01 14:36:21 -06:00
Scott Lahteine c4db8e49a7 XYZ_CHAR macro 2020-03-01 14:36:06 -06:00
Scott Lahteine 3473b21710 Move millis_t includes 2020-03-01 09:50:53 -06:00
Scott Lahteine 5e9a10dbae Use PSTR for common labels 2020-03-01 08:39:47 -06:00
Scott Lahteine f7d663c7db Improvements for MarlinMesh.scad 2020-03-01 05:58:26 -06:00
thinkyhead 1d609d2bbd [cron] Bump distribution date (2020-03-01) 2020-03-01 00:04:02 +00:00
Vert 6c9ca1bec2 Clarify GT2560 common pins (#17021) 2020-02-29 04:35:10 -06:00
Scott Lahteine 730804289c Catch more LPC1768 pin conflicts (#17019) 2020-02-29 04:14:40 -06:00
ManuelMcLure 39c34e4992 Use ADC resolution in AD595/8495 calculation (#17018)
Fixes thermocouple reading on LP1768 (which uses 12-bit resolution).
2020-02-28 23:28:17 -06:00
thinkyhead b946530ef6 [cron] Bump distribution date (2020-02-29) 2020-02-29 00:03:54 +00:00
ellensp 9b145c7c73 Reverse encoder for FYSETC Mini 12864 2.1 + SKR 1.3 (#17010) 2020-02-28 12:26:54 -06:00
jufimu12 ac755fce82 Fix G34 "Decreasing accuracy" bug (#17013)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-02-28 11:42:51 -06:00
Scott Lahteine 97e87d8262 Fix G76 reachable test (#17005) 2020-02-27 22:47:44 -06:00
Anders Sahlman c669420134 Pass along sanity_check for (G33) probing (#17006) 2020-02-27 19:58:35 -06:00
thinkyhead f8497b8171 [cron] Bump distribution date (2020-02-28) 2020-02-28 00:03:53 +00:00
Scott Lahteine bfbd976c09 General G76 cleanup 2020-02-27 07:53:24 -06:00
Scott Lahteine a75a25cd7c Replace direct call to G28(true) 2020-02-27 07:48:34 -06:00
Scott Lahteine 4f55723527 RUMBA has 3 E plugs 2020-02-27 07:48:02 -06:00
Scott Lahteine 77b82d300a Add idle_no_sleep 2020-02-27 06:45:33 -06:00
Scott Lahteine e5d39063a2 Cleanups for PTC 2020-02-27 06:45:23 -06:00
Scott Lahteine be62ab2d02 Move reachable test to Probe class 2020-02-27 06:16:33 -06:00
Roman Moravčík 9f8ee31144 Update Slovak language (#17002) 2020-02-27 03:38:46 -06:00
Makoto Schoppert 8164cac797 Fix planner.cpp compile (#16996) 2020-02-27 03:29:44 -06:00
thinkyhead a80eda41bc [cron] Bump distribution date (2020-02-27) 2020-02-27 00:03:42 +00:00
Scott Lahteine bafe8d920a Handle print completed LED event in M0 2020-02-26 12:02:54 -06:00
Scott Lahteine 633b716a3a Define DIAG pins for MKS SGen-L 2020-02-26 11:35:07 -06:00
Scott Lahteine 832951ec44 Case-insensitive g-code option (#16932) 2020-02-26 09:23:55 -06:00
Scott Lahteine 18b875dc9f Allow print recovery after parking 2020-02-26 08:16:46 -06:00
Scott Lahteine 6fd7f4fe1b Fix unified status bed temp display 2020-02-26 08:09:57 -06:00
Scott Lahteine 263a7beeb5 More extra travel jerk changes
Co-Authored-By: josedpedroso <josedpedroso@users.noreply.github.com>
2020-02-26 07:24:36 -06:00
Scott Lahteine 6913a4dfa8 Prevent park_point compile error 2020-02-26 07:10:35 -06:00
Scott Lahteine 025c50cc6d Quick-homing sensorless back-off (#16872) 2020-02-26 06:50:13 -06:00
Scott Lahteine 02cce7d4b4 Add TRAVEL_EXTRA_XYJERK option
See #16949

Co-Authored-By: josedpedroso <josedpedroso@users.noreply.github.com>
2020-02-26 06:43:07 -06:00
Scott Lahteine 0a7e7a6fa5 Allow servo features in combination (#16960) 2020-02-26 06:26:54 -06:00
Scott Lahteine daa32013b1 Sanity check for LPC serial pin conflict (#16981) 2020-02-26 06:26:30 -06:00
Scott Lahteine ec1b86d9cb Serial strings in macros 2020-02-26 05:38:33 -06:00
Scott Lahteine cf597e2bb1 Allow weird probe values in G33 2020-02-26 05:33:57 -06:00
ellensp e76f2ed4cb Fix Trinamic pulse rate auto-assignment (#16966) 2020-02-26 04:34:21 -06:00
Scott Lahteine b5c2190b38 String optimize followup 2020-02-26 04:32:40 -06:00
InsanityAutomation 28008aced0 Correct SKR expansion port pins (#16974) 2020-02-26 04:18:34 -06:00
ellensp 70af080813 Add LPC1768 Serial ports for pinsDebug (#16980) 2020-02-26 04:12:53 -06:00
Scott Lahteine 5ebba4b19f More serial strings 2020-02-26 04:11:12 -06:00
InsanityAutomation cdcd45d651 Set LCD status for EEPROM errors (#16977) 2020-02-26 03:04:02 -06:00
Scott Lahteine e78f607ef3 Use a STR_ prefix for non-translated strings 2020-02-26 03:02:03 -06:00
Scott Lahteine 6b9a17be16 Language: "failsafe" => "Defaults" 2020-02-26 02:03:47 -06:00
InsanityAutomation 4250a98908 Toolchange improvements (#16979) 2020-02-26 00:12:14 -06:00
InsanityAutomation ba4f49f4a2 Fix GTR10 overlapping defines (#16976) 2020-02-25 22:56:52 -06:00
Scott Lahteine 5b438fb20d HAS_SDCARD_CONNECTION is more obsolete 2020-02-25 22:30:30 -06:00
Scott Lahteine 5071fe82ab Ensure proper SD print completion (#16967) 2020-02-25 22:18:14 -06:00
thinkyhead 91cff02596 [cron] Bump distribution date (2020-02-26) 2020-02-26 00:03:52 +00:00
Scott Lahteine 454cbcce51 Fix the wait loop in M0 / M1 2020-02-25 12:20:54 -06:00
InsanityAutomation 6bfae5de6f Fix SKR 1.4 Turbo SD_DETECT_PIN (#16955) 2020-02-25 03:17:08 -06:00
InsanityAutomation 3e685777a8 Fix LCD cutter/bed icons overlapping (#16956) 2020-02-25 03:07:36 -06:00
Giuliano Zaro d13b153230 Update Italian language (#16947) 2020-02-25 03:05:58 -06:00
InsanityAutomation 3a6f776c4b Update POWER_LOSS_PIN comment (#16957) 2020-02-24 23:51:10 -06:00
thinkyhead ca305b03b7 [cron] Bump distribution date (2020-02-25) 2020-02-25 00:04:00 +00:00
Scott Lahteine 9040394e8e Fix card_eof error 2020-02-24 11:00:01 -06:00
Marcio T 955ce393df Restore tabs in Makefile (#16944) 2020-02-24 10:42:12 -06:00
Marcio T 92278a45ed Allow Z_SAFE_HOMING_POINT outside bed (#16945) 2020-02-24 10:40:12 -06:00
Scott Lahteine a254354e68 BS_TOTAL_AXIS => BS_TOTAL_IND 2020-02-24 06:11:43 -06:00
Scott Lahteine 5e197df89a Fix Babystepping loop (again) 2020-02-24 05:48:42 -06:00
Scott Lahteine 8ba5ef8cae "Init. Media" => "Attach Media" 2020-02-24 05:33:23 -06:00
Scott Lahteine 9a51f29efa Simplified E_AXIS_HAS macro 2020-02-23 23:55:56 -06:00
Jason Smith ebd2bcc177 Fix AXIS_HAS_SW_SERIAL 2020-02-23 21:59:31 -06:00
thinkyhead 9717b3044f [cron] Bump distribution date (2020-02-24) 2020-02-24 00:03:56 +00:00
Jason Smith 2bcc2ec7d1 Reduce default TMC baudrate to 57600 with Software Serial (#16930) 2020-02-23 07:48:56 -06:00
Giuliano Zaro 529d57bddf Sync Italian language (#16935) 2020-02-23 07:47:30 -06:00
Scott Lahteine 0ba18848af Allow USE_GCODE_SUBCODES for debugging 2020-02-22 22:50:03 -06:00
Scott Lahteine b2328d089a Allow LCD_PIXEL_WIDTH/HEIGHT override 2020-02-22 21:36:21 -06:00
Scott Lahteine 29ec868c4b Commit last SD line before fileHasFinished 2020-02-22 20:46:52 -06:00
Scott Lahteine 1d431fe8d2 Suppress "packed member" warning 2020-02-22 19:28:24 -06:00
ZMiguel Alves 2471a8bb91 Define ANET_FULL_GRAPHICS_LCD pins for SKR 1.4 (#16928) 2020-02-22 18:45:10 -06:00
ellensp 7bf3581b02 Fix M0/M1 broken wait loop (#16921) 2020-02-22 18:37:39 -06:00
Scott Lahteine b9b29bf4c0 Followup to babystep hotfix 2020-02-22 18:34:49 -06:00
thisiskeithb 20df64814e Finish Custom User Menu sanity-check (#16917) 2020-02-22 18:33:34 -06:00
thinkyhead 34c92bbc17 [cron] Bump distribution date (2020-02-23) 2020-02-23 00:03:55 +00:00
vivian-ng eeec4c27e7 [ESP32] Allow user to define pins for hardware Serial1 and Serial2 (#16918) 2020-02-22 04:00:10 -06:00
Scott Lahteine 484e1a624c CoreXY Babystepping hotfix 2020-02-22 02:52:59 -06:00
Scott Lahteine ac3e27c026 Hotfix for Babystepping 2020-02-22 02:52:21 -06:00
Scott Lahteine 1ab6f910b6 Use moves_free in ok_to_send 2020-02-22 02:30:59 -06:00
thinkyhead cfd49740eb [cron] Bump distribution date (2020-02-22) 2020-02-22 00:03:47 +00:00
Scott Lahteine 5d16497bed Tweak pins spacing, comments 2020-02-21 08:33:11 -06:00
ellensp 9f53bbd791 Add PICA shields support (#16891) 2020-02-21 08:27:32 -06:00
Jamie e1d367e05a Fix EEPROM errors with EXTRUDERS == 0 (#16898) 2020-02-21 07:42:13 -06:00
Karl Andersson f30897500d Disable spreadcycle in tmc_enable_stallguard<2209> (#16890) 2020-02-21 07:40:55 -06:00
Tanguy Pruvot 68de12acbf Followup to autoreport patch (#16914)
See a1f026f57a
2020-02-21 07:36:59 -06:00
Scott Lahteine 6320f9795c More EEPROM cleanup 2020-02-20 20:56:13 -06:00
Scott Lahteine 22b974691e Tweak process_line_done for speed 2020-02-20 20:36:51 -06:00
Scott Lahteine 4ef627d79f Add a note on EEPROM todo 2020-02-20 20:36:50 -06:00
Scott Lahteine 19991e269b Show end prompt with Print Event LEDs 2020-02-20 20:36:50 -06:00
Scott Lahteine b8b225c8b5 Function for CONFIG_ECHO_HEADING 2020-02-20 20:36:50 -06:00
Scott Lahteine a1f026f57a Inline manage_inactivity, tweak autoreport_paused 2020-02-20 20:36:50 -06:00
Scott Lahteine 2b788e9aa6 Single envs for specific boards 2020-02-20 20:20:15 -06:00
thinkyhead 140e4ac507 [cron] Bump distribution date (2020-02-21) 2020-02-21 00:03:41 +00:00
Robby Candra 1c52d76668 Serial redirect for Move Command when stopping (#16906) 2020-02-20 02:22:07 -06:00
thinkyhead 178735b958 [cron] Bump distribution date (2020-02-20) 2020-02-20 00:03:52 +00:00
thinkyhead 4c179ba3f7 [cron] Bump distribution date (2020-02-19) 2020-02-19 00:03:54 +00:00
thinkyhead 05f51e9355 [cron] Bump distribution date (2020-02-18) 2020-02-18 00:03:31 +00:00
thinkyhead 75e3aa12c5 [cron] Bump distribution date (2020-02-17) 2020-02-17 00:03:58 +00:00
Scott Lahteine 99a5074372 Fix babystep include, typos in stepper.cpp
Fix #16881
2020-02-16 17:49:21 -06:00
vivian-ng 4c6f695bea Put ESP32 I2S stepper task and Marlin on the same core (#16874) 2020-02-16 16:44:36 -06:00
Tanguy Pruvot 8bc3e63871 Update French language (#16877) 2020-02-16 16:39:17 -06:00
Scott Lahteine 4d400910b4 Fix mftest -b -u line match 2020-02-16 15:30:20 -06:00
Giuliano Zaro 42208bc031 Fix unknown command on empty lines (#16867) 2020-02-16 01:10:20 -06:00
Giuliano Zaro 199a1ba0e5 Move SAMD51 Temperature timer to RTC (#16868) 2020-02-15 22:45:52 -06:00
Scott Lahteine 4360142bd1 Defer updated ADC 2020-02-15 22:37:16 -06:00
Scott Lahteine ddce1c6ef2 Show '*' for zero 'stst' flag 2020-02-15 22:35:28 -06:00
Scott Lahteine 72fae2faa5 Require TMCStepper 0.6.2 2020-02-15 22:35:28 -06:00
Scott Lahteine 64a81f887a EXPERIMENTAL integrated BABYSTEPPING (#16829) 2020-02-15 21:42:28 -06:00
Scott Lahteine 64b96f3908 Double ADC read frequency (#16864) 2020-02-15 19:10:46 -06:00
thinkyhead 52a1268089 [cron] Bump distribution date (2020-02-16) 2020-02-16 00:04:09 +00:00
Scott Lahteine 5584da388c Conceal float rounding errors on display
Fix #16866
2020-02-15 02:55:41 -06:00
Scott Lahteine efdaf940a5 Fix byte-to-percent display
Fixes #16866
2020-02-15 02:37:13 -06:00
Scott Lahteine 71ec89a112 Fix mftest -b and -u. Add --help. 2020-02-15 01:47:15 -06:00
Scott Lahteine 1087e318e5 Fix a BORG compile warning 2020-02-15 01:47:15 -06:00
thinkyhead 150237f712 [cron] Bump distribution date (2020-02-15) 2020-02-15 00:03:59 +00:00
George Fu 63dd0f249d Fysetc S6 pins / LCD updates (#16830) 2020-02-14 07:18:57 -06:00
Scott Lahteine 0b984519c3 Clean up stepper and babystep (#16857) 2020-02-14 05:14:37 -06:00
Scott Lahteine 073e4443e8 Optimize "Dismiss" string 2020-02-14 00:05:06 -06:00
Scott Lahteine 00ba053c90 Clean up host actions code (#16856) 2020-02-13 23:39:27 -06:00
Giuliano Zaro ff0c931e47 Add RAMPS 1.4.4 to AGCM4 (#16606) 2020-02-13 23:28:18 -06:00
vivian-ng a16f3baecc Add ESPAsyncTCP to lib_ignore (#16844) 2020-02-13 23:22:52 -06:00
Scott Lahteine 49a66bc4cc Fix ESP32 warning, specify supported version 2020-02-13 19:22:13 -06:00
Scott Lahteine f3f692adf7 Don't assert safe homing for delta/scara 2020-02-13 19:22:13 -06:00
Robby Candra af84e362cc Remove unused queue.stopped_N (#16850) 2020-02-13 18:59:32 -06:00
Gaston Dombiak 082117c4bb Ping the job timer in M140 (#16849) 2020-02-13 18:43:47 -06:00
Giuliano Zaro 0e17d10bf3 Fix G-code line parsing (#16840) 2020-02-13 18:30:47 -06:00
thinkyhead 68077149e2 [cron] Bump distribution date (2020-02-14) 2020-02-14 00:04:13 +00:00
thinkyhead 62d7d49719 [cron] Bump distribution date (2020-02-13) 2020-02-13 00:03:34 +00:00
Scott Lahteine 1d8d91afc6 No limit needed on this raise
Remove an extraneous limit from #16811.
2020-02-12 14:57:11 -06:00
Robby Candra a83ad2d9d4 Define MarlinSerial instances for DGUS (#16841) 2020-02-11 20:30:20 -06:00
thinkyhead 0306c1bb0c [cron] Bump distribution date (2020-02-12) 2020-02-12 00:03:54 +00:00
Giuliano Zaro 4a733796bd Prevent pin glitches on out commutation (#16835)
Better for switching from pulled input to output and also set real output (with no input enabled).
2020-02-11 10:43:28 -06:00
Scott Lahteine 0fd0554b5f Simplify old safe homing sanity check 2020-02-11 10:07:45 -06:00
Scott Lahteine fa6e7cb733 Function-style critical section macros 2020-02-11 09:37:04 -06:00
Scott Lahteine 7b02a62da8 Fix up tests 2020-02-11 09:37:04 -06:00
Scott Lahteine 189c101793 Use prior babystep delay method (#16833) 2020-02-11 08:52:11 -06:00
Scott Lahteine 1c556cd90d Recommend Z Safe Homing
Co-Authored-By: Vertabreaker <opyrus@hotmail.com>
2020-02-11 07:40:37 -06:00
Scott Lahteine e442663e2a No Z sensorless req'd if homing with probe
Fixes #16674
2020-02-11 04:15:25 -06:00
Scott Lahteine 71539bcbeb Undo driver type auto-assignment for now
Good general concept but needs more time to develop and group with a stepper suite.
2020-02-11 02:32:01 -06:00
Giuliano Zaro d5790e09a5 Update SAMD51 EEPROM repo link (#16832) 2020-02-11 02:05:58 -06:00
thinkyhead b26f7fca3f [cron] Bump distribution date (2020-02-11) 2020-02-11 00:04:03 +00:00
Scott Lahteine 2836834d7e Unify step pulse timing of ISR / babystep (#16813) 2020-02-10 16:58:21 -06:00
darksiah d8b2726fd3 Fix MKS Robin Nano platformio.ini entry (#16826) 2020-02-10 16:49:36 -06:00
proferabg 3f87f912c5 Enable hotend / bed PID separately in ExtUI (#16827) 2020-02-10 16:48:22 -06:00
Scott Lahteine fa4a6cdb5c Fix out-of-order M0 after SD printing
Fixes #14774

Co-Authored-By: tol2cj <tol2cj@users.noreply.github.com>
2020-02-10 16:33:40 -06:00
Scott Lahteine 3bef7a4450 Add g-code quoted strings, improve stream code (#16818) 2020-02-10 14:52:15 -06:00
Daniel Mazurkiewicz e561f744fa Update MKS BASE and v1.6 pins (#16806) 2020-02-10 14:12:11 -06:00
Scott Lahteine 0b45493557 Add a caution to drivers.h 2020-02-09 21:58:12 -06:00
Scott Lahteine 18a7276909 Revert "Coolstep for TMC2130, 2209, 5130, 5160"
Reverting #16790 as not ready for primetime.
2020-02-09 21:22:26 -06:00
Scott Lahteine 28b48fc9bb Revert change to AXIS_DRIVER_TYPE_X2
- Revisit this to figure out why it breaks
2020-02-09 20:49:55 -06:00
Scott Lahteine 10b4fa91eb Add mftest -b (auto-build) and -u (upload)
- Implement the equivalent of auto-build for the shell environment by using the MOTHERBOARD setting to look up the env: entries.
2020-02-09 20:48:20 -06:00
Scott Lahteine a33d08928a Tweak LPC1768 upload py script 2020-02-09 20:48:20 -06:00
thinkyhead 15e6ee6c7c [cron] Bump distribution date (2020-02-10) 2020-02-10 00:03:46 +00:00
InsanityAutomation a9549f7a08 Add PID, probe offsets to ExtUI (#16792) 2020-02-09 12:22:53 -06:00
InsanityAutomation cc1ff27256 Bump config version to 020004 (#16816) 2020-02-09 12:15:02 -06:00
Scott Lahteine 0ce83dee95 Show print time with PRINTER_EVENT_LEDS 2020-02-09 11:37:43 -06:00
Scott Lahteine 38873596ec Tweak parser warning 2020-02-09 11:37:43 -06:00
Scott Lahteine ffcbba4447 Move MSG_MARLIN 2020-02-09 11:37:43 -06:00
Scott Lahteine b9b07387d7 Minor HAL cleanup 2020-02-09 11:12:38 -06:00
Giuliano Zaro 90e2c42031 Adafruit Grand Central M4 fixes (#16812) 2020-02-09 09:57:22 -06:00
InsanityAutomation 84b6e11bd5 Better probe fail handling (#16811) 2020-02-09 07:46:38 -06:00
Fabio Santos 894762259b Coolstep for TMC2130, 2209, 5130, 5160 (#16790) 2020-02-08 21:01:57 -06:00
thinkyhead f0cbc85a07 [cron] Bump distribution date (2020-02-09) 2020-02-09 00:03:30 +00:00
Scott Lahteine 130e36d766 Tweak ABL logging, document probing 2020-02-08 17:47:54 -06:00
Scott Lahteine 5d3cfbdc9b Add .editorconfig file 2020-02-08 17:43:25 -06:00
Scott Lahteine f55abfeb95 Clean up Makefle indentation 2020-02-08 17:43:00 -06:00
thinkyhead 38bf5523e1 [cron] Bump distribution date (2020-02-08) 2020-02-08 00:02:22 +00:00
thinkyhead 12b3807a7f [cron] Bump distribution date (2020-02-07) 2020-02-07 00:02:48 +00:00
Robert Stein 3a3429b1ef Fix probe with multi-endstops (#16793) 2020-02-06 15:28:46 -06:00
Robby Candra 86812432f3 Remove extraneous Serial init (#16794) 2020-02-06 14:11:49 -06:00
Tanguy Pruvot 54aff83179 G26: Allow to set retraction for UBL mesh test (#16511) 2020-02-05 20:33:39 -06:00
Bob Kuhn 78fea4a9ca Split up MKS_RUMBA32 into two variants (#16781) 2020-02-05 20:28:28 -06:00
thinkyhead bb68eaa69e [cron] Bump distribution date (2020-02-06) 2020-02-06 00:02:49 +00:00
Scott Lahteine 00d71ff0eb Direct download link for configs 2020-02-05 00:45:43 -06:00
thisiskeithb 9b4192cdd0 Add MKS Base 1.6 board (#16783) 2020-02-04 23:21:05 -06:00
thinkyhead 0ebd2f44d4 [cron] Bump distribution date (2020-02-05) 2020-02-05 00:02:59 +00:00
Scott Lahteine f312ddfa4f More updates for 8 extruders, REPEAT 2020-02-04 12:37:20 -06:00
Scott Lahteine 793939a365 Upgrade an ifdef 2020-02-04 08:46:37 -06:00
Scott Lahteine 7bf2190f03 Fix CALIBRATION_GCODE pin handling 2020-02-04 08:32:43 -06:00
Scott Lahteine 081ef46e76 Fix Arduino IDE compile for DUE
Fixes #16767
2020-02-04 08:32:20 -06:00
Scott Lahteine 15b6ad41bc Fix E stepper stays on bug
Fixes #16753
2020-02-04 02:39:37 -06:00
Bob Kuhn 0268c1d02c STM32duino - Use SDIO for onboard SD (#16756) 2020-02-04 01:24:11 -06:00
felixstorm 38a9706e16 Keep secure credentials in a separate config file (#16773) 2020-02-03 23:29:01 -06:00
InsanityAutomation 62d9e3f50e Force T0 in UBL G29 on all multi-hotend setups (#16774) 2020-02-03 20:58:44 -06:00
Scott Lahteine 3ded99b894 [cron] Bump distribution date 2020-02-03 19:53:30 -06:00
felixstorm f1dbfaf706 Fix warning for ESP32 (#16771) 2020-02-03 18:36:51 -06:00
ellensp 7d4fa9d504 Fix LCD Z Move character LCD display line (#16772) 2020-02-03 18:35:06 -06:00
Scott Lahteine ff78f79762 Use a different Configurations branch for CI 2020-02-03 18:06:04 -06:00
Scott Lahteine 202840e750 Tweak mfqp script 2020-02-03 08:33:35 -06:00
Scott Lahteine bfad23d3e2 (c) 2020 2020-02-03 08:00:57 -06:00
Scott Lahteine 7f9c62437e Corner Leveling: Add inset for each side (#16759) 2020-02-03 00:00:35 -06:00
Scott Lahteine 72b4d91d2e Add Z_AFTER_HOMING to raise Z more in G28 (#16755) 2020-02-02 00:02:30 -06:00
Scott Lahteine ee6003be87 Revert breaking change to _FAN_PWM macro 2020-02-01 23:07:20 -06:00
Scott Lahteine 4716dac874 Apply REPEAT, RREPEAT, and loop macros (#16757) 2020-02-01 21:00:53 -06:00
Scott Lahteine 0e72c315a0 Minor string storage optimization 2020-02-01 20:29:31 -06:00
Scott Lahteine 4937519d51 Fix LPC build with USE_WATCHDOG off 2020-02-01 20:29:31 -06:00
Scott Lahteine 63469ed8f7 Add EXP labels to SKR pins 2020-02-01 19:06:32 -06:00
Scott Lahteine 22556a7bbf More 8-extruder fixups 2020-02-01 15:19:58 -06:00
Scott Lahteine c4cbc54484 Suppress a compile warning 2020-02-01 10:38:07 -06:00
Scott Lahteine 7a4758a6a2 Fix RGB / Neopixel white color bug
See #16752
2020-02-01 10:11:36 -06:00
Scott Lahteine 995a9238b3 Probe singleton patch
Followup to #16751
2020-02-01 07:57:10 -06:00
Scott Lahteine 5296af94d2 Drop obsolete SD special char handling
See #14035
2020-02-01 06:49:56 -06:00
Scott Lahteine 0d342bac51 Fix CURRENT_STEP_DOWN compile error 2020-02-01 06:27:17 -06:00
Acenotass 832d33ce9d Update Russian language (#16750) 2020-02-01 04:53:18 -06:00
Jason Smith c3cab37d7e Fix Temperature::over_autostart_threshold (#16749) 2020-02-01 04:51:57 -06:00
InsanityAutomation e58d1bf974 G34 automatic point assignment (#16473) 2020-02-01 04:50:44 -06:00
Scott Lahteine 90b6324563 Encapsulate probe as singleton class (#16751) 2020-02-01 04:21:36 -06:00
Scott Lahteine 43d3463d5d Misc cleanup, whitespace 2020-02-01 03:50:42 -06:00
Scott Lahteine e64b7a3ab2 Clean up i2c encoder, sanitize serial 2020-02-01 00:57:14 -06:00
Scott Lahteine 1af05797d7 Improve mfadd helper script
- Use the original branch name if none is supplied
- Set the remote tracking to the source
- Accept User/Branch or User:Branch syntax
2020-02-01 00:46:22 -06:00
Jason Smith 9a8de23858 Consistent M112 with Emergency Parser (#16747) 2020-01-31 23:08:37 -06:00
Jason Smith 5b3d968634 Option for Trigorilla 1.4 with add-on endstops board (#16737) 2020-01-31 21:51:59 -06:00
rebel1 300b81bfcb Fix BTT SKR 1.4 extra endstop pins (#16738) 2020-01-31 21:46:02 -06:00
Acenotass 0a6ae664bd Update Russian language (#16745) 2020-01-31 21:43:44 -06:00
Scott Lahteine c4df5cf9a6 Include macros for delta ABC 2020-01-31 04:40:33 -06:00
Scott Lahteine 02f61832c0 Add sanity-check for new Advanced Pause option
Followup to #16372
2020-01-30 23:24:40 -06:00
thinkyhead dabf393920 [cron] Bump distribution date (2020-01-31) 2020-01-31 00:06:46 +00:00
Artur Petrzak e4679c1b78 (21) PT100 for MCUs with 3.3v logic (#16731) 2020-01-30 18:00:37 -06:00
Scott Lahteine 62f52ebb3a Fix up, improve endstop pin auto-assignment
Followup for #16723
2020-01-30 14:09:33 -06:00
Scott Lahteine e8e25b80d1 Extend RX/TX pins for up to 8 extruders 2020-01-30 13:29:19 -06:00
Robert Stein 2822c0890a Set up DIAG endstops for BTT SKR 1.4 / 1.4 Turbo (#16727) 2020-01-30 13:17:15 -06:00
Alexander Gavrilenko c45d6b2017 Simultaneous use of rotary encoder and touch buttons (#16729) 2020-01-30 12:29:30 -06:00
felixstorm 8d4dd88bf9 Fix compile error in SdVolume on ESP32 (#16728) 2020-01-30 12:22:42 -06:00
Scott Lahteine 3c9464eea4 Tweak G60/G61 slots 2020-01-30 03:25:40 -06:00
Scott Lahteine 5b12627e14 Auto assign DIAG pins for multi-endstop (#16723) 2020-01-30 03:24:57 -06:00
Scott Lahteine 9caf5c05e7 Refactor heater watch, job timer auto-start (#16725) 2020-01-30 03:24:43 -06:00
Scott Lahteine 50889c0f94 Move L64XX index_to_axis to progmem (#16697) 2020-01-30 03:24:23 -06:00
chgi 99b6a132bc Fix G60/G61 slots > 8 and compile error (#16715) 2020-01-30 03:18:45 -06:00
Radek Pietruszewski e6a675e6ec Fix missing string for M48 build (#16708) 2020-01-30 03:13:31 -06:00
Mauro 1bc6509d02 Support for E4d@BOX mainboard (#16716) 2020-01-30 03:06:17 -06:00
Neskik 1db9d9f76f Fix probe temp calibration (#16718) 2020-01-30 03:00:38 -06:00
0r31 8737c35ded Fix HAS_FAN macro (#16717) 2020-01-29 22:48:26 -06:00
Scott Lahteine e8ed4329ea Cleanup of old includes, add comments 2020-01-29 22:41:18 -06:00
thinkyhead a5f72330fb [cron] Bump distribution date (2020-01-30) 2020-01-30 00:06:48 +00:00
InsanityAutomation 9bb8176d34 Fix Toolchange (!no_move) return to status (#16699) 2020-01-29 00:06:06 -06:00
thinkyhead 9b45f342ee [cron] Bump distribution date (2020-01-29) 2020-01-29 00:07:02 +00:00
felixstorm e4eaf32b4d Prevent SD access from resetting ESP32 (#16690) 2020-01-27 18:16:43 -06:00
thinkyhead 0c3cae59d9 [cron] Bump distribution date (2020-01-28) 2020-01-28 00:06:59 +00:00
Jason Smith 131acf304b Fix Manual Bed Leveling with multiple extruders (#16688) 2020-01-27 15:57:21 -06:00
Scott Lahteine 8bd6b60a01 Remove extraneous G60/G61 lines 2020-01-27 15:40:25 -06:00
Hans007a e2eef1256a G60/G61 Position Save/Restore (#16557) 2020-01-26 23:19:05 -06:00
Robby Candra a0a93e35ae Fix serial port redirection (index ≠ port num) (#16687) 2020-01-26 22:46:26 -06:00
Scott Lahteine 2325bede8a Fix Trigorilla 1.4 limit switches
See #16612
2020-01-26 21:08:55 -06:00
Scott Lahteine 56cd747c8b Rename some temperature members 2020-01-26 21:08:55 -06:00
Robby Candra 48098b1675 Preserve CWD for write/remove file (#16667) 2020-01-26 18:34:17 -06:00
thinkyhead f6a6704b66 [cron] Bump distribution date (2020-01-27) 2020-01-27 00:06:35 +00:00
Scott Lahteine 5e3e8fcdb9 Fix PID F menu label 2020-01-26 17:07:18 -06:00
ellensp 0949c0f326 SKR 1.3 sensorless endstops hack (#16659) 2020-01-26 03:49:11 -06:00
Giuliano Zaro 81f31efaee Fix Spanish (swapped BLTouch strings) (#16637) 2020-01-26 03:34:58 -06:00
ellensp c49e987b1e Fix M43 timer report on AVR (#16645) 2020-01-26 03:33:35 -06:00
Roman Moravčík 3572fa22a0 Update Slovak language (#16646) 2020-01-26 03:27:08 -06:00
Scott Lahteine 1d1dc8e339 More 8 extruder defines 2020-01-26 03:24:54 -06:00
Scott Lahteine bbfbcb8a5d Clean up PID language defines 2020-01-26 03:24:54 -06:00
Jason Smith 44d400db83 Fix HOMING_BACKOFF_MM for DELTA (#16657) 2020-01-26 03:16:03 -06:00
ellensp 4a71285c34 Fix Serial defines for M43 on AVR (#16649) 2020-01-26 03:05:34 -06:00
Luc 6357619ab2 Add ESP3DLib idletask entry point (#16658) 2020-01-26 01:11:30 -06:00
0r31 e3611ad209 Fix MKS Base + Digipot compile error (#16636) 2020-01-26 01:08:40 -06:00
Jason Smith 95d5a0c480 Fix DELTA_CALIBRATION_MENU recursive call (#16656) 2020-01-26 00:02:06 -06:00
thinkyhead 838a420e27 [cron] Bump distribution date (2020-01-26) 2020-01-26 00:06:19 +00:00
yangwenxiong 248b7dfa59 BigTreeTech GTR V1.0 / Support 8 extruders, heaters, temp sensors, fans (#16595) 2020-01-25 02:13:39 -06:00
Bob Kuhn 0d166f9c7d Duet Smart Effector support (#16641) 2020-01-25 02:00:51 -06:00
Scott Lahteine 86c18ea6e0 Bring configs and drivers.h up to date 2020-01-24 23:17:52 -06:00
Scott Lahteine b7a67f6f74 Extra debugging for leveling on/off 2020-01-24 23:17:49 -06:00
Scott Lahteine 1c042bbaea Convert chars only for enabled languages 2020-01-24 15:12:04 -06:00
thinkyhead 899db41a5c [cron] Bump distribution date (2020-01-24) 2020-01-24 00:07:21 +00:00
Artur Petrzak 2ef6b86ccd Enable use of latest TMCStepper on MKS Robin Nano (#16652) 2020-01-22 21:52:16 -06:00
thinkyhead 342f65eb8e [cron] Bump distribution date (2020-01-23) 2020-01-23 00:07:18 +00:00
Scott Lahteine 0eae26a7be Tweak mfpub stashing 2020-01-22 01:54:31 -06:00
thinkyhead fd346c6cd1 [cron] Bump distribution date (2020-01-22) 2020-01-22 00:07:17 +00:00
Scott Lahteine d3a8a81756 Update mfdoc, mfpub 2020-01-21 05:21:49 -06:00
Ryan b7f86bffd5 Arc segment radius scaling (#16551) 2020-01-21 02:53:26 -06:00
InsanityAutomation 79810b7fcb G12 defaults per tool. Event G-code for post-toolchange (#16554) 2020-01-21 02:51:23 -06:00
Scott Lahteine 84c874c53b Tweak some config spacing 2020-01-21 02:43:34 -06:00
MaukCC 04d64351a2 Add HMS434 V15 ATSAM board (#16620) 2020-01-21 01:10:31 -06:00
Tanguy Pruvot c8ac908db2 Release UI on G26 priming timeout (#16449) 2020-01-21 01:05:55 -06:00
0r31 b57ef4b261 Override for LPC1768 u8g/digipot I2C master ID (#16622) 2020-01-20 20:09:16 -06:00
Bob Kuhn 1a5cbc9052 Fix STM401/4xx/STM32F7xx timers, STEVAL_3DP001V1 warning (#16621) 2020-01-20 18:33:36 -06:00
thinkyhead f36225c3e0 [cron] Bump distribution date (2020-01-21) 2020-01-21 00:07:07 +00:00
InsanityAutomation 97b5a5f469 Provide methods for M420 + MBL (#16602) 2020-01-20 01:44:36 -06:00
Bob Kuhn a1f5245e27 L64xx M906 Fix status variable, formatting (#16597) 2020-01-20 01:15:00 -06:00
Giuliano Zaro ef8f829513 Fix CHAMBER_MAXTEMP security margin (#16600) 2020-01-20 00:44:51 -06:00
InsanityAutomation d9cdb4ae19 Move steps/mm out of slim menus (#16603) 2020-01-20 00:43:19 -06:00
0r31 451062553e LPC1768: Allow I2C master channel override (#16584) 2020-01-19 23:59:06 -06:00
InsanityAutomation 0fcf2b1110 Quad Z stepper support (#16277) 2020-01-19 23:35:07 -06:00
0r31 f36f084465 Fix Greek language string (#16601) 2020-01-19 23:03:19 -06:00
Bob Kuhn f6468f0af3 STEVAL_3DP001V1: Easier Serial2 (for WIFI interface) (#16599) 2020-01-19 22:27:20 -06:00
Jason Smith 439e73d79c AVR sanity check for MONITOR_DRIVER_STATUS with SW Serial (#16421) 2020-01-19 22:25:38 -06:00
ellensp 0547d9d651 Reset shutdown timer on M85 (#16587) 2020-01-19 22:24:12 -06:00
thisiskeithb 3b34fbd4c4 Update BTT002 pins (#16591) 2020-01-19 22:21:32 -06:00
George Fu a05a65e7d2 Update FYSETC S6 Peripheral Pins (#16593) 2020-01-19 22:21:09 -06:00
Giuliano Zaro aec211fc80 SAMD51: ADC for probe temperature compensation (#16596) 2020-01-19 22:17:08 -06:00
Bob Kuhn 1084068a3e Simplify a drivers.h macro (#16589) 2020-01-19 20:59:47 -06:00
Scott Lahteine e9ae585647 Patch for _STEP_INIT 2020-01-19 20:50:33 -06:00
Scott Lahteine dda76e50a9 Use bool in pin compare 2020-01-19 20:05:53 -06:00
Scott Lahteine 37849969ad Function-like macros 2020-01-19 20:01:22 -06:00
Scott Lahteine 707349d492 Updates for L64XX 2020-01-19 19:53:12 -06:00
Scott Lahteine f6a6839a82 Simplify TMC monitor code 2020-01-19 19:29:30 -06:00
Scott Lahteine 79c2f05e7d Fix M112 with Emergency Parser 2020-01-19 19:00:24 -06:00
thinkyhead 4dca6d50c0 [cron] Bump distribution date (2020-01-20) 2020-01-20 00:06:48 +00:00
thinkyhead 23fc81f1af [cron] Bump distribution date (2020-01-19) 2020-01-19 00:07:06 +00:00
Scott Lahteine d035bfb1a9 Allow RRW Keypad with any LCD 2020-01-18 14:48:24 -06:00
thinkyhead 80400ab3f8 [cron] Bump distribution date (2020-01-18) 2020-01-18 00:04:25 +00:00
tompe-proj a338dce83f PINDA v2 temperature sensor / compensation (#16293) 2020-01-17 17:16:45 -06:00
George Fu 4108c5d01f Update FYSETC S6 pins (#16559) 2020-01-17 13:16:05 -06:00
Scott Lahteine 9520e5121c More CI test updates 2020-01-17 03:21:31 -06:00
vivian-ng e94f782f51 Shared SPI sanity check (#16581) 2020-01-17 02:54:22 -06:00
Vertabreaker 6d1f6a9516 Adjust GTM32 build flags (#16582) 2020-01-17 02:46:50 -06:00
Scott Lahteine a578749622 Clean up HAL ADC, old test scripts 2020-01-17 02:44:01 -06:00
Bob-the-Kuhn 0d0dfba203 STM32 soft SPI. STEVAL_3DP001V1 SD read. M906 tweaks. (#16579) 2020-01-17 02:44:01 -06:00
thinkyhead 91a399ae7f [cron] Bump distribution date (2020-01-17) 2020-01-17 00:06:39 +00:00
felixstorm 2b9eb4437b ESP32 HAL: Fix random pauses during prints (#16548) 2020-01-16 05:57:14 -06:00
ellensp 5bd66241df Fix TOUCH_UI_FTDI_EVE bugs (#16540) 2020-01-16 05:50:00 -06:00
Scott Lahteine 1bb1ce7475 Move macros to stepper/indirection 2020-01-16 05:25:16 -06:00
Jason Smith c305c2cc6b Fix some warnings, Melzi pins 2020-01-15 19:57:16 -06:00
Vertabreaker b310047ded Fix GTM32 environment (to prevent a crash) 2020-01-15 19:25:36 -06:00
dagorel bda4957f9b Fix I2C address of MCP4728 on LPC176x (#16578) 2020-01-15 19:15:54 -06:00
Pascal de Bruijn f10d3564e1 STM32 RODATA LENGTH (#16580) 2020-01-15 19:13:28 -06:00
thinkyhead bc483b2354 [cron] Bump distribution date (2020-01-16) 2020-01-16 00:08:10 +00:00
Dennis 2d7f94cae1 Adjustable ADC debounce delay (#16264) 2020-01-15 18:06:03 -06:00
gjdodd 7481563bd9 Nikon IR support for time lapse photos (#16539) 2020-01-15 17:59:41 -06:00
Scott Lahteine bd550bb45a Get test configs from GitHub 2020-01-15 01:27:32 -06:00
Scott Lahteine b419ca254b Fix typo 2020-01-15 01:27:32 -06:00
thisiskeithb 7eed008e8e Use Flash EEPROM on BTT002 (#16558) 2020-01-15 01:27:32 -06:00
Bob Kuhn 53dfeed6c0 Steval_3DP001V1 timers, analog inputs, etc. (#16565) 2020-01-14 23:19:13 -06:00
Lino Barreca ef513ef7fb Fix build error with unsupported reset flags (#16562) 2020-01-14 23:19:13 -06:00
Scott Lahteine 7b304cee16 Move configurations to a separate repo 2020-01-14 19:11:47 -06:00
Scott Lahteine ea7363a8f4 Update more configs 2020-01-14 18:48:29 -06:00
thinkyhead 8e1a21cf53 [cron] Bump distribution date (2020-01-15) 2020-01-15 00:08:21 +00:00
Jason Smith fc773c2784 Fix Fysetc S6 FLASH_PAGE_SIZE and test build (#16560) 2020-01-14 15:36:47 -06:00
Scott Lahteine bfe4ceedd1 Bring MP_SCARA config up to date 2020-01-14 14:55:47 -06:00
InsanityAutomation ffd8b595d1 Fix PLR cancel with ExtUI (#16556) 2020-01-13 20:52:24 -06:00
Scott Lahteine 1457e40208 Make lcd_power_loss_recovery_cancel exportable 2020-01-13 20:25:12 -06:00
Bob Kuhn 1ad53cee1f Improved STMicro L64XX stepper driver support (#16452) 2020-01-13 18:47:30 -06:00
thinkyhead 53f1e5ff5b [cron] Bump distribution date (2020-01-14) 2020-01-14 00:08:54 +00:00
Scott Lahteine 0e6ef65aec Clean up whitespace 2020-01-13 16:56:56 -06:00
Bob Kuhn c4ffe74d71 Add SERVO, TONE timers to variant for better STEVAL_3DP001V1 support (#16538) 2020-01-13 00:26:17 -06:00
David Klasinc 55b2af9464 Fix Linux upload path detection (#16514) 2020-01-13 00:23:55 -06:00
Vertabreaker b4ee420a37 Geeetech G2Pro configuration (#16553) 2020-01-13 00:20:17 -06:00
Scott Lahteine f926351fa8 Power options formatting 2020-01-13 00:15:24 -06:00
Vertabreaker 51f2733b7f Add GTM32 (STM32F103VET6) environment (#16454) 2020-01-12 22:27:58 -06:00
thinkyhead fc4a42bbdc [cron] Bump distribution date (2020-01-13) 2020-01-13 00:08:17 +00:00
Scott Lahteine 89ccd463d7 Update auto_build.py paths for Atom/Sublime 2020-01-11 19:28:41 -06:00
Scott Lahteine 473d640e88 Restore test_builds action to bugfix 2020-01-11 18:38:47 -06:00
thinkyhead 57499291d3 [cron] Bump distribution date (2020-01-12) 2020-01-12 00:10:02 +00:00
Ryan V1 56e51efeea Use RECIPROCAL macro (not _RECIP) (#16530) 2020-01-11 17:16:16 -06:00
Jason Smith d22eb261cf Fix probeless delta build (#16537) 2020-01-11 17:14:33 -06:00
FlyingSamson fbf2f36cae Only constrain motion on homed axes (#16533)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2020-01-11 17:06:52 -06:00
Scott Lahteine 536778812f Migrate actions to default (2.0.x) branch 2020-01-10 18:16:52 -06:00
thinkyhead e8941d2bd8 [cron] Bump distribution date (2020-01-11) 2020-01-11 00:08:42 +00:00
Luc d854c8fa5f ESP3d integration for ESP32 (#16515) 2020-01-10 17:22:41 -06:00
Giuliano Zaro e9a97127f7 Update Italian language (#16527) 2020-01-10 16:19:52 -06:00
Giuliano Zaro 0391e5bcc7 Prevent Z misaligment on tool change (#16518) 2020-01-10 16:12:21 -06:00
thinkyhead d02a867424 [cron] Bump distribution date (2020-01-10) 2020-01-10 20:47:56 +00:00
Acenotass 2d820e6204 Update Russian language (#16522) 2020-01-10 13:06:02 -06:00
Tanguy Pruvot f9f7697b96 Fix Probe Offset XY edit items (et Français) (#16523) 2020-01-10 13:04:59 -06:00
InsanityAutomation 409d7378d9 Add Probe Offsets menu (#16444) 2020-01-10 00:47:38 -06:00
ellensp 669fe74096 Fix compile error w/out LCD (#16502) 2020-01-09 04:51:41 -06:00
Jamie 36d08f8ad3 Add ARC_SEGMENTS_PER_SEC for finer G2/G3 arcs (#16510) 2020-01-09 04:48:00 -06:00
Mehdi Beyk Mohamadi 8a7661df89 Correct ESP32 CPU speed in README (#16472) 2020-01-09 04:16:51 -06:00
Scott Lahteine 6e658a7c04 Code style and comment tweaks 2020-01-08 20:00:26 -06:00
Scott Lahteine 95046c9047 Extend SERIAL_CHAR to take multiple arguments 2020-01-08 18:36:47 -06:00
thisiskeithb 5beca89412 Add menu item Tune > Advance K (#16488) 2020-01-08 17:43:36 -06:00
Scott Lahteine 5ac9d9754e Update workflow skip condition 2020-01-08 17:40:53 -06:00
meponderR 5e7943f19f Fix LCD for Tevo Tornado (#16474) 2020-01-08 16:32:08 -06:00
Alejandro Aguilera 5a5e1d0401 Fix Change Filament menu item with runout (#16485) 2020-01-08 16:03:23 -06:00
dagorel a88b91b3ed Provide some missing Arduino macros (#16497) 2020-01-07 21:56:47 -06:00
Lino Barreca 5c4c052fd7 Fix SKR Pro BLTouch conflicting timers (#16499) 2020-01-07 21:54:26 -06:00
Vertabreaker d26c32375e Fix EEPROM array size bug (#16475) 2020-01-07 21:49:27 -06:00
ellensp 994c695862 Fix MKS_SGEN sanity check (#16501) 2020-01-07 21:47:45 -06:00
Scott Lahteine f154e94981 Move auto_build.py to 'vscode' folder 2020-01-07 19:38:15 -06:00
Tanguy Pruvot b7f8163291 Update U20 config to help UBL toggle (#16471) 2020-01-05 02:54:15 -06:00
ManuelMcLure 675295692b Fix unused var warning (#16467) 2020-01-05 02:52:38 -06:00
Tanguy Pruvot d1e55a2d1d Remove extra UBL map edit menu item (#16451) 2020-01-05 02:25:03 -06:00
Vertabreaker 5e1f0e5e90 Followup to EEPROM patch (#16470) 2020-01-05 02:19:50 -06:00
Tanguy Pruvot bdcccee203 Improve French language (UBL) (#16453) 2020-01-05 02:09:27 -06:00
Justin d70dad6807 Fix permyriad progress bar (#16460) 2020-01-05 02:08:24 -06:00
Acenotass 93e35880ce Update Russian language (#16461) 2020-01-05 02:04:28 -06:00
Jamie 9b970cf12f Add option to invert joystick axes (#16466) 2020-01-05 02:01:05 -06:00
Jamie 022b6b9067 Fix M115 cap with EXTRUDERS == 0 (#16459) 2020-01-05 01:54:30 -06:00
Jamie fc07b0ea30 Fix EEPROM error with EXTRUDERS == 0 (#16464) 2020-01-05 01:54:30 -06:00
Scott Lahteine a484adcb30 Update git helper usage 2020-01-05 01:54:30 -06:00
Scott Lahteine 31679640c0 Skip build tests on forks 2020-01-05 01:54:30 -06:00
Scott Lahteine 3469a0a1a0 Update maintainer funding links 2020-01-05 01:54:30 -06:00
Scott Lahteine 38c0f800d6 Action to check PRs 2020-01-05 01:54:30 -06:00
Scott Lahteine 57e37b6c24 Fix daily date bump action 2020-01-05 00:59:10 -06:00
Lino Barreca 07509febcd Fix serials available on SKR Pro 1.1 (#16439) 2020-01-03 21:01:42 -06:00
George Fu e593da1c23 Update and fix DGUS (#16317) 2020-01-03 21:00:44 -06:00
greppp 7f87a044cd Fix Ender-2 display pins, add BTN_ENC (#16349) 2020-01-03 20:44:16 -06:00
Vertabreaker b841b9bd01 Add example configs. Expand custom menu. (#16286)
- Anet E10
- Geeetech D200
- Geeetech M201
- JGAurora Magic
- MakerFarm Pegasus 12
2020-01-03 20:37:22 -06:00
George Fu ceeba58dc9 FYSETC F6 v1.4 board support (#16321) 2020-01-03 20:29:25 -06:00
yedey a49c6608c9 Fixed Creality CR-20 Pro configuration example (#16332) 2020-01-03 20:18:35 -06:00
thisiskeithb 9903bc8d36 Add EVNOVO (Artillery) Genius config (#16320) 2020-01-03 20:17:20 -06:00
Scott Lahteine aa4db785f2 MSG_WATCH => MSG_INFO_SCREEN 2020-01-03 19:50:55 -06:00
Scott Lahteine 00e27503ce Use a default monitor_speed of 250000 2020-01-03 19:50:55 -06:00
Scott Lahteine f7e3a5ad85 Temporary CI fix for STM32 2020-01-03 19:31:16 -06:00
Jason Smith 3cade6245e Fix MIN_PROBE_EDGE bug in default ABL G29 (#16367) 2020-01-03 17:46:26 -06:00
ellensp d7aee3b7b6 Pins debugging AVR serial pins (#16437) 2020-01-03 17:40:56 -06:00
thisiskeithb 64fdc4f24b BTT002: Add runout, PLR, and RGB pins (#16442) 2020-01-03 17:38:15 -06:00
Acenotass 295aa3d60d Update Russian language (#16440) 2020-01-03 17:35:08 -06:00
Scott Lahteine 1d0452c41e Standardize drivers.h values, add class indirection (#16448) 2020-01-03 17:11:36 -06:00
Tanguy Pruvot 96a5e64bb8 Improve JGAurora A1/A5S touch buttons (#16394) 2020-01-02 22:04:46 -06:00
Jason Smith 595e684658 Add Leapfrog Xeed 2015 support (#16400) 2020-01-02 22:04:13 -06:00
thisiskeithb 21dc07c40a Sidewinder X1 Config Updates (#16315) 2020-01-02 21:28:54 -06:00
Tanguy Pruvot cda363a15e Touch UI: Fix UBL mesh value editing (#16432) 2020-01-02 21:26:03 -06:00
Walt Sorensen 9f44452834 Enable MULTI_NOZZLE_DUPLICATION for BIBO (#16435) 2020-01-02 21:17:52 -06:00
ellensp 7a50dbc00d Add motherboard BIGTREE_SKR_V1.4_TURBO (#16374) 2020-01-02 21:15:34 -06:00
thisiskeithb 3162d378ff Add Ender-5 leadscrew README (#16424) 2020-01-02 20:41:50 -06:00
InsanityAutomation d129ac1b37 Z-offset edit precision based on value limits (#16425) 2020-01-02 20:40:40 -06:00
Tanguy Pruvot 1ea529b9c1 STM32F1: Fix misleading indent / nullptr on FSMC (#16431) 2020-01-02 20:19:07 -06:00
Acenotass 5ffabd56eb Update Russian language (#16426) 2020-01-02 20:17:08 -06:00
Dirk O. Kaar d0e1166cce Fix Visual Micro "Arduino IDE for Visual Studio" support (#16418) 2020-01-02 19:01:38 -06:00
Scott Lahteine 5b75a018b7 Misc patches preceding DGUS PR 2020-01-02 17:59:38 -06:00
randellhodges c75b560604 PWM pin not needed for Neopixel brightness / submenu (#16345) 2020-01-02 17:50:19 -06:00
Scott Lahteine a2cda631d9 Clean up trailing whitespace 2020-01-02 16:33:50 -06:00
Jason Smith a7b0b390cd Fix PrintrBoard build (ignore TMC libraries) (#16346)
(In future try to get Teensy processors better supported by `TMCStepper`.)
2020-01-01 22:14:14 -06:00
Jason Smith 9ff2d34bf8 Fix warnings in stepper.cpp (#16364) 2020-01-01 22:06:50 -06:00
Jason Smith 92ad973729 Fix some DOGM warnings (#16363) 2020-01-01 21:58:16 -06:00
rado79 0be8b22d3c Add FILAMENT_UNLOAD_PURGE_FEEDRATE (#16372) 2020-01-01 21:56:58 -06:00
Jason Smith 4e1f2f89f6 Refactor TMC-related macros and sanity checks (#16384) 2020-01-01 21:51:15 -06:00
Lino Barreca ac32ed74b4 Return from loop() on non-AVR boards (#16390) 2020-01-01 21:13:43 -06:00
swilkens 89f9902053 Disable PIDTEMPBED for SKR Mini E3 (#16396) 2020-01-01 20:59:14 -06:00
Alexander Gavrilenko c6f7ea9f22 MKS Robin ILI9328 TFT support (#16401) 2020-01-01 20:55:37 -06:00
Bob Kuhn 747b2b9bf4 Improve STEVAL_3DP001V1 and future STEVAL_* support (#16404) 2020-01-01 20:52:56 -06:00
Pascal de Bruijn 23bdc1556d Permit ENDSTOP_INTERRUPTS_FEATURE on more STM32 (#16412) 2020-01-01 20:41:35 -06:00
Dirk O. Kaar ec03e46ffa Improve Renkforce configs (#16417) 2020-01-01 20:40:01 -06:00
Giuliano Zaro 47edbd9220 Fix min limit for acc, feed, jerk (#16416) 2020-01-01 20:38:33 -06:00
Scott Lahteine 00c83e9ca6 Update comments re: NOZZLE_AS_PROBE 2020-01-01 19:41:23 -06:00
Scott Lahteine 832321f55d Fix games menu back item, titles 2019-12-31 16:06:16 -06:00
Scott Lahteine 941a09b6ac Fix Max7219 with 256 or more cels 2019-12-31 16:04:29 -06:00
Scott Lahteine 16787c94af Update mfpub for current MarlinDocumentation 2019-12-28 17:45:10 -06:00
Scott Lahteine 28d83b42e1 Split up HAL items 2019-12-25 19:25:05 -06:00
Scott Lahteine 23c5266076 Update README with status badge, etc. 2019-12-25 15:06:36 -06:00
InsanityAutomation 1c9ccce520 Add NOZZLE_AS_PROBE (no probe offsets) (#15929) 2019-12-24 00:03:08 -06:00
thisiskeithb 9c021158e5 Sync SKR E3 configs (#16301) 2019-12-23 18:16:11 -06:00
petrzjunior 254d352fca Update Czech language (#16305) 2019-12-23 18:14:51 -06:00
Luu Lac baa101253a MKS Robin 2 (STM32F407ZE) base support (#16270) 2019-12-22 18:16:08 -06:00
thisiskeithb a333bba725 Add Rumba32 support for PIO (#16202) 2019-12-22 18:08:52 -06:00
ferengi82 2230ef6e09 MKS SGen-L pins EEBF or EFBF scheme (#16296) 2019-12-22 17:11:49 -06:00
Luc 24eaf2d7e0 Some ESP32 patches (#16297) 2019-12-22 16:11:17 -06:00
randellhodges f4196d394b Flash leveling (for some STM32) (#16174) 2019-12-22 16:04:09 -06:00
randellhodges ebdf8b6b1a Fix STM32 flush of TX (used by UBL) (#16197) 2019-12-22 03:08:17 -06:00
FLYmaker 59f9bb2120 Add FLYBOARD (STM32F407ZG) (#16257) 2019-12-22 03:05:30 -06:00
thisiskeithb f339a39654 Add Ender-5 Pro config (#16221) 2019-12-21 20:02:40 -06:00
Luc a3d88aebed Add MRR_ESPA/_ESPE (ESP32) boards (#16238) 2019-12-21 18:58:00 -06:00
Jason Smith d5bc5547ee Step timing cleanup and rounding fix (#16258) 2019-12-21 18:36:25 -06:00
Tanguy Pruvot f8065da48f Reset runout.ran_out on resume (#16230) 2019-12-21 18:35:35 -06:00
Scott Lahteine 127fb9860c Don't test certain changes 2019-12-21 03:37:49 -06:00
thisiskeithb c5179cffb4 Add Tevo Nereus (w/ Robin Nano) config (#16207) 2019-12-21 03:24:40 -06:00
Jason Smith 0d8c81b2a6 Fix axis CS sanity check (#16271) 2019-12-20 22:05:42 -06:00
Markus Towara 856013cc0f Fix planner compile error (#16272) 2019-12-20 22:04:49 -06:00
randellhodges 0b6c2d893e Fix G34 with Z_DUAL_STEPPER_DRIVERS compile (#16274) 2019-12-20 22:03:37 -06:00
Vertabreaker b6d857f1d6 Improve Anet A6 config (#16280) 2019-12-20 21:59:33 -06:00
Jason Smith 2e235aff03 Fix HAL_STM32 + Arduino IDE SoftwareSerial conflict (#16266) 2019-12-20 19:14:27 -06:00
Scott Lahteine 87992f3669 Use Github Actions for CI, date bump (#16269) 2019-12-20 19:11:53 -06:00
Scott Lahteine 64ebec50dc Move pins debug condition 2019-12-20 10:19:41 -06:00
Vertabreaker e3b02757d3 Kossel Clear configuration (#16198) 2019-12-19 21:47:15 -06:00
Jeff Eberl 70325a6a0f Update test scripts to error on unknown (#16229) 2019-12-19 21:03:42 -06:00
Scott Lahteine d81de7f521 Tweak sanity checks 2019-12-19 21:02:14 -06:00
Scott Lahteine deff538909 Fix broken M100_dump_routine 2019-12-19 21:02:14 -06:00
Scott Lahteine a9a78f2831 Followup for step timing (#16128) 2019-12-19 19:55:37 -06:00
Scott Lahteine 10f7bbee32 Use MYSERIAL0 (not SerialUSB) for Malyan LCD 2019-12-19 19:53:06 -06:00
Scott Lahteine b49a0e39d5 HOME_USING_SPREADCYCLE is obsolete
Co-Authored-By: teemuatlut <teemu.mantykallio@live.fi>
2019-12-19 16:02:57 -06:00
Scott Lahteine 53f77dfadf Remove obsolete TMC2209 comment 2019-12-19 15:56:52 -06:00
Scott Lahteine 937dca4432 Followup to TMC2209 spreadcycle patch 2019-12-19 15:54:44 -06:00
BigTreeTech bbe0ffb2fa BigTreeTech SKR v1.4 support (#16236) 2019-12-19 02:41:35 -06:00
Jason Smith 1bad8f1b17 Improve pulse timing and step reliability (#16128) 2019-12-19 02:38:48 -06:00
Mario Costa 5f06f42ccd Spindle/Laser pins for RADDS (#16119) 2019-12-19 02:37:07 -06:00
elementfoundry e5edbf9d35 Allow TMC2209 to save/restore spreadCycle (#16153)
Co-Authored-By: teemuatlut <teemu.mantykallio@live.fi>
2019-12-19 02:23:54 -06:00
Scott Lahteine 865071a946 Tweak code formatting 2019-12-19 02:16:17 -06:00
salami738 329f5b4df9 Improve SKR mini E3 + Ender 3 settings (#16247) 2019-12-19 01:22:17 -06:00
Moshi Binyamini dcdaa2025f Sanity-check Z_STEPPER_AUTO_ALIGN coordinates (#16231) 2019-12-19 00:59:01 -06:00
Scott Lahteine 0400783444 Tweak G34, fix a declaration 2019-12-19 00:42:39 -06:00
Scott Lahteine 768a1d2713 [cron] Bump distribution date 2019-12-19 00:39:55 -06:00
Scott Lahteine 711fb26ae5 Move AutoBuildMarlin to its own repo 2019-12-17 19:35:38 -06:00
Scott Lahteine 7f15968ce7 Add dev-2.1.x to 'mfinfo' script 2019-12-16 03:33:22 -06:00
Scott Lahteine 262ff9584c [cron] Bump distribution date 2019-12-16 00:00:04 -06:00
Scott Lahteine af4c62b422 Update product links 2019-12-15 20:58:31 -06:00
Scott Lahteine 4a6f625f86 Tweak E180 config 2019-12-15 20:56:10 -06:00
Vertabreaker e0c71344ed Define more FAN pins for GT2560 (#16235) 2019-12-15 20:28:55 -06:00
chzj333 42a336f8bc Update BTT002 platform (fixing SD init) (#16217) 2019-12-15 12:24:54 -06:00
Tanguy Pruvot a0badf572e STM32 Touch UI timings, Longer onboard pullups (#16219) 2019-12-15 12:03:39 -06:00
thisiskeithb a358b72ec8 Add SKR Mini E3 + Zonestar LCD warning (#16214) 2019-12-15 12:02:20 -06:00
danym21 6e8dcba698 Fix G28 debug line, M569 calls (#16213) 2019-12-15 12:00:00 -06:00
Luc 9d6b2ebf50 Improve ESP32 HAL (EEPROM, watchdog) (#16228) 2019-12-15 11:39:39 -06:00
thisiskeithb dc8d8cb39c Fix MKS SGen-L SD detect pin (#16224) 2019-12-15 11:25:07 -06:00
Luu Lac 509e1ab053 TOUCH_MI_DEPLOY_XPOS fallback to X_MIN_POS (#16226) 2019-12-15 11:21:39 -06:00
Luu Lac e9dadacf7b Fix bad #ifdef (#16227) 2019-12-15 11:16:36 -06:00
Scott Lahteine 6a514a1e8e Move status screen defines 2019-12-12 22:20:03 -06:00
Scott Lahteine 1ea78cdd69 Improve A20M config 2019-12-12 22:18:04 -06:00
Scott Lahteine 303ddb862a Tweak some config names 2019-12-12 22:18:04 -06:00
Scott Lahteine f3d64b7115 Cardreader read/write open methods 2019-12-12 18:46:49 -06:00
Bo Herrmannsen 98382fcea5 Include Z in SCARA steps feedrate (#16193) 2019-12-12 17:13:49 -06:00
iain MacDonnell 629c039eed Update M503 MBL G29 report (#16199) 2019-12-12 16:54:54 -06:00
randellhodges 2a7f1091ce Fix compile error (macro substitution typo) (#16194) 2019-12-12 16:51:35 -06:00
Anders Sahlman 3d4aa015a8 Add MKS Robin Mini EEPROM defines (#16203) 2019-12-12 16:35:46 -06:00
Anders Sahlman 6b53431116 Flsun QQ-S example config (#16204) 2019-12-12 16:19:28 -06:00
Scott Lahteine e45c4d6aa3 Fix RAMBo CNC test 2019-12-12 16:12:17 -06:00
InsanityAutomation 7b512742f4 Tweak ExtUI Probeless Babystepping (#16177) 2019-12-12 15:51:56 -06:00
ManuelMcLure b065a60dd0 Onboard (always-on) pullups support (#16144) 2019-12-12 15:49:14 -06:00
Jeff Eberl ae3504594c Add a CI test for RAMBo + CNC (#16126) 2019-12-11 02:28:16 -06:00
thisiskeithb edc671edea Disable SD_CHECK_AND_RETRY in BTT E3 configs (#16143) 2019-12-11 02:22:35 -06:00
Tobias Schürg 50688f03fb Invert E dir of Geeetech A10 (#16149) 2019-12-11 02:19:59 -06:00
thisiskeithb 98814e1c47 MKS 12864 OLED pins for SGEN-L (#16188) 2019-12-11 02:18:21 -06:00
Tanguy Pruvot 23d1801022 Update BTT comments for USB/SD Composite (#16130) 2019-12-11 01:47:21 -06:00
André Kjellstrup c2342c3528 Use error message !! hints (#16145) 2019-12-11 01:46:11 -06:00
MangaValk 96cf556139 Fix multiple servos with STM32 (#16151) 2019-12-11 01:44:05 -06:00
MS1987 31fdaea269 Add MKS Robin Pro, MKS Robin Lite3 (#16163) 2019-12-11 00:23:47 -06:00
Scott Lahteine 1c48817a47 [cron] Bump distribution date 2019-12-11 00:00:04 -06:00
Scott Lahteine 0d52eaa875 Superscript 3 for mm3 2019-12-10 23:45:39 -06:00
Tanguy Pruvot 5ebef425ce Update french (objects, retract...) 2019-12-10 23:45:39 -06:00
Giuliano Zaro 5dfa152ba2 Update Italian language (#16147) 2019-12-10 23:38:14 -06:00
dagorel 1c4f672eae Formalize DAC percent strings (#16176) 2019-12-10 23:37:25 -06:00
Anders Sahlman 1bcd47e65f Correct MKS Robin Mini pins (#16178) 2019-12-10 23:32:11 -06:00
Antti Andreimann 1465fc0632 Fix controller and SD on Robin Nano (#16187) 2019-12-10 23:29:33 -06:00
Scott Lahteine 07a61057ba [cron] Bump distribution date 2019-12-10 00:11:19 -06:00
Alain Martel 39fcb5b5f8 Update 3DFabXYZ settings (#16139) 2019-12-07 18:10:28 -06:00
Scott Lahteine bb5717c5b3 [cron] Bump distribution date 2019-12-07 00:00:05 -06:00
Luu Lac f3155af444 Update AZSMZ LCD link (#16106) 2019-12-06 01:35:06 -06:00
Tanguy Pruvot ab61c09bff Improve touch buttons behavior (#16109) 2019-12-06 00:47:50 -06:00
thisiskeithb a087a653cd Wanhao D6 uses TINYBOY2 (#16117) 2019-12-05 20:52:20 -06:00
Antti Andreimann b65ab21733 Fix compile error with disabled PIDTEMP (#16108) 2019-12-05 20:51:41 -06:00
Jason Smith 37df0c1f22 Disable PRINTCOUNTER in SKR Mini E3 examples (#16110) 2019-12-05 20:49:06 -06:00
randellhodges 7f8ca85e69 STM32F1 Flash-based EEPROM fixes (#16118) 2019-12-05 20:48:11 -06:00
Scott Lahteine f64649933f [cron] Bump distribution date 2019-12-04 01:57:33 -06:00
ManuelMcLure 68da497f35 Remove debug_out.h '#pragma once' (again) (#16098) 2019-12-04 01:29:02 -06:00
thisiskeithb afd865d8dd Melzi has a 1284 (#16090) 2019-12-04 01:26:27 -06:00
Vertabreaker 0832a60db3 EXP3D Imprimante Multifonction (#16079) 2019-12-03 06:52:38 -06:00
ellensp cb4cd76086 Fix TMC_SW_MOSI for BTT_SKR_MINI_V1.1 (#16081) 2019-12-03 06:44:36 -06:00
Scott Lahteine 54f75ebbfe Rename platform, part 2 2019-12-03 06:42:49 -06:00
Scott Lahteine 454984376c Rename platform, part 1 2019-12-03 06:42:35 -06:00
Vertabreaker 0369929ffc Geeetech A10D & PI3A PRO configs (#16074) 2019-12-03 03:22:55 -06:00
Scott Lahteine 6134bff81b Expand environments in platformio.ini 2019-12-02 21:19:23 -06:00
Scott Lahteine b2c670fd94 [cron] Bump distribution date 2019-12-02 00:00:04 -06:00
Vertabreaker 530e92e653 Geeetech: Add E180, clean up A30 (#16072) 2019-12-01 22:41:28 -06:00
Scott Lahteine cb7817093f More serial macro cleanup 2019-12-01 22:23:36 -06:00
Scott Lahteine 9114a14eca Fix commas in EEPROM code 2019-12-01 21:59:58 -06:00
Vertabreaker 3874f4a097 Geeetech A30 / GTM32 support (#16071) 2019-12-01 21:25:45 -06:00
Luu Lac 01e4b0c067 Add Laser / Spindle bitmap for LCD (#16068) 2019-12-01 21:20:15 -06:00
Scott Lahteine bdd0517a5b Tweak test labels 2019-12-01 21:12:38 -06:00
Scott Lahteine 3dc49fd1c6 Split up hotend / bed drawing 2019-12-01 20:52:59 -06:00
Chris Pepper 849ac80e90 Fix megaatmega2560 test (#16069) 2019-12-02 02:08:25 +00:00
InsanityAutomation 7126a5e5a7 Add Host Prompt Notification Method (#15942) 2019-12-01 17:39:28 -06:00
ManuelMcLure c061656659 Use PSU powerup delay for all powerups (#16065) 2019-12-01 17:36:49 -06:00
Scott Lahteine 25a7ceabdb Fix missing step_current_down semicolons 2019-12-01 17:30:22 -06:00
Scott Lahteine 9b6d2da9bf Fix debug out macros 2019-12-01 17:28:18 -06:00
Felicia Hummel 709d037b8e Fysetc S6 PWM pins descriptions, fix servo timer (#16057) 2019-12-01 13:48:55 -06:00
Scott Lahteine 102c9595f2 Restore STM32F103RE environment 2019-12-01 13:42:00 -06:00
Scott Lahteine 4718b8ad02 Add _P variants to debug_out 2019-12-01 13:32:32 -06:00
Gustavo Alvarez efc3873149 Reorder F103RE environments (#16054) 2019-12-01 13:17:45 -06:00
Felicia Hummel 6c2438deae Fix PSU_POWERUP_DELAY compile error (#16064) 2019-12-01 12:55:28 -06:00
brian park b258cc85bf Mostly Printed SCARA (MPSCARA) support (#15573) 2019-11-30 08:57:34 -06:00
hammerhead2k2 19f840a9b5 BTT SKR 1.3 pins for Anet Full Graphics LCD (#16047) 2019-11-30 08:21:54 -06:00
Scott Lahteine 83a4e8559c Followup to "optimize common strings" 2019-11-30 08:18:23 -06:00
InsanityAutomation b24b0f385f Add ExtUI Flow Rate method (#16048) 2019-11-30 07:23:53 -06:00
Felicia Hummel 690ed531b6 Configurable PSU power-on delay (#16050) 2019-11-30 07:17:24 -06:00
Scott Lahteine 27943f9e31 Multiple axis TMC OTPW step down (#16044) 2019-11-30 06:59:44 -06:00
Scott Lahteine 1ee648ecd2 Followup to "optimize common strings" 2019-11-30 06:55:32 -06:00
InsanityAutomation 6b4166e67f Add Modix Big 60 configs (#16049) 2019-11-30 06:47:56 -06:00
Scott Lahteine 0138c0b55b [cron] Bump distribution date 2019-11-30 00:00:04 -06:00
Scott Lahteine 8431af2bff Add -fmerge-all-constants flag 2019-11-29 22:56:59 -06:00
Scott Lahteine f83bc0aa13 Optimize common strings
Saves 128 bytes in testing with `mftest mega 1 -y`
2019-11-29 22:54:42 -06:00
Scott Lahteine 4d8e7cdb30 Update SKR mini configs 2019-11-29 20:07:17 -06:00
Scott Lahteine 2d74c2042a Clean up whitespace, GTM32 pins 2019-11-29 20:05:32 -06:00
Chris Pepper e585c37d7d Fix #16038 2019-11-29 16:44:11 +00:00
Vertabreaker 1803f672f8 Pins for GTM32 board variants (#16020) 2019-11-29 07:12:49 -06:00
Vertabreaker 74e5199808 A20, A10T, A20T example configs (#16019) 2019-11-29 07:11:43 -06:00
BigTreeTech 441ee3e53f Add 'M114 E' to get E position (M114_DETAIL) (#16026) 2019-11-29 06:53:32 -06:00
Chris Pepper a63491e6eb Sanity check ADC pins and FAST_PWM_FAN with Servos (#16038) 2019-11-29 06:52:28 -06:00
Björn Wedi 3a88cfd992 Simplify platformio.ini with 'extends' (#16035)
- Add [env] with default settings
- Use 'extends' to shrink similar env entries
2019-11-29 05:05:46 -06:00
Bob 0f2ee414db Update thermistornames.h (#16027) 2019-11-29 02:06:11 -06:00
Scott Lahteine 0f14e0e978 [cron] Bump distribution date 2019-11-29 00:00:06 -06:00
Bob 5a98c83eef Use MAX6675 SPI pins for MAX31865 over SPI pins (#16024) 2019-11-27 01:45:03 -06:00
Jason Smith 752a1e76ab Float ABL mesh boundaries, no probe position rounding (#16018) 2019-11-27 01:29:25 -06:00
Jason Smith ce9a4afe95 Better ST7920 timings for FYSETC S6 (#16022) 2019-11-27 01:26:21 -06:00
thisiskeithb e0df35e6b5 Enable Filament Change on BTT SKR E3 boards (#16023) 2019-11-27 01:21:59 -06:00
Scott Lahteine 289c5dcccb Fix boot screen sanity check 2019-11-27 01:10:23 -06:00
Scott Lahteine 98f83dc756 Add comments to G29 2019-11-27 01:05:22 -06:00
Dirk O. Kaar 0550f30790 Renkforce configuration updates (#16017) 2019-11-26 20:22:17 -06:00
Scott Lahteine 077eeaa0f4 Fix mixing extruder feedrate (#15905) 2019-11-26 18:03:59 -06:00
Vertabreaker 12417d087b E2 pins for GT 2560 v3 (#16016) 2019-11-26 17:43:27 -06:00
timeburn a5a143f944 Include host_actions.h in G34 (#16014) 2019-11-26 16:38:41 -06:00
George Fu cf1e19d167 Fysetc S6 support (#15850) 2019-11-26 16:15:03 -06:00
Dirk O. Kaar 1cea1687f3 Renkforce RF100 (V1), V2, XL, and XL Plus (#15695) 2019-11-26 14:06:23 -06:00
thisiskeithb f786cc5145 Revert default BTT STM32F103 environment (#16006) 2019-11-26 04:28:13 -06:00
madmattco 049e8d5963 Add VAKE / VAKE403D support (#15631) 2019-11-26 04:00:59 -06:00
Heilig Benedek 993802c404 Fix Ender 2 display SCK, BTN_ENC pins (#15997) 2019-11-26 03:48:21 -06:00
haschtl ff6518c0a8 Add PID_FAN_SCALING option (#15585) 2019-11-26 03:34:43 -06:00
lukasmatena 8ccfdaca02 Add M220 B/R with PRUSA_MMU2 (#15739) 2019-11-26 03:34:18 -06:00
Bob e7519c50b6 Include MAX31865 library (#15969) 2019-11-26 03:23:51 -06:00
Chris Pepper c1aac3a0c9 Fix delta_mm.e with zero extruders (#15996) 2019-11-26 02:58:17 -06:00
Marcio T 43d0391d82 Fix Touch UI message strings (#16004) 2019-11-26 02:56:25 -06:00
Robby Candra fc9f8d27eb Fix Progress / Remaining display on DOGM (#16005) 2019-11-26 02:55:22 -06:00
Jason Smith d0282e5ba8 Allow slop in position_is_reachable for delta (#16003) 2019-11-26 02:53:28 -06:00
Scott Lahteine 1d150e41b6 Reduce MMU2 code, add test 2019-11-26 02:15:31 -06:00
Robby Candra 55595d444d Use LCD_WIDTH for indexed string (#15979) 2019-11-24 19:06:23 -06:00
InsanityAutomation 2142beb2e5 Fix UI compile error in UBL (#15981) 2019-11-24 17:04:19 -06:00
Jason Smith c497a491f4 Fix a PID_EXTRUSION_SCALING menu item (#15988) 2019-11-24 17:01:14 -06:00
Scott Lahteine b11551c767 Touch UI updates for Cocoa Press (#15986) 2019-11-24 06:08:05 -06:00
Scott Lahteine 441e822fb3 LULZBOT_TOUCH_UI => TOUCH_UI_FTDI_EVE 2019-11-23 17:04:17 -06:00
Scott Lahteine 47c19aa2b3 Clean up probe accessors 2019-11-23 17:02:04 -06:00
pfillion42 4a5dee6356 (SKR 1.3) Assign DIAG pins for homing dir (#15972) 2019-11-23 16:20:13 -06:00
Denis Semenov 0fcd1f4a49 Fix HAS_CLASSIC_E_JERK and related issues (#15968) 2019-11-23 15:56:07 -06:00
Chris Pepper 48e264e4e1 Update platformio.ini (env:LPC176x) (#15971) 2019-11-23 18:43:12 +00:00
Scott Lahteine 8f09d2e790 Add STM32F103RE_bigtree to Auto Build 2019-11-22 16:47:31 -06:00
Gustavo Alvarez b2a275891c Support RET6 in BTT SKR Mini (#15957) 2019-11-21 05:09:01 -06:00
Scott Lahteine bdd366b97c Update sensor -5 label 2019-11-21 04:57:57 -06:00
Scott Lahteine 20964ca7dc Bring configs up to date 2019-11-21 04:48:18 -06:00
Jason Smith b904ba0f29 Improve Delta probing / calibration (#15887) 2019-11-21 03:26:00 -06:00
Jason Smith 4ede13e36a Fix G29 for updated meshCount type (#15960) 2019-11-21 03:19:56 -06:00
Bob 751cd1f533 MAX31865 temperature sensor (#15930) 2019-11-21 03:15:10 -06:00
Scott Lahteine 4cffee3ca3 Drop obsolete setting 2019-11-20 23:57:13 -06:00
Scott Lahteine 47e4e5f1db Update thermocouple comments 2019-11-20 23:51:51 -06:00
Roman Moravčík 5681017d0c Update Slovak language (#15953) 2019-11-20 17:41:14 -06:00
BigTreeTech ab8b24fdba Power Loss Recovery with a UPS (#15943) 2019-11-20 17:40:21 -06:00
Scott Lahteine ab9f0f2c4f Followup to meshCount patch 2019-11-20 04:57:04 -06:00
InsanityAutomation e81b946f06 Better singlenozzle stored fan speed menus (#15921) 2019-11-20 00:14:56 -06:00
thisiskeithb 967f951789 SKR Mini E3 1.0/1.2 configs (#15941) 2019-11-20 00:12:57 -06:00
Daniel Negut a3229b30ec Add Zonestar/Anet LCD for SKR mini E3 (#15931) 2019-11-20 00:06:26 -06:00
InsanityAutomation 798f34abcd Float XY probe offset followup (probe edge) (#15928) 2019-11-19 23:29:52 -06:00
Giuliano Zaro 31e329f143 Update Italian language (#15925) 2019-11-19 23:27:53 -06:00
Jason Smith 9906e96ffb Allow UBL G29 J1 with PAUSE_BEFORE_DEPLOY_STOW (#15934) 2019-11-19 23:26:38 -06:00
Evgeny-SPB 7116a8645c G34 logic / typo fix (#15938) 2019-11-19 23:25:07 -06:00
Jason Smith 2dab109baa Update Anycubic Kossel config (#15935) 2019-11-19 23:23:25 -06:00
Giuliano Zaro aa89bb71f9 Fix MMU2 compile error (#15923) 2019-11-19 23:22:02 -06:00
TheAssassin 814d908a8a Ender-2 LCD on BTT SKR E3 (#15924) 2019-11-19 23:21:27 -06:00
InsanityAutomation 4d4e692c81 Match onMeshUpdate() index sign (#15920) 2019-11-19 23:16:43 -06:00
Luu Lac 4d9a5fef3b Update Vietnamese language (#15940) 2019-11-19 21:08:47 -06:00
swilkens e9bd6ef9fe TMCStepper 0.6.x is now Marlin-compatible (#15950) 2019-11-19 21:06:11 -06:00
Scott Lahteine 865055e07a [cron] Bump distribution date 2019-11-18 00:00:08 -06:00
Scott Lahteine 2bd6dc02d6 [cron] Bump distribution date 2019-11-17 00:00:06 -06:00
Robby Candra 40bbe58371 Use lcd_uint_t in lcd_put_u8str_ind_P (#15909) 2019-11-16 16:37:21 -06:00
Scott Lahteine d33ca3d058 Only TMCStepper 0.5.x is certified 2019-11-15 17:53:48 -06:00
Roxy-3D f19fa64e98 Eliminate multiple settings to extruder_duplication_enabled in G28
If the IDEX mode was previously set (via GCode or the LCD Panel) to a duplication mode...   It was lost after a G28 due to this redundant setting of 'extruder_duplication_enabled'. 

It is very important to the various use cases of IDEX machines that extruder_duplication_enabled is preserved across a G28.   The reason is this allows a person to use the LCD Panel to put the machine into a duplication mode, and then send a 'normal' part file to the printer and get two parts out of the process.
2019-11-15 15:42:01 -06:00
thisiskeithb 0f57818f2d Support 512K "RCT6" in BTT SKR Mini (#15890) 2019-11-15 02:51:26 -06:00
Scott Lahteine aa93e1f21a Update TMC_ADV examples 2019-11-15 02:15:10 -06:00
Scott Lahteine 27cb4db80e Reduced string storage using tokens (#15593) 2019-11-14 20:30:30 -06:00
Lino Barreca d1d143781e SKR-PRO: Fix FAN0 PWM speed with Heater2 (#15889) 2019-11-14 05:23:24 -06:00
Lino Barreca bd321d4b7c Don't compile STM32 SoftwareSerial unless STM32 (#15894) 2019-11-14 05:21:23 -06:00
Scott Lahteine ac2d7ab14c Fix timers.h include 2019-11-14 04:47:53 -06:00
Tanguy Pruvot 94e18ce324 STM32F1: Remove extra py imports (#15898) 2019-11-14 04:24:55 -06:00
Scott Lahteine a022defe06 [cron] Bump distribution date 2019-11-14 00:00:12 -06:00
Scott Lahteine 227951a4ec Tweak platformio.ini alignment 2019-11-13 04:29:23 -06:00
Scott Lahteine 3f4636e916 "nozzle_to_probe_offset" is obsolete 2019-11-13 03:07:54 -06:00
Scott Lahteine 602ca5dea6 No USE_M73_REMAINING_TIME without LCD_SET_PROGRESS_MANUALLY 2019-11-13 02:07:17 -06:00
Robby Candra fcfde7c2f5 Only assign CS/RX/TX on extra axes with SPI/UART (#15886) 2019-11-13 02:03:34 -06:00
Scott Lahteine a4709ba765 Store unscaled PID values in EEPROM (#15884) 2019-11-13 01:47:46 -06:00
Scott Lahteine 7e9c846ec3 Modify comment for unlimited E steppers 2019-11-13 01:45:50 -06:00
Jason Smith 9fd35c84ce SoftwareSerialM for SKR STM32F1 boards (#15875) 2019-11-12 22:16:54 -06:00
Chris Pepper 8e7d1004cf Update LPC176x platform version 2019-11-13 03:59:10 +00:00
Jamie 32028902c3 Use max feedrate for joystick motion (#15870) 2019-11-12 21:01:04 -06:00
Giuliano Zaro bb93ea1be4 [SAMD51] Activate ADCs oversampled 12bits (#15874) 2019-11-12 20:59:17 -06:00
Roman Moravčík e110f5abce M73 R : Set Remaining Time (#15549) 2019-11-12 19:36:54 -06:00
Lino Barreca ac71cdc265 New HardwareTimer for STM32 5.7.0 (#15655) 2019-11-12 19:23:02 -06:00
Chris Pepper 4762dfe797 Fix lpc u8g i2c (#15876) 2019-11-12 01:59:36 +00:00
Chris Pepper af61f37b65 Update lpc176x requirements (#15869) 2019-11-11 03:25:56 +00:00
ManuelMcLure b9703fdf36 Ensure TMC + LIN_ADVANCE pulse length (#15807) 2019-11-10 19:04:28 -06:00
Scott Lahteine 5e5045c4ee Touch UI finishing touches 2019-11-10 18:52:53 -06:00
Marcio Teixeira 5639b8ca20 Touch UI fixes for Cocoa Press (#15847) 2019-11-10 18:49:41 -06:00
danym21 28e1614c2e Add Sensorless Homing current (#15690) 2019-11-10 18:45:06 -06:00
Chris Pepper 86d0bc1af5 Update lpc176x framework version requirement (#15868) 2019-11-10 23:30:28 +00:00
LinFor 48b7a1e66e Allow non-zero "fan off" PWM value (#15709) 2019-11-10 16:33:56 -06:00
Jason Smith 770adcfa15 Raise Z before homing X/Y on unknown Z (#15859) 2019-11-10 16:21:20 -06:00
Scott Lahteine 624336f453 Fix up Megatronics 3.2 test 2019-11-10 16:19:57 -06:00
ellensp 7b29c60c46 Fix compile with chamber enabled (#15862) 2019-11-10 16:15:08 -06:00
Scott Lahteine 534f2d69c1 [cron] Bump distribution date 2019-11-10 00:00:04 -06:00
Jademalo 37874a6472 Fix E0_SERIAL_RX_PIN typo (#15841) 2019-11-09 22:51:20 -06:00
Marcelo Cerri b9d351899a Update SKR mini E3 1.2 Filament Runout pin (#15843) 2019-11-09 22:49:33 -06:00
Scott Lahteine 7010f92c4b Board-based LCD delays 2019-11-09 22:33:38 -06:00
Scott Lahteine 6e0bcb80a2 Tweak mega tests 2019-11-09 22:33:38 -06:00
Ivan Kravets 4ff708cb3a STM32 PIO: Override default LD Script using LINKFLAGS build scope (#15853) 2019-11-09 21:34:12 -06:00
Scott Lahteine 9ca25118d0 Whitespace cleanup 2019-11-09 21:17:52 -06:00
Jason Smith b3f81eead5 Fix/improve TURBO_BACK_MENU_ITEM (#15856) 2019-11-09 19:27:30 -06:00
Scott Lahteine 776632c503 Add and apply REPEAT macro (#15829) 2019-11-09 17:59:04 -06:00
Scott Lahteine 8061836e74 Fix Lulzbot tag 30: "Heaters Off" 2019-11-08 03:57:34 -06:00
Scott Lahteine 249f600ceb [cron] Bump distribution date 2019-11-08 00:00:03 -06:00
Marvin Sinister 8d157a4520 Fix MKS MINI12864 on SKR 1.3 (#15836) 2019-11-07 19:39:08 -06:00
Luu Lac ed6bbe012b Fix incomplete 'Homing XYZ' screen draw (#15830) 2019-11-07 19:14:02 -06:00
AnHardt 4db68d704f Update Display Throttling (#15837) 2019-11-07 19:04:19 -06:00
Scott Lahteine bb5b1e19b0 Function-style stepper macros 2019-11-07 17:14:36 -06:00
thisiskeithb 47805e18f8 Makefile catch-up (#15823) 2019-11-07 02:14:40 -06:00
Scott Lahteine 0be9fdb455 Move single-use to lambdas 2019-11-07 00:28:33 -06:00
Scott Lahteine 84ce3a6bea LCD corner screen handler lambda 2019-11-07 00:24:16 -06:00
Scott Lahteine 711703dcd1 [cron] Bump distribution date 2019-11-07 00:00:06 -06:00
LinFor a84e3d1b80 Use native ADC resolution where possible (#15719) 2019-11-06 17:49:17 -06:00
Miroslav Šustek 9201197878 Fix SKR E3 board BLTOUCH + SPEAKER timer conflict (#15781) 2019-11-06 17:34:29 -06:00
Jason Smith 814a2eaf8f Allow TMC baud rate override (#15773) 2019-11-06 17:08:12 -06:00
teemuatlut d9b0b964be Fix TMC2208 HW Serial constructor (#15782) 2019-11-06 16:57:48 -06:00
Tanguy Pruvot d13573c9cd STM32F1: restore latest ststm32 version (#15776) 2019-11-06 16:56:35 -06:00
Axel 786617e375 Fix RAMPS + VIKI i2c (#15811) 2019-11-06 16:52:28 -06:00
Scott Lahteine e6dfc991ae Patch tabs, heater led tests 2019-11-06 16:28:36 -06:00
Scott Lahteine a89f4703df Tweak permissions 2019-11-06 16:10:14 -06:00
Roman Moravčík 41b5d720e2 Fix filament Change heading on LCD (#15783) 2019-11-06 15:58:06 -06:00
Luu Lac 4ee3502c8f Fix "confused intellisense" (#15817) 2019-11-06 15:54:09 -06:00
Scott Lahteine f5b5b9e8ec Bring filament menu up to speed 2019-11-05 17:16:12 -06:00
ellensp f088c6a850 Add MKS_GEN_L_V2 controller support (#15793) 2019-11-04 16:31:27 -06:00
aleknest cf87d3c700 More compatible uint8_t for Experimental i2c Bus buffer (#15788) 2019-11-04 16:28:16 -06:00
Scott Lahteine e9805a0bcb Go to previous menu on object cancel 2019-11-04 16:13:10 -06:00
Scott Lahteine 51fd226a4d Unconfuse intellisense 2019-11-04 15:40:56 -06:00
Scott Lahteine d80ef43c19 Followup to es int patch 2019-11-04 15:40:45 -06:00
Giuliano Zaro 35cd545106 Use prior endstop pin-to-interrupt macros (#15771) 2019-11-04 15:24:41 -06:00
Jason Smith 1fe0646d25 Use modified SoftwareSerialM which works with SKR Pro (#15796) 2019-11-04 15:17:42 -06:00
Scott Lahteine 328ddda654 Clean up whitespace 2019-11-04 13:23:26 -06:00
Scott Lahteine 55991962be Patch extra axis MS pins for debugging 2019-11-04 12:28:10 -06:00
Chris Pepper b9116d4050 LPC176x Framework update (#15722)
Changes required for compatibility with framework-arduino-lpc176x 0.2.0
2019-11-03 02:34:09 +00:00
Scott Lahteine 15f94e5ee5 Add NUL_STR global 2019-11-02 07:31:07 -05:00
Scott Lahteine ea3217cd46 Move 'draw' methods into Menu Item classes (#15760) 2019-11-02 07:28:20 -05:00
ManuelMcLure 76b861d759 Fix kill screen with null string (#15747) 2019-11-02 07:13:42 -05:00
Robby Candra 7360e9343a Minor DOGM status screen fix (#15746) 2019-11-02 07:04:31 -05:00
Robby Candra bdb452ed81 Fix missing % on DOGM Status Screen (#15748) 2019-11-02 07:01:50 -05:00
Giuliano Zaro 65ef774e8d Fix mega Port J endstop interrupts (#15758) 2019-11-02 06:59:38 -05:00
Scott Lahteine a920b10483 Fix true/false redefined warnings 2019-11-02 06:04:28 -05:00
Scott Lahteine ed8f1ca9cf Revert Cortex delay for now 2019-11-02 04:12:18 -05:00
Scott Lahteine ca6d00b862 Save some string flash 2019-11-02 00:48:05 -05:00
Scott Lahteine 23d21dd81c Tweak lambdas 2019-11-02 00:05:23 -05:00
Scott Lahteine a7d7f36871 [cron] Bump distribution date 2019-11-02 00:00:05 -05:00
Scott Lahteine a5df89eef7 Add HAL_IWDG_MODULE_ENABLED to generic F4/F7 2019-11-01 22:08:33 -05:00
Scott Lahteine 93db4f4535 Tweak backtrace.cpp include 2019-11-01 22:08:33 -05:00
Scott Lahteine f0d952d33a Cortex M3-M7 can use DWT->CYCCNT (#15762)
Suggested by Alex Kenis at https://youtu.be/ZfyPcdhQnAA?t=502
2019-11-01 22:07:51 -05:00
Scott Lahteine ad28da7eb4 Patch ABL G29 loop
Followup to e3ddf6e81a
2019-11-01 15:39:05 -05:00
Scott Lahteine 288af0ddf6 Whitespace 2019-11-01 15:39:05 -05:00
Scott Lahteine e7d9db284e Followup to M240 patch 2019-10-31 17:27:19 -05:00
Raúl Lázaro Sánchez 7c60853219 Fix blocking delay in Photo G-code M240 (#15728) 2019-10-31 17:14:11 -05:00
The-Force c6f694a247 Power Loss Recovery for volumetric extrusion (#15734) 2019-10-31 14:09:37 -05:00
Scott Lahteine 4e6e02bc3e Include pause.h for M701-702 2019-10-31 13:18:50 -05:00
Scott Lahteine e3ddf6e81a Fix meshCount signed-ness 2019-10-31 13:18:50 -05:00
Scott Lahteine 899e0fcdbb [cron] Bump distribution date 2019-10-31 00:00:07 -05:00
Scott Lahteine 35b1149d96 Patch es int tests for Arduino 1.8.10 2019-10-30 15:52:02 -05:00
Scott Lahteine c80eda073f M119 => report_states 2019-10-30 15:24:10 -05:00
LinFor 7d24f152d8 Fix a typo breaking the build (#15726) 2019-10-30 15:10:08 -05:00
Scott Lahteine 61225e685d Abort SD followup 2019-10-29 17:04:49 -05:00
Scott Lahteine d5c1c72a76 Tweak CW/CCW bitmaps 2019-10-29 16:53:07 -05:00
Scott Lahteine aaf018e5a0 Language changes 2019-10-29 16:20:35 -05:00
Scott Lahteine 583fc4ee2a Move abortSDPrinting with others 2019-10-29 16:00:28 -05:00
Scott Lahteine 55c3929359 Group AVRx4 boards together 2019-10-29 15:59:25 -05:00
Scott Lahteine c5713b5e98 Clean Endstops::event_handler 2019-10-29 15:58:26 -05:00
Scott Lahteine be498d6280 [cron] Bump distribution date 2019-10-29 00:00:05 -05:00
Aurawin b09b469dd5 Add BIQU TANGO V1 support (#15682) 2019-10-28 18:21:59 -05:00
studiodyne 319e2b5760 Fan menus fix. FR cosmetic change. (#15714) 2019-10-28 16:49:31 -05:00
studiodyne f139642e0f XY/Z Babystep Multiplicators (#15691) 2019-10-28 16:44:17 -05:00
thisiskeithb abb44cf564 No boot-screen on Sidewinder X1 TFT28 (#15706) 2019-10-28 16:33:44 -05:00
Scott Lahteine ade76e53de Fix A10M/A20M mixer display
Co-Authored-By: 3Dangel <3dangel@users.noreply.github.com>
2019-10-28 16:26:54 -05:00
InsanityAutomation cc4d3a215e Fix ExtUI UBL method calls (#15704) 2019-10-28 15:50:27 -05:00
InsanityAutomation d4f5821cd6 Fix 3-point sanity check (#15696) 2019-10-28 15:46:59 -05:00
Scott Lahteine 9aff30da0c Confirm object cancellation (#15660) 2019-10-27 19:50:21 -05:00
Scott Lahteine 78899fc241 Followup to E Total 2019-10-27 18:40:33 -05:00
Scott Lahteine 7a342ecb93 Show Total E during print (#15703) 2019-10-27 17:49:27 -05:00
Scott Lahteine 0f8c3ed29a Prevent extra "too long/cold" errors 2019-10-27 17:40:07 -05:00
Scott Lahteine 9720d21301 Clean up trailing whitespace 2019-10-27 15:32:29 -05:00
Scott Lahteine c2cec563dc Followup to Cancel Objects 2019-10-27 15:26:24 -05:00
Scott Lahteine 9e8021d6a4 Fix pins debug of CS/MS pins 2019-10-26 18:46:39 -05:00
Scott Lahteine e7b22a0ed4 Use 5.4.3 for STM32F407VE_black 2019-10-26 16:50:12 -05:00
Scott Lahteine ab0fe1a7dd Tweak G29 faux point 2019-10-26 14:41:54 -05:00
Scott Lahteine 4fc000fe90 Disable broken platforms for now 2019-10-26 14:41:54 -05:00
Scott Lahteine e0f68cda1e Use ststm32 5.6.0 for now 2019-10-26 14:41:54 -05:00
thisiskeithb 5d4e309dd3 CR-10/S/Mini & Ender-5 default TMC RMS currents (#15666) 2019-10-26 13:13:08 -05:00
Giuliano Zaro 6fd13879ae Update Italian language (#15676) 2019-10-26 12:54:59 -05:00
Scott Lahteine 600429a067 Cancel Objects followup 2019-10-25 20:08:45 -05:00
Roman Moravčík e690471739 Print startup message after print statistics are loaded (#15664) 2019-10-25 19:46:56 -05:00
Scott Lahteine 732bf89878 Get 'cancelable' for gcode.cpp 2019-10-25 19:38:23 -05:00
Tanguy Pruvot c58cc113dd MKS Robin: restore the TFT v2.0 support (ST7789V) (#15675) 2019-10-25 19:30:43 -05:00
Scott Lahteine 014b739bac Fix M486 int parameters 2019-10-25 19:19:33 -05:00
Scott Lahteine f8ad15fde8 Rename BOARD_STM32F4 to fix use with MB() 2019-10-25 18:12:29 -05:00
J.C. Nelson 167ecd8620 Chitu board support (e.g., Tronxy X5s) (#15493) 2019-10-25 17:11:25 -05:00
Scott Lahteine 408751d5e0 Fix CANCEL_OBJECTS missing include 2019-10-25 15:45:55 -05:00
Evgeny Zyatkov 12a244f24f Fix #endif typo (#15661) 2019-10-25 12:27:23 -05:00
Scott Lahteine f12285015a [cron] Bump distribution date 2019-10-25 12:18:21 -05:00
Scott Lahteine 93f0012959 Cancel Objects - As seen at ERRF2019 (#15590) 2019-10-24 15:35:40 -05:00
Marcio T f6a799c7b3 Allow compile under Windows Subsystem for Linux (#15606) 2019-10-24 14:57:20 -05:00
InsanityAutomation 82fb046013 Allow suicide pin inverting (#15586) 2019-10-24 14:07:28 -05:00
Scott Lahteine 2a7e1d459f Option to rotate Percent, (E)lapsed, and (R)emaining time (#15578) 2019-10-24 14:00:59 -05:00
Scott Lahteine 464d98d178 Short time prefixes, no percent prefix 2019-10-24 14:00:32 -05:00
Scott Lahteine ccf61eca84 Fix diplay elaspsed 2019-10-24 13:48:27 -05:00
Scott Lahteine ff4301a422 Update status_screen_DOGM.cpp 2019-10-24 13:42:02 -05:00
Scott Lahteine 326d5b84e7 Update status_screen_DOGM.cpp 2019-10-24 13:39:32 -05:00
Scott Lahteine 5edd5d1e1f Clean up 2019-10-24 13:38:39 -05:00
Jacob Jordan 9895e6d766 Only use slow homing speed where applicable (#15640) 2019-10-24 13:14:45 -05:00
InsanityAutomation b3d7d33faf Fix CUSTOM_VERSION_FILE has_include (#15635) 2019-10-24 13:07:29 -05:00
Robby Candra cf8541a7a7 Fix G92.9 (thus PLR Z position) (#15625) 2019-10-24 13:05:50 -05:00
Scott Lahteine cd3ec5a77b Add error-check to M422 2019-10-24 12:59:50 -05:00
Tanguy Pruvot 0737b1aecf env: SKRmini can't use STLink (#15645) 2019-10-24 12:30:10 -05:00
Timm e02b06672c Increase MMU2 serial buffer size with USB serial (#15646) 2019-10-24 12:28:41 -05:00
Giuliano Zaro 0f5d457252 Allow redundant temp sensor with SINGLENOZZLE (#15650) 2019-10-24 12:23:06 -05:00
Daniel Callander 475041656c Reset position_shift on G28 (#15653) 2019-10-24 12:20:09 -05:00
Bo Herrmannsen 04a55c9188 Fix LPC176x build script for Python 3 (#15637)
Co-Authored-By: Sven Holzmann <powerprobot@users.noreply.github.com>
2019-10-24 12:16:02 -05:00
milkpirate 6bcd4eb12d Fix M420 (UBL) undefined variables (#15621) 2019-10-24 12:07:17 -05:00
Luu Lac efeb6efe77 Set pullup on BTN_BACK pin (#15654) 2019-10-24 12:04:45 -05:00
Evgeny-SPB b7db91c46d Fix apply_rotation function (#15636) 2019-10-24 12:02:27 -05:00
Luu Lac 0b0b822671 Add note: TMC2209 requires stealthChop for Sensorless Homing (#15658) 2019-10-24 11:58:37 -05:00
Scott Lahteine 77f500b857 Fix LPC1769 test 2019-10-24 11:55:48 -05:00
Roxy-3D 3642a12fc1 fix parameter order of mark, marked and unmark
The parameter order was wrong on mark(), marked() and unmark().    

This was breaking the G26 Mesh Validation algorithm.
2019-10-23 11:34:24 -05:00
Scott Lahteine af214ff121 Fix up PSU_CONTROL checks 2019-10-22 16:16:12 -05:00
Scott Lahteine 62b875f918 Fix PLR condition saving retract 2019-10-22 16:16:12 -05:00
Robby Candra 2c42526763 FIx Estimation String Pos 2019-10-22 10:02:27 +07:00
Robby Candra d64ab63026 Fix Estimation String Macro 2019-10-22 08:16:29 +07:00
Scott Lahteine f00b48f9a8 Expand encoder value range 2019-10-21 18:56:24 -05:00
Scott Lahteine 160c8be191 Fix BABYSTEP_DISPLAY_TOTAL output 2019-10-21 13:53:19 -05:00
Scott Lahteine 7aaa8bc8bd Bring WDi3 example up to date 2019-10-21 13:33:40 -05:00
Robby Candra 52a8bbefcf Make sure estimate time = 0 not displayed 2019-10-20 23:44:05 +07:00
Robby Candra 6241bcf0c8 Fix Progress at the end of print. 2019-10-20 06:06:48 +07:00
Evgeny Zyatkov 9470554f63 Fix DUE HAL serial defines (#15594) 2019-10-19 12:30:38 -05:00
Robby Candra f368c14a61 Fix Probe Manually Grid (#15598) 2019-10-19 12:29:50 -05:00
Scott Lahteine f2ce4a25a3 Fix host_response_handler debug 2019-10-18 16:47:13 -05:00
Chris Pepper 11f1392026 Fix Python3 (Windows) compatibility (#15597) 2019-10-18 21:15:26 +01:00
Scott Lahteine 725ec68faa [cron] Bump distribution date 2019-10-18 00:00:04 -05:00
Robby Candra 16ae9ee88b Update Configuration_adv 2019-10-17 05:37:22 +07:00
Robby Candra 9b88c3e79b DOGM Progress Display, option to disable display rotation 2019-10-17 05:26:09 +07:00
Scott Lahteine 0652f19673 Fix M420 for moved probe methods 2019-10-16 15:56:34 -05:00
Scott Lahteine bb381e22b2 Fix left-shift warning 2019-10-16 15:42:46 -05:00
Bo Herrmannsen 0d7736d663 Enable M191 (#15531) 2019-10-16 15:02:37 -05:00
Antti Andreimann 40de135d4d Fix CUSTOM_USER_MENU_TITLE non-translated string (#15575) 2019-10-16 13:53:12 -05:00
Francois Rainville dd0c5de4c7 Provide LONG_FILENAME_LENGTH for headers (#15582) 2019-10-16 13:51:18 -05:00
Jason Smith 832cb7e1ac Z_STEPPER_AUTO_ALIGN — To align with Z stepper points (#15195) 2019-10-16 13:39:58 -05:00
Robby Candra 7af99d03d3 Don't show prefix if no elapsed time 2019-10-16 16:25:52 +07:00
Robby Candra bf850827f7 Fix Progress Display 2019-10-16 16:18:20 +07:00
Scott Lahteine e0e406dbcc [cron] Bump distribution date 2019-10-16 00:00:03 -05:00
InsanityAutomation b2eda1af2f Fix typo in G34 configuration (#15572) 2019-10-15 17:22:13 -05:00
Scott Lahteine 0ff57c640c Fix compile warning 2019-10-15 17:13:07 -05:00
Scott Lahteine 3949d246df Fix ESP32 name conflict 2019-10-15 17:13:07 -05:00
Scott Lahteine b7b303f4bf Spindle/Laser power in planner blocks (#14437) 2019-10-15 16:10:20 -05:00
Jason Smith 53abfdc2c3 Fix BLTOUCH and FAN PWM conflicts on SKR E3 boards (#15547) 2019-10-15 14:18:46 -05:00
Slawomir Ciunczyk 8668571bee Update Polish language (#15569) 2019-10-15 13:36:17 -05:00
Scott Lahteine faacfe13c2 Tweak M105 layout 2019-10-15 13:35:13 -05:00
Antti Andreimann d47f29bd4c Give a dummy response to M105 with zero thermistors (#15568) 2019-10-15 13:30:52 -05:00
Piotr fe4c69b64a Poll *all* enabled endstop pins (#15525) 2019-10-15 13:28:04 -05:00
Tanguy Pruvot 93097af0ed U20: update config, ts, serial, jerk, limited edit values... (#15524) 2019-10-15 12:35:53 -05:00
Slawomir Ciunczyk 99f983d066 Update Polish language (#15541) 2019-10-15 12:34:18 -05:00
InsanityAutomation 0074d63962 Vendor version override (#14189)
Co-Authored-By: InsanityAutomation <insanityautomation@users.noreply.github.com>
2019-10-15 12:32:44 -05:00
Scott Lahteine 7622973a31 Fix elapsed time overflow warning 2019-10-15 11:47:24 -05:00
Scott Lahteine d57a668097 Update Spanish Translation (#15556) 2019-10-15 11:38:57 -05:00
Markus Towara 437978d349 Bring SPI_SENSORLESS code up to date (#15560) 2019-10-15 11:34:45 -05:00
Tanguy Pruvot a988f9304d reduce the required size with uint16_t modifiers 2019-10-14 20:11:59 +02:00
Tanguy Pruvot 21867c7fef elapsed time overflow warning fix
tried to fix it with snprintf in libs/duration_t.h but its worst... :/
2019-10-14 20:00:59 +02:00
sL1pKn07 d37bd33c31 Update Spanish Translation 2019-10-14 16:02:54 +02:00
Roman Moravčík b4f82d1081 Update Slovak language (#15527) 2019-10-13 17:35:38 -05:00
Tanguy Pruvot f06602ff7e Fix MKS Robin python script (for Travis CI) (#15523) 2019-10-13 17:34:31 -05:00
Tanguy Pruvot ee20f21a24 Fix undefined max in multi-language (#15521) 2019-10-13 18:31:28 -04:00
Giuliano Zaro 7714152013 Update Italian language (#15533) 2019-10-13 17:28:03 -05:00
Bo Herrmannsen 5ad9257df4 Fix DUE HAL serial defines (#15536) 2019-10-13 17:06:15 -05:00
Krystian Booker 62aa137548 Fixed pid_autotune_menu made pid_label accessible (#15551) 2019-10-13 16:46:06 -05:00
Roxy-3D 37550e9d98 Allow 3-digit LCD Display of value
The LCD Display shows 3 digits of precision, not 4.   
So change the bounding value to something more rational.
2019-10-13 14:34:51 -05:00
Roxy-3D 05eed72b69 Allow LCD Menu to adjust Junction Deviation lower
Allow LCD Menu to adjust Junction Deviation lower than .01.   Some machines currently have a JUNCTION_DEVIATION_MM value as low as .005 mm.     In the case of non-Linear-Advance machines...   The upper limit is raised to .5 mm.

Probably more thought needs to be given to the Linear Advance case.   It maybe it doesn't need a special case and should just use the same bounds as the non-Linear Advance case.
2019-10-12 17:36:43 -05:00
Gustavo Alvarez df09532a9c Reassign FIL_RUNOUT_PIN for ReARM boards (#15519)
Reassign FIL_RUNOUT_PIN from P1_18 to P1_19

P1_18 is connected to a buffer in order to output 5V making it unsuitable for input.
2019-10-12 21:02:20 +01:00
Roxy-3D 59378db7de Eliminate clutter in Formbot T-Rex 3 Configuration.h file
The extra clutter was making the Junction Deviation patch script calculate the wrong value.
(The script wasn't smart enough to see the extra lines were commented out and used the wrong values in the calculation.)

All fixed now with a JUNCTION_DEVIATION_MM calculated at .017
2019-10-11 17:11:24 -05:00
Roxy-3D c8e348731f Correct Junction Deviation value for Formbot Raptors
Re-apply the formula .4 * V^2 / Default_Acceleration to work correctly in Raptor configuration.h file.
(The problem is there are multiple XJerk and YJerk values declared based on the step sticks used on the printer.)
This change should provide correct values for all setups.
2019-10-11 16:52:47 -05:00
Roxy-3D 7a1fa2177c Eliminate multiple DEFAULT_ACCELERATION declarations.
Re-calculate and fix the Junction Deviation value using correct DEFAULT_ACCELERATION number.
2019-10-11 16:31:24 -05:00
Haxk20 1df90aaf0e Followup to num2str update (#15518) 2019-10-11 08:45:15 -05:00
Matthew Piercey ac8083588b Add config for Wanhao Duplicator i3 v2.1 2019-10-11 00:59:58 -05:00
Robby Candra e79666a82b Followup to "Fix G2/G3 rounding" (#15510) 2019-10-10 21:16:37 -05:00
LinFor b20d5a7cc6 Estimate Remaining Time (graphical display) (#15497) 2019-10-10 21:03:33 -05:00
Scott Lahteine 5641adb01b Clean up stray tabs 2019-10-10 20:16:16 -05:00
Ed Williams d8aeeb8ff6 Fix G2/G3 rounding error (#15507) 2019-10-10 19:50:08 -05:00
Roxy-3D 2cf35267c4 Set Junction Deviation value from Jerk and Default Acceleration (#15509)
Formula: `0.4 * sq(min(xjerk, yjerk)) / (default accel)`
2019-10-10 19:44:15 -05:00
Robby Candra 6f60838736 Fix PAUSE_MODE_CHANGE_FILAMENT menu item (#15501) 2019-10-10 19:39:32 -05:00
Robby Candra ac466ecf74 Change Junction Deviation to Classic Jerk (#15505) 2019-10-10 19:31:59 -05:00
Scott Lahteine 3664beec29 Don't refresh on status line changes 2019-10-10 19:29:17 -05:00
Scott Lahteine 13cf417a98 [cron] Bump distribution date 2019-10-10 00:00:04 -05:00
Scott Lahteine 541a9f2b85 Defer test of Lulzbot UI for now 2019-10-09 23:39:22 -05:00
ANMay-ru b119c14017 Clean up LCD print, align (#15498) 2019-10-09 20:41:44 -05:00
Jason Smith 46763efb75 Fix tool-change move with hotend offset (#15491) 2019-10-09 19:48:00 -05:00
Marcio Teixeira 6a865a6146 Multi-language support (#15453) 2019-10-09 19:46:10 -05:00
Marcio Teixeira dc14d4a13c Improvements and fixes to Lulzbot UI (#15490) 2019-10-09 19:44:49 -05:00
Scott Lahteine e6055dce76 Followup to position refactor 2019-10-08 22:08:05 -05:00
Scott Lahteine b4d48fdc91 Followup to #15481 2019-10-08 21:38:02 -05:00
Scott Lahteine af80653f3f Always report all PIDs in M503
Fix #14474
2019-10-08 21:07:19 -05:00
Scott Lahteine a525cc06c1 Add ARC_SUPPORT to DUE tests 2019-10-08 20:46:01 -05:00
Scott Lahteine 914605c89c gcc is forgiving of stray ; 2019-10-08 20:36:39 -05:00
Scott Lahteine 89490171ef Use "concatenatable" language codes 2019-10-08 20:17:23 -05:00
Scott Lahteine c0005e939c Enable junction deviation by default (#15481) 2019-10-08 19:42:18 -05:00
Scott Lahteine 1df6c7a46c Work around a compiler bug
See #15478
2019-10-08 19:27:03 -05:00
Scott Lahteine 5becda25c5 Followup to E renumbering 2019-10-08 17:37:17 -05:00
Scott Lahteine cb1cb72c76 Fix Move Z menu item 2019-10-08 17:24:40 -05:00
Luu Lac e34aa1ff8f Add A8, A8 Plus, A6 logos to configs (#15489)
Co-Authored-By: Leo <leo@nutz.de>
2019-10-08 15:33:24 -05:00
LinFor 58f81f8e7e Followup to progress override (#15488) 2019-10-08 15:24:14 -05:00
Scott Lahteine d45ab47139 [cron] Bump distribution date 2019-10-08 14:33:57 -05:00
Scott Lahteine 9dcccc11ba Fix extra condition 2019-10-07 22:36:49 -05:00
Scott Lahteine cc822c1a05 Use lambdas in menus, where possible (#15452) 2019-10-07 19:44:33 -05:00
Scott Lahteine cd791f1cba Move long tests to the end 2019-10-07 19:41:15 -05:00
Scott Lahteine 59508edf64 Suppress data[] array warning 2019-10-07 19:32:23 -05:00
Scott Lahteine e84389c976 Fix G2/G3 workspace plane parameters (#15475) 2019-10-07 17:09:20 -05:00
LinFor 19b7be067c Allow M73 to override SD position (#15449) 2019-10-07 16:38:58 -05:00
chzj333 d04561805b Support for BTT SKR Mini E3 v1.2 (#15476) 2019-10-07 15:45:11 -05:00
InsanityAutomation 71526fa5ce Fix ExtUI onMeshUpdate event (#15477) 2019-10-07 15:39:52 -05:00
Scott Lahteine 56595a4c9c Improve G2/G3 precision
See https://github.com/MarlinFirmware/Marlin/issues/14745#issuecomment-538781253
2019-10-07 00:03:17 -05:00
Scott Lahteine 211ff67440 Patch blocking and manual moves 2019-10-06 23:58:19 -05:00
Tanguy Pruvot c6ffa7f38d MKS Robin: SD pins not required (SDIO) (#15474) 2019-10-06 23:20:43 -05:00
Scott Lahteine 519cc1bc67 NUM_AXIS is now obsolete 2019-10-06 22:18:16 -05:00
Scott Lahteine 4134c6398a Update 'mftest' (local test build) script 2019-10-06 22:04:28 -05:00
Scott Lahteine 9188ce1a8d Add JOIN for simple append 2019-10-06 22:01:06 -05:00
Scott Lahteine 51ae13fc8c Compact MIN/MAXTEMP_ALL 2019-10-06 21:58:58 -05:00
Scott Lahteine 5449088a8e Fix Japanese language extra define 2019-10-06 21:58:58 -05:00
Me No Dev fc6a0937b8 Improve Malyan M200 integration (#15462) 2019-10-05 22:37:22 -05:00
Giuliano Zaro a1ad01e4ab Limit Case Light PWM (#15459) 2019-10-05 22:32:50 -05:00
Scott Lahteine f8498d8a52 GET_TEXTF => GET_TEXT_F 2019-10-05 20:47:28 -05:00
LinFor e854eb933d Allow pins overrides for SKR V1.3 (#15451) 2019-10-05 20:40:01 -05:00
Giuliano Zaro 8924c0f1ec AGCM4 link in README.md (#15461) 2019-10-05 20:36:20 -05:00
Jimmy Page 203d260a41 Update Japanese font and translation (#15470) 2019-10-05 20:35:20 -05:00
Daniel Andersen 0076e1e792 Fix CR10 Stock Display timing with SKR_PRO V1.1 (#15446) 2019-10-05 20:33:46 -05:00
Giuliano Zaro a3ec573984 Uniform fan speed & case light 2019-10-05 18:34:11 -05:00
Giuliano Zaro ff55601dc3 Update Italian language 2019-10-05 18:30:48 -05:00
Roman Moravčík b90dff020e Update Slovak language 2019-10-05 18:29:17 -05:00
Giuliano Zaro 43aba9f918 Fix compile errors & temp range 2019-10-05 18:27:03 -05:00
Scott Lahteine 1ac629f919 [cron] Bump distribution date 2019-10-05 00:00:09 -05:00
Luu Lac 5d81d7cefe if no HOTENDS 2019-10-04 16:18:18 -05:00
Tanguy Pruvot 895f64fbab Add missing MKS Robin TOUCH_CS_PIN (#15445) 2019-10-04 01:51:07 -05:00
Scott Lahteine b7dfbb6af5 [cron] Bump distribution date 2019-10-04 00:00:05 -05:00
Scott Lahteine c83c2a5022 Patch compile glitches 2019-10-03 15:37:13 -05:00
Scott Lahteine 6b945eb548 Show "FILAMENT CHANGE" during filament change 2019-10-03 07:45:52 -05:00
Scott Lahteine 0322348924 Handle runout in runout.cpp 2019-10-03 06:27:30 -05:00
Scott Lahteine 72d791a736 Standardize active/paused functions 2019-10-03 06:27:30 -05:00
Scott Lahteine 719615a6b6 Simplify edit menu items
The `edit` part of menu items displaying values is not needed. Menu edit types can be modeled on sub-menus.
2019-10-03 06:27:30 -05:00
Scott Lahteine 273cbe931e Aliases for common menu item types 2019-10-03 06:15:21 -05:00
tonokip df48ef6df3 Fix step timer on Archim1 (#15447) 2019-10-03 03:29:15 -05:00
Scott Lahteine acbe84c8ef [cron] Bump distribution date 2019-10-03 00:00:05 -05:00
Scott Lahteine b82c0978cc Patch up OPEN command in git scripts 2019-10-02 02:02:51 -05:00
Scott Lahteine d0ef7b6588 [cron] Bump distribution date 2019-10-02 00:00:04 -05:00
Scott Lahteine 1952982c01 Rearrange configs for export 2019-10-01 22:20:32 -05:00
Oliver Jean Eifler d52b908627 Fix coordinate size for G26 w/out arcs (#15443) 2019-10-01 20:02:27 -05:00
InsanityAutomation 438835f6a5 Configurable Max Accel, Max Feedrate, Max Jerk edit limits (#13929) 2019-10-01 19:59:48 -05:00
Scott Lahteine f9400b6a3c [cron] Bump distribution date 2019-10-01 00:00:05 -05:00
Scott Lahteine 7cd72de8bc General cleanup, style 2019-09-30 22:57:23 -05:00
Scott Lahteine 806d64e1bf X_SENSORLESS includes AXIS_HAS_STALLGUARD 2019-09-30 22:56:22 -05:00
Scott Lahteine e3fd0519b3 Reduce need for UNUSED 2019-09-30 22:56:22 -05:00
Marcio Teixeira e3ff27c95a Prevent duplication of PSTRs to save memory (#15435) 2019-09-30 22:53:34 -05:00
LinFor 98f614ddb1 Use MAX_BED_POWER instead of BANG_MAX to heat outside PID_FUNCTIONAL_RANGE (#15431) 2019-09-30 22:19:12 -05:00
Marcio Teixeira 087fe0e9d6 Improve and fix LULZBOT_TOUCH_UI (#15434)
- Add start print confirmation dialog box
- Fix incorrect text colors in UI
- Adjust bio printer UI
2019-09-30 22:15:48 -05:00
Timm b198f321c8 Add missing motion inline methods (#15433) 2019-09-30 19:57:22 -05:00
Giuliano Zaro 15efe8d839 Update Italian language (#15436) 2019-09-30 19:31:06 -05:00
Scott Lahteine 1e57c6e6e3 AutoBuild tweaks 2019-09-30 02:56:15 -05:00
Scott Lahteine a9c259c77a Patch PrintrboardG2 build (on spec) 2019-09-30 02:47:55 -05:00
DrDitto 55b8547f04 Simplify MKS_MINI_12864 init (move 5ms to u8g seq.) (#15428) 2019-09-30 02:11:58 -05:00
Scott Lahteine b7a9481e01 [cron] Bump distribution date 2019-09-30 00:00:04 -05:00
Scott Lahteine 139b7196a0 Watchdog cleanup (#15283) 2019-09-29 17:57:29 -05:00
Scott Lahteine 24706aedbd Fix Neopixel typos 2019-09-29 17:36:29 -05:00
Scott Lahteine d0dd1a387e Require a newer Neopixel 2019-09-29 17:31:06 -05:00
Scott Lahteine f307ff68f7 Multiply by float, not double 2019-09-29 17:25:27 -05:00
Scott Lahteine 74746c6573 Fix probe_offset EEPROM field test 2019-09-29 16:55:50 -05:00
Alex Somesan 10bbed7f69 Fix comma/semicolon typo (#15420) 2019-09-29 16:50:53 -05:00
Bob Kuhn 178dcd6fd8 SPI chaining with TMCStepper simplified interface (#15179) 2019-09-29 05:47:20 -05:00
Frederik Kemner 4564ad2920 Fix build if EXTRUDERS = 0 (#15417) 2019-09-29 04:32:24 -05:00
Scott Lahteine 50e4545255 Add custom types for position (#15204) 2019-09-29 04:25:39 -05:00
Tanguy Pruvot 43d6e9fa43 STM32F103.. reorganization, SKR mini fix (#15398) 2019-09-29 02:04:53 -05:00
Scott Lahteine 5e9898600b [cron] Bump distribution date 2019-09-29 00:00:07 -05:00
Scott Lahteine f2d93f61c3 Revert errant const 2019-09-28 23:52:54 -05:00
Scott Lahteine 7c5e6900e1 Tweak comment 2019-09-28 22:08:02 -05:00
Tim Moore 7e72768433 Info Menu: Runaway Watch state (#14827) 2019-09-28 21:53:40 -05:00
Scott Lahteine 81b9c7c6ee No motion constraint before homing
Sensible approach to soft endstops before the machine is homed.

Ref: https://github.com/MarlinFirmware/Marlin/pull/15027#issuecomment-533301094
Co-Authored-By: comps <comps@nomail.dom>
2019-09-28 21:35:49 -05:00
Christian ddded80ff3 Fix mixing for up to 6 steppers (#15374) 2019-09-28 19:12:23 -05:00
Scott Lahteine 8683d4abfd Improved list-oriented macros 2019-09-28 19:03:07 -05:00
InsanityAutomation 0ca6abce72 Add reporting to M290 (#15376) 2019-09-28 16:58:48 -05:00
InsanityAutomation e942b352c6 Fix Photograph Pin Sanity Check (#15406) 2019-09-28 16:18:23 -05:00
Ludy 41ea2d8c31 Fix auto-fan compile error (#15402) 2019-09-28 15:37:41 -05:00
InsanityAutomation be3c4a7930 Bring Raptor pins in parity with others (#15410) 2019-09-28 15:35:13 -05:00
Ludy f28f191ebf Trailing whitespace (#15403) 2019-09-28 15:32:37 -05:00
Ludy a628d77798 Fix compile error with 6 hot-ends (#15405) 2019-09-28 15:30:41 -05:00
Ludy 6509dc04f5 Fix German error (#15404) 2019-09-28 15:29:41 -05:00
Scott Lahteine 2277c6dffc Optimize SD card reader, sorting (#15395) 2019-09-28 15:28:05 -05:00
Scott Lahteine 1834d86df5 Fix sanity check typos 2019-09-28 15:26:21 -05:00
InsanityAutomation a6b0223eea Revive and improve DELTA probe bounds, LRFB options (#15372) 2019-09-28 01:19:11 -05:00
Maxim 1b9fc64d8a Add M997 support for SKR PRO 1.1 (#15394) 2019-09-28 00:54:30 -05:00
Scott Lahteine f57ce2b40a [cron] Bump distribution date 2019-09-28 00:00:04 -05:00
Scott Lahteine ebfdf740bc EZBoard only knows stock display 2019-09-27 22:08:13 -05:00
Jason Smith 5f18f5bb90 Require TMCStepper >= 0.5.0 in platformio.ini (#15382) 2019-09-27 19:18:12 -05:00
InsanityAutomation 5221e2d991 Restore Host Prompt Info (#15387) 2019-09-27 17:06:26 -05:00
Marcio Teixeira 02bbc51195 Keep C extension for now, restore (void) arg (#15380) 2019-09-27 14:02:35 -05:00
Giuliano Zaro a8aca59c04 Update Italian language (#15373) 2019-09-27 13:05:53 -05:00
Scott Lahteine 4c16661153 Use named styles in draw_menu_item_static 2019-09-27 04:45:01 -05:00
Scott Lahteine d683f98019 Return buffer in duration.toString 2019-09-27 04:45:01 -05:00
Scott Lahteine dc65788511 Shorthand for __VA_ARGS__ 2019-09-27 04:43:34 -05:00
Marcio Teixeira a18d16fb8b Do not implicitly concatenate localized strings (#15383) 2019-09-27 04:38:43 -05:00
Scott Lahteine 62e4e05a19 [cron] Bump distribution date 2019-09-27 00:00:04 -05:00
Berezovskyi Oleksandr c0d5b57cf9 Init i2c for all i2c EEPROM use (#15366) 2019-09-26 22:25:56 -05:00
Scott Lahteine 665e45e0ba Reduce string storage, use masking 'seen' 2019-09-26 04:30:55 -05:00
Scott Lahteine 455dabb183 Add a feedRate_t data type (#15349) 2019-09-26 01:28:09 -05:00
Scott Lahteine ee7558a622 Tweaks to Z fade behavior 2019-09-26 01:15:47 -05:00
Scott Lahteine 1f48eaf03a Change AutoBuild button order 2019-09-26 00:18:53 -05:00
Scott Lahteine d49d40f7b0 Home XYZ newline 2019-09-25 22:26:16 -05:00
Scott Lahteine b72fd7ea9c Supply 'super' for servo subclasses 2019-09-25 22:07:14 -05:00
Scott Lahteine b2e1f77f58 Fix extraneous "Home XYZ First" message 2019-09-25 21:57:20 -05:00
Scott Lahteine 9a209012b5 Improve M114_DETAIL comment 2019-09-25 20:29:29 -05:00
Scott Lahteine 39578a5919 Fix probe without leveling 2019-09-25 19:57:52 -05:00
Marcio Teixeira 8cbb5350ad Refactor joystick support in ExtUI (#15318) 2019-09-25 18:46:36 -05:00
DrDitto 04e4eb35be MKS_MINI, FYSETC RGB, backlight (#15334) 2019-09-25 18:41:04 -05:00
Scott Lahteine ddd9d9032a Fix option / string name conflict 2019-09-25 17:12:13 -05:00
Robby Candra c3f09e2b1b Set MAX_OVERSHOOT_PID_AUTOTUNE to 30 (#15257) 2019-09-25 09:43:00 -05:00
Jason Smith f98999ca20 Fix includes in RAMPS_DUO and RAMPS_SMART (#15321) 2019-09-25 09:42:03 -05:00
Dave Johnson f362dab7be Disable PIO extra_scripts for AT90USB (#15347) 2019-09-25 09:37:27 -05:00
Scott Lahteine 0b4aedf13e Less use of "this" 2019-09-25 09:29:58 -05:00
Scott Lahteine 661c3cfc99 Fix mesh bounds for MBL 2019-09-25 09:05:46 -05:00
Scott Lahteine 25c4c2f24e Fix bool in M851 2019-09-25 08:39:11 -05:00
Scott Lahteine da1bda493e Apply Marlin conventions to M851 2019-09-25 03:57:16 -05:00
InsanityAutomation e9cf46a9a5 M851 XY 3 point followup (incomplete) (#15361) 2019-09-25 02:43:41 -05:00
Jason Smith 66d0221077 Fix build with more than 2 Trinamic E steppers (#15329) 2019-09-25 02:30:07 -05:00
Robby Candra 9c288a682d Followup to probe_at_point change (#15342) 2019-09-25 02:29:10 -05:00
Marcio Teixeira 149e9b733e Simplified ExtUI language selection (#15359) 2019-09-25 01:25:21 -05:00
Jason Smith 53124ca6b7 Fix 32-bit crash due to fwretract_settings_t pack(1) (#15333) 2019-09-25 01:08:30 -05:00
Scott Lahteine bd6d144cdb [cron] Bump distribution date 2019-09-25 00:00:04 -05:00
Scott Lahteine 5288c399ce Patch probe offset name, defines 2019-09-24 23:39:23 -05:00
Scott Lahteine 4e8d9fe59b zprobe_offset => probe_offset 2019-09-24 23:36:09 -05:00
Scott Lahteine 3819f79945 Fix pid_output declaration 2019-09-24 22:32:13 -05:00
InsanityAutomation df1e51258a Add M851 X Y probe offsets (#15202) 2019-09-24 21:29:21 -05:00
Scott Lahteine ebc9a8a0b0 ExtUI patch followup 2019-09-24 20:21:31 -05:00
Marcio Teixeira 4ff59d178d LULZBOT_TOUCH_UI extended character set (#15301) 2019-09-24 18:49:40 -05:00
Scott Lahteine bd2b44c4ed Require newest TMCStepper 2019-09-24 18:00:06 -05:00
Marcio Teixeira bafcd084cc LULZBOT_TOUCH_UI performance/cosmetic fixes (#15319) 2019-09-24 17:46:00 -05:00
Bo Herrmannsen 6fc4d4c3b7 Disable ARC_SUPPORT on Tevo Tornado (#15358) 2019-09-24 17:30:56 -05:00
Jason Smith 9aaa056286 Fix SCARA build from Arduino IDE (#15317) 2019-09-24 17:29:25 -05:00
Scott Lahteine 48e2f90304 Improve TMC sanity checks 2019-09-24 17:20:39 -05:00
Scott Lahteine 07eb213046 [cron] Bump distribution date 2019-09-24 00:00:11 -05:00
Scott Lahteine 5e13fe989f Rename some feedrate-oriented functions 2019-09-23 22:36:41 -05:00
Scott Lahteine 938a49f989 Update DUE-tests 2019-09-23 19:16:40 -05:00
Scott Lahteine 9e7e8e229c [cron] Bump distribution date 2019-09-23 00:00:08 -05:00
Scott Lahteine 6c62732ae1 Handle no Timer 3C 2019-09-22 21:50:18 -05:00
Scott Lahteine f5092e92a4 Enhanced A20M config 2019-09-22 21:46:56 -05:00
Giuliano Zaro 4e5941fa57 AutoBuild compatibility with Python3 (#15331) 2019-09-22 15:38:07 -05:00
Scott Lahteine 7fc4f7b815 [cron] Bump distribution date 2019-09-21 00:00:13 -05:00
Scott Lahteine 97493dc62a AutoBuildMarlin re-use VSCode terminal 2019-09-20 23:35:23 -05:00
Scott Lahteine 13d725d24d Tweak debug messages 2019-09-20 23:35:22 -05:00
Scott Lahteine 58521fb0eb Force auto build output to top 2019-09-20 20:05:49 -05:00
Scott Lahteine ed2c2bcd17 Blend Auto Build icons 2019-09-20 19:49:09 -05:00
Scott Lahteine 7d7404157a Update AutoBuild README.md 2019-09-20 03:38:13 -05:00
Jason Smith 6ed2bf631d Fix FILAMENT_RUNOUT_SCRIPT without ADVANCED_PAUSE_FEATURE build (#15313) 2019-09-20 00:50:11 -05:00
Jason Smith 514223f960 Fix BACKLASH_COMPENSATION compiler issues (#15307) 2019-09-20 00:48:41 -05:00
Scott Lahteine 1452e41ead Auto Build fixes, updates (#15315)
Co-Authored-By: shitcreek <luulac85@gmail.com>
2019-09-20 00:45:03 -05:00
Scott Lahteine de78b61d35 [cron] Bump distribution date 2019-09-20 00:00:10 -05:00
InsanityAutomation 6a312fae80 Add before/after dir change delays (#15314) 2019-09-19 23:05:17 -05:00
Scott Lahteine f412267766 Fix "Auto Build window hidden behind" 2019-09-19 16:22:48 -05:00
Scott Lahteine 1803c27afb Fix macros for overloaded comparisons 2019-09-19 02:16:40 -05:00
Scott Lahteine 86e0b9eb05 [cron] Bump distribution date 2019-09-19 00:00:08 -05:00
Marcio Teixeira 7f117bfc60 EXTENSIBLE_UI Joystick support (#15303) 2019-09-18 19:35:03 -05:00
Evgeny Zyatkov 12e0581f24 SKR Pro Neopixel support (#15274) 2019-09-18 17:06:01 -05:00
Jason Smith 252f31b6f1 Fix/improve backoff feedrates (#15300) 2019-09-18 17:04:13 -05:00
Scott Lahteine bcf630d8d1 Clarify a sanity check 2019-09-18 16:43:30 -05:00
Scott Lahteine c44b5fd13a Try to fit logo by narrowing icons 2019-09-18 16:43:30 -05:00
Bas Stottelaar a7a5607c1b Clean up BIGTREE_BTT022 board definition (#15287) 2019-09-18 12:29:58 -05:00
Scott Lahteine d5a34afa56 Undefine pins only in debug list 2019-09-18 11:53:42 -05:00
Scott Lahteine 712aaa26d5 Use provided 'constrain' 2019-09-18 04:07:14 -05:00
Scott Lahteine 1a1375964f Drop unused G26 function 2019-09-18 04:07:14 -05:00
Scott Lahteine 4bb17a55ac Add Travis test for M425 2019-09-18 04:07:13 -05:00
Robby Candra 787d522036 LCD Size Defines (#15297) 2019-09-18 02:58:58 -05:00
Marcio Teixeira b590ae4875 LULZBOT_TOUCH_UI: Only use %S on AVR (#15292) 2019-09-18 02:33:26 -05:00
Scott Lahteine ce74e4b3e4 Undefine… redux 2019-09-18 00:28:26 -05:00
Scott Lahteine 356b582a9f [cron] Bump distribution date 2019-09-18 00:00:05 -05:00
Scott Lahteine b73744f9e7 Update ExtUI, add test under DUE (#15298) 2019-09-17 23:41:34 -05:00
Scott Lahteine b39ab3db37 Sanity-check for SD reprint 2019-09-17 23:34:14 -05:00
Scott Lahteine 34d521234d Undefine pins to reduce warnings 2019-09-17 23:34:14 -05:00
Scott Lahteine 73ac213cdd Fix FileList::isAtRootDir 2019-09-17 23:34:14 -05:00
Scott Lahteine b71a755a30 Add float suffix in G33 2019-09-17 23:30:27 -05:00
Scott Lahteine c353eaa146 Misc changes from struct refactor (#15289) 2019-09-17 18:16:28 -05:00
Bas Stottelaar c7acd5c45b Upgrade BigTrees to latest platform ststm32 (#15285) 2019-09-17 05:08:47 -05:00
Tanguy Pruvot 7c3d52cd6b HAL_DUE build fix (#15286) 2019-09-17 04:51:27 -05:00
Scott Lahteine 2405ccb7ef Patch use of UNUSED 2019-09-17 00:05:35 -05:00
Scott Lahteine 282c39e3d0 [cron] Bump distribution date 2019-09-17 00:00:06 -05:00
Tanguy Pruvot d277e93f4d Configurable TOUCH_BUTTONS repeat delays (#15245) 2019-09-16 21:32:55 -05:00
Scott Lahteine f01f0d1956 Drop C-style 'void' argument 2019-09-16 20:31:21 -05:00
Scott Lahteine 7d8c38693f Formatting 2019-09-16 20:31:21 -05:00
Scott Lahteine a06010e08a Macrofy attachInterrupt 2019-09-16 20:31:20 -05:00
Marcio Teixeira 4c00ddae56 Remove obsolete LULZBOT_TOUCH_UI code (#15284) 2019-09-16 19:45:05 -05:00
Scott Lahteine 6282655d77 Separate STM32F103R_bigtree_USB environment 2019-09-16 19:17:28 -05:00
Robby Candra 98233b1de0 Add root flag to CardReader (#15275) 2019-09-16 17:49:55 -05:00
Tanguy Pruvot eb1a368277 Fix Lerdge K typos (#15273) 2019-09-16 16:50:57 -05:00
Marcio Teixeira 7a569ad4d0 LULZBOT_TOUCH_UI fixes. Fix some warnings. (#15276) 2019-09-16 16:49:46 -05:00
Bas Stottelaar 847e4ced11 Fix M43 without watchdog (#15280) 2019-09-16 16:09:43 -05:00
Scott Lahteine 7e95ee9e4b Patch missing millis 2019-09-16 15:57:25 -05:00
Scott Lahteine d63e0f6d98 Pending refactor tweaks 2019-09-16 15:10:14 -05:00
Scott Lahteine 9c218381c5 [cron] Bump distribution date 2019-09-16 00:00:05 -05:00
J.C. Nelson 896162b722 Add pins for Lerdge X and K. (#15271) 2019-09-15 15:23:04 -05:00
Giuliano Zaro c96844fae2 [SAMD51] Remove RuRamps4D (#15264) 2019-09-15 14:17:20 -05:00
Tanguy Pruvot 02d400e413 STM32F1: Sync SPI changes from maple master (#15266) 2019-09-15 13:46:17 -05:00
Scott Lahteine 20fbb751f1 Tell externals it's Marlin 2019-09-15 03:12:44 -05:00
Scott Lahteine d5f5203880 Use "mount" as card verb 2019-09-15 03:12:44 -05:00
Tanguy Pruvot 2386c147ad Mount the SD card early (#15255) 2019-09-15 03:05:01 -05:00
Scott Lahteine c4090b1375 [cron] Bump distribution date 2019-09-15 00:00:05 -05:00
Scott Lahteine 85a7f8c5b4 Smaller animation example 2019-09-14 19:19:43 -05:00
Scott Lahteine 79635f8e94 Fix some debug out lines 2019-09-14 16:45:06 -05:00
Scott Lahteine 843a19102c Shorten an option description 2019-09-14 16:45:04 -05:00
Marcio Teixeira 18821f29d5 LULZBOT_TOUCH_UI: Localization, runtime language selection (#15249) 2019-09-14 06:51:49 -05:00
Tanguy Pruvot 15bea5043c Followup to SD menu optimization (#15252) 2019-09-14 06:42:28 -05:00
Evgeny Zyatkov 61e3f119f4 FYSETC_MINI_12864 pins for SKR PRO 1.1 (#15253) 2019-09-14 06:22:30 -05:00
Scott Lahteine 3d0ead7dcb Bring Configuration_adv.h up to date 2019-09-14 04:30:17 -05:00
Scott Lahteine 465c6d9230 Simpler Allen Key config. Fixes, cleanups from refactor (#15256) 2019-09-14 03:05:10 -05:00
Scott Lahteine ffb418b226 Move some SD comments 2019-09-14 02:31:47 -05:00
Robby Candra acd76e8609 Allow odd mm bed sizes (#15258) 2019-09-14 01:26:14 -05:00
Scott Lahteine bbbfb0015b [cron] Bump distribution date 2019-09-14 00:00:14 -05:00
Scott Lahteine ef8ce2e2e5 Allow TEMP_CHAMBER_PIN override 2019-09-13 18:45:59 -05:00
Scott Lahteine f9961ddebb Optimize SERIAL_ECHOPAIR_F 2019-09-13 08:47:41 -05:00
Frederik Kemner 3348a7d223 Fix Info Menu with EXTRUDERS==0 (#15230) 2019-09-13 01:36:44 -05:00
Tanguy Pruvot 2435c6082a STM32F1: AUTO_BED_LEVELING_UBL build fixes (#15240) 2019-09-13 01:33:33 -05:00
Scott Lahteine ae7ae89bb3 [cron] Bump distribution date 2019-09-13 00:00:04 -05:00
Robby Candra 3f129b6574 Touch Buttons variable repeat delay (#15236) 2019-09-12 22:14:24 -05:00
Tanguy Pruvot 5bf635cec2 STM32F1: Only include USBComposite if flagged (#15243) 2019-09-12 18:35:27 -05:00
Robby Candra 1ab3521351 Optimize Media Menu display/scrolling (#15233) 2019-09-12 18:06:07 -05:00
Tanguy Pruvot f1162243f6 STM32F1: No USBSerial without USB-serial bridge (#15242) 2019-09-12 17:59:31 -05:00
Scott Lahteine 832be5dd36 Cosmetic: Align Z_STEPPER_ALIGN values 2019-09-12 00:02:44 -05:00
Scott Lahteine 7cf1befbec [cron] Bump distribution date 2019-09-12 00:01:23 -05:00
Scott Lahteine 69bd636f22 More mega shortcuts in 'mftest' script 2019-09-11 20:51:42 -05:00
Scott Lahteine 1d574b0f6a Tweak config spaces 2019-09-11 17:32:54 -05:00
Tanguy Pruvot 3eacc3bfce french update, g26, usb (#15229)
french update for G26 and USB.
2019-09-11 14:36:39 -05:00
Gustavo Alvarez 2b628553d3 Update Spanish language (#15189) 2019-09-11 12:14:10 -05:00
reloxx13 05cd483413 STM32F1: Support M997 - Reset and begin flash (#15209) 2019-09-11 12:12:58 -05:00
Scott Lahteine f4b198a9f5 Fix G26 enable in tests 2019-09-11 08:17:00 -05:00
Scott Lahteine e3278f22f3 General formatting 2019-09-11 03:29:00 -05:00
Scott Lahteine f9992c5f33 Implausible 2019-09-11 02:52:14 -05:00
Scott Lahteine 3648bce886 Tweak NOZZLE_CLEAN_START_POINT spacing 2019-09-11 01:50:24 -05:00
Scott Lahteine 6091e6300a Fix G90, G91, M82, M83 rel/abs modes (#15218) 2019-09-11 01:29:33 -05:00
Scott Lahteine 41a3fbceac [cron] Bump distribution date 2019-09-11 00:00:04 -05:00
Marcio Teixeira 47d19bab40 Lulzbot ExtUI Western language support (#15208)
Fix #15134
2019-09-10 20:07:03 -05:00
Scott Lahteine c590e8ac05 Improve Power-loss Recovery (#15135) 2019-09-10 18:52:41 -05:00
Scott Lahteine 75927e17dd Filament Width Sensor singleton (#15191) 2019-09-10 18:48:58 -05:00
Scott Lahteine fe6ba4fd70 Tweak REMEMBER 2019-09-10 02:21:21 -05:00
Scott Lahteine 584c86bed1 More "zero extruders" changes (#15213) 2019-09-10 02:20:49 -05:00
Scott Lahteine 54abf3aeba [cron] Bump distribution date 2019-09-10 00:00:06 -05:00
InsanityAutomation dcc39421c5 Minor Pin Updates (#15214) 2019-09-09 23:58:57 -05:00
thisiskeithb 66338ed515 CR-10 Stock Display for SKR Mini 1.1 (#15215) 2019-09-09 23:56:02 -05:00
Scott Lahteine ff482a3247 M114 detail in more tests 2019-09-09 18:04:25 -05:00
Scott Lahteine f055f7c535 Add emergency_parser.h dependency 2019-09-09 18:04:25 -05:00
Scott Lahteine 841c8ce0d9 Remove PROMPT_INFO / PROMPT_GCODE_INFO (#15210) 2019-09-09 15:43:06 -05:00
Ludy 3c3a956a17 Fix compiling error BIGTREE_SKR_MINI (#15197)
Let's get STM32F1 working again!
2019-09-09 10:34:54 -05:00
Scott Lahteine 565a0e11ed Prevent 'current' name conflict, if needed 2019-09-09 03:17:11 -05:00
Scott Lahteine 4f5e197c80 Move bezier curve test 2019-09-09 00:27:53 -05:00
Scott Lahteine 713157f712 Move L6470 enum 2019-09-09 00:27:53 -05:00
Scott Lahteine 5949c24afc [cron] Bump distribution date 2019-09-09 00:00:05 -05:00
Scott Lahteine dbea6f0022 STM32F1 USB cdc/msc composite device (#15180)
Co-Authored-By: bigtreetech <38851044+bigtreetech@users.noreply.github.com>
2019-09-08 02:28:22 -05:00
Luu Lac 8bca3fcf2c Display chamber with HAS_TEMP_CHAMBER (#15194) 2019-09-08 02:20:18 -05:00
Roman Moravčík ca0f47985b Update Slovak language (#15187) 2019-09-08 01:47:36 -05:00
InsanityAutomation 0693767efa ExtUI Pause/Stop on all Pause/Stop (#15188) 2019-09-08 01:47:07 -05:00
Scott Lahteine 1c3a1ab2c6 Use _MIN over MIN 2019-09-08 01:02:15 -05:00
Lucio Tarantino 8ac52aedff M118 multiserial support (#15176) 2019-09-08 00:57:59 -05:00
Jamie dbee0e9c54 Analog joystick jogging control (#14648) 2019-09-08 00:55:34 -05:00
Ludy 068c303742 More translatable LCD strings (#15190) 2019-09-08 00:15:25 -05:00
Tanguy Pruvot ec3f29a33a Fix linux_native long to int32 warnings (#15192) 2019-09-07 20:30:47 -05:00
ManuelMcLure eed7c2fe2f Fix 'echo:' in TMC parameters M503 report (#15193) 2019-09-07 20:29:38 -05:00
Ludy 6172cd2528 CHAMBER integration to GLCD (#14981) 2019-09-07 04:52:57 -05:00
Scott Lahteine 94948d3dcb Compact some sanity conditions 2019-09-06 19:03:04 -05:00
Scott Lahteine 14573cb823 Update some configs 2019-09-06 18:24:40 -05:00
Scott Lahteine a3052da703 Move manual move to lcd section 2019-09-06 18:24:39 -05:00
AnHardt b7b0021b5c Fix Thermistor 75 (#15181) 2019-09-06 16:23:27 -05:00
Scott Lahteine 94d3153fb6 Remove obsolete TMC_USE_CHAIN 2019-09-06 15:48:08 -05:00
Scott Lahteine ca1a3476cb [cron] Bump distribution date 2019-09-06 00:00:04 -05:00
Scott Lahteine 91c3b8e3ca Reformat ADC cases 2019-09-05 20:02:31 -05:00
Scott Lahteine 4cdf7a1b93 Add ADC helpers to temp_info_t 2019-09-05 19:48:52 -05:00
Scott Lahteine 72876d9045 Clean up u8g defines 2019-09-05 17:09:24 -05:00
Scott Lahteine 8d036e94bf Combine channel-based SPI headers 2019-09-05 17:09:24 -05:00
Scott Lahteine 70b3f4ded5 Pins error message 2019-09-05 15:44:13 -05:00
Ludy 01fd3f904f Drop extra include (#15171) 2019-09-05 13:21:06 -05:00
Tanguy Pruvot 50e1bf57b9 Fix RRD/CR10 LCD on STM32F1/F4 (#15172) 2019-09-05 13:20:03 -05:00
Scott Lahteine 18dd5cb46a Config comment patch 2019-09-05 01:48:12 -05:00
Scott Lahteine bf3cd8e5aa Tweak var names 2019-09-05 01:40:09 -05:00
Scott Lahteine 37d3c7288f [cron] Bump distribution date 2019-09-05 00:00:04 -05:00
Scott Lahteine 7496e1cd67 whitespace 2019-09-04 21:55:41 -05:00
Scott Lahteine 060b360be3 Provide a good default contrast
In reference to #15139
2019-09-04 18:29:22 -05:00
kakou-fr 6b1c4dec46 Touch Mi: Add magnet Y position (#15166) 2019-09-04 18:09:12 -05:00
Tanguy Pruvot 85f0556118 Add XPT2046 calibration functions (#15140) 2019-09-04 17:32:20 -05:00
Scott Lahteine cff502c6d4 Tweak REPRAPWORLD_KEYPAD config comment 2019-09-04 17:23:38 -05:00
Giuliano Zaro 53af7cad0a SAMD51 include u8g library (#15165) 2019-09-04 17:00:30 -05:00
Ludy beffcd856b Update German language, (c) (#15164) 2019-09-04 16:59:26 -05:00
Karl Andersson 123ecfe613 Allow MINIMUM_STEPPER_PULSE override with LV8729 (#15162) 2019-09-04 16:57:13 -05:00
Scott Lahteine 2d2d9da9f2 Tweak u8g impl file includes 2019-09-04 14:52:22 -05:00
Scott Lahteine a07c4af393 Tweak animated draw call 2019-09-04 14:47:08 -05:00
Scott Lahteine 7ad5208267 Fix up boot screen code
Followup to #15125

Co-Authored-By: Ludy <ludy87@users.noreply.github.com>
2019-09-04 14:43:32 -05:00
Robby Candra 6b05d5d65d Allow TOUCH_BUTTONS to be swapped (#15100) 2019-09-04 13:13:05 -05:00
George Fu 8e044ea898 Fix up Fysetc configs, pins. Fix menu type float5. (#15157) 2019-09-04 13:06:23 -05:00
Jamie 293b890940 Apply soft limits to G2/G3 final target (#15156) 2019-09-04 13:02:30 -05:00
Scott Lahteine 2563e32aa3 Format FWRETRACT config comments 2019-09-04 12:48:50 -05:00
Scott Lahteine d9bbe0ff02 [cron] Bump distribution date 2019-09-04 00:00:03 -05:00
thisiskeithb d577b3c21e Fix MKS SGEN-L Pins (#15153) 2019-09-03 20:02:30 -05:00
AnHardt 89a2161cac MINIMUM_STEPPER_DIR_DELAY in LA (#15154)
Add missed MINIMUM_STEPPER_DIR_DELAY after dir change in LinearAdvance interrupt.
2019-09-03 20:01:51 -05:00
Scott Lahteine 75efa3cdac Reorganize HAL (#14832) 2019-09-02 19:49:58 -05:00
thisiskeithb cdd5056aba Increase MKS MINI 12864 default contrast (#15139) 2019-09-02 19:40:58 -05:00
Scott Lahteine c97c393c4a Fix "unqualified id" warning (#15144) 2019-09-02 19:35:05 -05:00
Scott Lahteine 12344085c0 Update temperature.cpp 2019-09-02 19:21:47 -05:00
Giuliano Zaro 12c595c61f SAMD51 LCD support (#15113) 2019-09-02 05:45:02 -05:00
Scott Lahteine 23bb40d0ea Fix MKS_MINI_12864 init
See #13550

Co-Authored-By: DrDitto <drditto@users.noreply.github.com>
2019-09-02 05:24:36 -05:00
Giuliano Zaro 9958f5e322 Home on G34 if steppers slept (#15127) 2019-09-02 02:44:48 -05:00
thisiskeithb 59152f2671 Flash-based EEPROM on SKR Mini E3 DIP (#15128) 2019-09-02 02:42:11 -05:00
Tanguy Pruvot c9817105fb Update French language (#15129) 2019-09-02 02:40:33 -05:00
Giuliano Zaro e6a114b853 Update Italian language (#15130) 2019-09-02 02:39:40 -05:00
Tanguy Pruvot b97bb14a7a Full-featured Alfawise U20 config (#15131) 2019-09-02 02:37:50 -05:00
Gustavo Alvarez 54069823a0 Update Spanish language (#15132) 2019-09-02 02:36:32 -05:00
thisiskeithb f6505c8ee2 Fix Ender-3 Status Screen Y Offset (#15136) 2019-09-02 02:35:59 -05:00
Scott Lahteine 93dcc22aae Drop extra call to get_available_commands 2019-09-02 01:14:03 -05:00
Scott Lahteine 451a942e95 Suspend queue during wait_for_hotend 2019-09-02 01:14:03 -05:00
Scott Lahteine b4715b29bb [cron] Bump distribution date 2019-09-02 00:00:04 -05:00
Scott Lahteine 34b73426e5 Apply #ifdef/#ifndef where possible 2019-09-01 23:54:50 -05:00
Scott Lahteine 4078f2672e Apply shorthand option macros 2019-09-01 23:43:48 -05:00
Scott Lahteine a2e412c0ce Rename command buffer var 2019-09-01 20:43:31 -05:00
Tanguy Pruvot d59d9b5973 Alfawise - LK1/LK2/LK4 and BLTouch (#15118) 2019-09-01 04:10:35 -05:00
weakset ee240d21b9 Use Flash-based EEPROM on SKR mini-E3 (#15126) 2019-09-01 04:04:40 -05:00
Jason Smith be051c890f Fix Z_STEPPER_ALIGN_[XY] sanity error (#15124) 2019-09-01 04:00:20 -05:00
Tanguy Pruvot ee444d7d07 Fix SKRmini test required serial port(s) (#15117) 2019-08-31 21:10:50 -05:00
ETE-Design c8e096785f Gantry: Enable Filament Change (#15122) 2019-08-31 20:54:36 -05:00
Scott Lahteine 8778e12342 Fix some missed misspellings 2019-08-31 20:50:10 -05:00
thisiskeithb 2747ab7643 Ender-3 default TMC currents (#15115) 2019-08-31 20:46:10 -05:00
Scott Lahteine 586b334c2a Split up stepper indirection (#15111) 2019-08-31 19:44:45 -05:00
Scott Lahteine 87b16ed5f6 Bring Configuration.h up to date 2019-08-31 07:03:51 -05:00
Scott Lahteine 8fca85042b Patch early env rename 2019-08-31 07:00:44 -05:00
thisiskeithb 25cf7dee40 Disable Tevo Tarantula Pro PIDTEMPBED (#15089) 2019-08-31 01:40:52 -05:00
Scott Lahteine 66f1da762f Use 'ui.' where possible 2019-08-31 01:07:01 -05:00
Robby Candra 26fa08548c Add RGB565 Color Definitions for TFT (#15099) 2019-08-30 22:49:24 -05:00
Scott Lahteine 944920176f Add more platform Travis tests 2019-08-30 22:37:28 -05:00
Scott Lahteine 0f4d3e1bca Fix ESP32 "DISABLED" name conflict 2019-08-30 22:37:28 -05:00
Scott Lahteine 1eeef30097 A single generate_click lambda 2019-08-30 19:17:59 -05:00
Tanguy Pruvot c014f8dc78 Fix STM32F1 SPI warning (gcc 8.2.1) (#15104) 2019-08-30 18:15:04 -05:00
Tanguy Pruvot d068470e18 Prevent Linux min/max error (#15107) 2019-08-30 17:46:09 -05:00
Bob Kuhn ba91bca1eb TMC SPI daisy chain support (experimental) (#15081) 2019-08-30 17:39:45 -05:00
Scott Lahteine 0bcb64403c Revert _BV testing commit
This reverts commit 9223261ea9.
2019-08-30 16:11:16 -05:00
Scott Lahteine 05ef9b2f55 [cron] Bump distribution date 2019-08-30 14:44:39 -05:00
Scott Lahteine 2aef83ddcd Add a PlatformIO hook to alter CXXFLAGS 2019-08-29 18:06:24 -05:00
Scott Lahteine 23cffb2c21 Add an env to get the Include Tree 2019-08-29 18:06:24 -05:00
Scott Lahteine 9223261ea9 Only define _BV in Marduino.h 2019-08-29 18:06:24 -05:00
Scott Lahteine d25231aea8 Spacing, defined(), #include tweaks 2019-08-29 18:06:24 -05:00
Karl Andersson 7ebfae27e3 Fix HAL_STM32 SPI regression (#15093)
Reference: 0b47558
2019-08-29 17:00:01 -05:00
thisiskeithb f5a1fabd38 Clarify TMC2209 Sensitivity vs. Others (#15092) 2019-08-29 16:57:56 -05:00
Ludy 3f77d6a551 Fix expire_status warning (#15094) 2019-08-29 16:05:22 -05:00
Robby Candra 38983fdfa9 Add 'Back' Button for Touch TFT 320x240 (#15060) 2019-08-29 01:19:07 -05:00
Scott Lahteine 8196ced2de Leave LCD_PINS_Dn defined for other uses
Fix #14998
2019-08-29 00:57:20 -05:00
AlexandrZloy 0ebaea94be Add stallGuard threshold for X2 (#15042) 2019-08-29 00:15:31 -05:00
Scott Lahteine e1d65b8937 [cron] Bump distribution date 2019-08-29 00:00:03 -05:00
Tanguy Pruvot ca5da026d6 dogm: u8g prototypes cleanup (#15082) 2019-08-28 23:49:51 -05:00
Scott Lahteine a61c91ae9e Use 'bugfix' branch of U8glib-HAL 2019-08-28 21:39:18 -05:00
Scott Lahteine 1d8ad7cf71 Safe changes from HAL cleanup 2019-08-28 21:21:47 -05:00
Scott Lahteine 95963121b0 Patch a u8g include 2019-08-28 20:09:02 -05:00
Scott Lahteine 7b99c26e80 Fix FTDI_EVE_LIB platform includes 2019-08-28 19:56:02 -05:00
Scott Lahteine 3ac76f0489 Invariant Marlin bootscreen (#15057) 2019-08-28 07:40:18 -05:00
Scott Lahteine b2a4b6f34e Don't use board url as override 2019-08-28 04:44:40 -05:00
Scott Lahteine b8e4b993d6 Separate board website URL 2019-08-28 04:44:40 -05:00
Scott Lahteine 6341aefda3 Info menu tweak style 2019-08-28 04:43:42 -05:00
Marcio Teixeira 0f386d06a1 Followup fixes to ExtUI (#15068) 2019-08-28 04:23:13 -05:00
Luu Lac 081e4506ca Fix G53 as prefix, G28 with CNC_COORDINATE_SYSTEMS (#15069) 2019-08-28 04:20:28 -05:00
Robby Candra ca084dcfe8 Switch col vs row variable name (#15072) 2019-08-28 02:49:21 -05:00
Giuliano Zaro 604bdf0b43 Update Italian language (#15076) 2019-08-28 02:46:21 -05:00
InsanityAutomation b7796bcce6 Disable steppers on M112 (#15065)
And change verbiage to not refer to "Emergency Stop."
2019-08-28 00:51:01 -05:00
Scott Lahteine 318356b6bc [cron] Bump distribution date 2019-08-26 00:00:07 -05:00
Scott Lahteine d2f211c7e1 Gantry followup 2019-08-25 20:53:50 -05:00
ETE-Design 9d12788a9a ADIMLab Gantry - Spelling Correction (#15043) 2019-08-25 20:51:06 -05:00
thisiskeithb 1769f43226 Fix CR-10/10S/Mini/5S Bed Thermistor Types (#15040) 2019-08-25 04:47:02 -05:00
InsanityAutomation f218405c36 Fix ExtUI invalid speed, timer (#15031) 2019-08-25 04:46:02 -05:00
Daniel Callander 155765646e Add warning when trying to use JD with kinematic systems (#15032) 2019-08-25 04:43:53 -05:00
Scott Lahteine 7183a586d9 Add EZBOARD PT100 pin 2019-08-25 04:31:00 -05:00
Scott Lahteine c7825e6719 Contrast over 63 assume 255 max
This is closer to the prior behavior.
2019-08-25 04:31:00 -05:00
Tim Moore 1461ee4d36 Make LCD_CONTRAST_MAX >= _LCD_CONTRAST_INIT (#15046) 2019-08-25 04:25:07 -05:00
Scott Lahteine 9e9e578234 [cron] Bump distribution date 2019-08-25 00:00:03 -05:00
Tim Moore 8033bc87ea Turbo-back Info menu items (#15049) 2019-08-24 19:50:04 -05:00
Scott Lahteine d6a16525c2 New Language: Vietnamese (#13892) 2019-08-24 03:40:28 -05:00
Scott Lahteine f6b604ff49 Helper Script tweaks 2019-08-24 02:10:50 -05:00
Scott Lahteine 7fbf40c20c Add command-check to get-bdf2u8g.sh 2019-08-24 02:03:13 -05:00
Marcio Teixeira da601d5114 Update USB_FLASH_DRIVE_SUPPORT (#15021) 2019-08-24 01:47:19 -05:00
Scott Lahteine 20fc66f875 ADIMLab Granty v1 / v2 (#15017)
* # This is a combination of 18 commits.
# This is the 1st commit message:

Add Support for ADIMLab Granty

# The commit message #2 will be skipped:

# Update Configuration.h

# The commit message #3 will be skipped:

# Add files via upload
#
# Add Support for ADIMLab Granty

# The commit message #4 will be skipped:

# Create Configuration.h

# The commit message #5 will be skipped:

# Delete Configuration.h

# The commit message #6 will be skipped:

# Create Test.h

# The commit message #7 will be skipped:

# Add files via upload

# The commit message #8 will be skipped:

# Delete Test.h

# The commit message #9 will be skipped:

# Delete Configuration.h

# The commit message #10 will be skipped:

# Delete Configuration_adv.h

# The commit message #11 will be skipped:

# Add files via upload
#
# Add ADIMLab Pins

# The commit message #12 will be skipped:

# Add files via upload
#
# Add Bootscreen

# The commit message #13 will be skipped:

# Update Configuration.h
#
# Add Bootscreen

# The commit message #14 will be skipped:

# Update pins.h
#
# Add ADIMLab Board

# The commit message #15 will be skipped:

# Update boards.h
#
# Add ADIMLab Granty

# The commit message #16 will be skipped:

# Update Makefile
#
# Add ADIMLab Granty

# The commit message #17 will be skipped:

# Update boards.h

# The commit message #18 will be skipped:

# Update Makefile

* Add Support for ADIMLab Granty

* Optimize bootscreen

* Update Makefile

Updated Description

* Update boards.h

Updated Description

* Update pins_HJC2560C_REV2.h

Updated Description

* Update Configuration.h

Added Author + Custom_Machine_Name

* Create _Bootscreen.h

Add Bootscreen

* Add files via upload

Add ADIMLab Granty v1

* Update boards.h

Add ADIMLab Granty v1

* Update Makefile

Add ADIMLab Granty v1

* Update pins_HJC2560C_REV2.h

* Consolidate Granty configs

* config updates
2019-08-24 01:45:11 -05:00
Scott Lahteine 750256948e Apply #ifdef 2019-08-24 01:42:48 -05:00
Scott Lahteine d527c46481 Delta: Reduce default MIN_STEPS_PER_SEGMENT 2019-08-24 01:42:48 -05:00
BigTreeTech 848dd740ba Fix STM32F1 ADC read temperature error (#15026)
…after USB CDC connect.
2019-08-24 01:33:16 -05:00
Scott Lahteine 04a9962cb5 Fix: Contrast override in pins files
Move contrast handling to `Conditionals_post.h` so pins files can override the LCD defaults.
2019-08-24 00:58:05 -05:00
Scott Lahteine 334777c201 config updates 2019-08-24 00:24:48 -05:00
Scott Lahteine 8c73017a69 [cron] Bump distribution date 2019-08-24 00:00:04 -05:00
Scott Lahteine 62d2a65025 Consolidate Granty configs 2019-08-23 23:49:30 -05:00
Scott Lahteine 09ee5a5da1 Merge remote-tracking branch 'upstream/bugfix-2.0.x' into bf2_granty_fix_15017 2019-08-23 23:45:37 -05:00
Tim Moore efeea9bccf pca9632_buzz fix (#15020) 2019-08-23 22:30:11 -05:00
Marcio Teixeira e61e54acfd Fix TURBO_BACK_MENU_ITEM compile error (#15019) 2019-08-23 22:29:00 -05:00
Tanguy Pruvot 0a280f00c2 Flag unused variables without buzzer (#15016) 2019-08-23 22:21:30 -05:00
Scott Lahteine f2ad1ceb13 Update PT-BR 2019-08-23 21:13:14 -05:00
ManuelMcLure 9c87786464 Change default Re-ARM UART pin order (#15037) 2019-08-23 20:55:41 -05:00
Scott Lahteine fdef32ce77 Shorten Website URLs 2019-08-22 19:37:04 -05:00
Scott Lahteine 7924e0d819 Add print at position shortcuts 2019-08-22 19:37:04 -05:00
Scott Lahteine 5c0e5c599f Fix boot screen warning 2019-08-22 18:58:11 -05:00
Scott Lahteine dd6efe96e7 Restore documented M503 behavior 2019-08-22 18:58:11 -05:00
Scott Lahteine 6429b8bfb8 Fix EZBoard platform test 2019-08-22 17:38:32 -05:00
Tanguy Pruvot e604f76703 Enable contrast via LCD_CONTRAST_INIT (#15006) 2019-08-21 18:56:39 -05:00
ETE-Design 9d8e3d4d6f Update pins_HJC2560C_REV2.h 2019-08-21 17:38:08 +02:00
ETE-Design 2526e2d32e Update Makefile
Add ADIMLab Granty v1
2019-08-21 17:36:15 +02:00
ETE-Design d858f44b35 Update boards.h
Add ADIMLab Granty v1
2019-08-21 17:34:44 +02:00
ETE-Design c3d1671b6d Add files via upload
Add ADIMLab Granty v1
2019-08-21 17:30:17 +02:00
ETE-Design 778466a2ed Create _Bootscreen.h
Add Bootscreen
2019-08-21 17:29:25 +02:00
ETE-Design 42f35491e0 Update Configuration.h
Added Author + Custom_Machine_Name
2019-08-21 16:33:36 +02:00
ETE-Design 0309a5f3af Update pins_HJC2560C_REV2.h
Updated Description
2019-08-21 16:30:08 +02:00
ETE-Design 9434b81a82 Update boards.h
Updated Description
2019-08-21 16:27:45 +02:00
ETE-Design 6b35951e92 Update Makefile
Updated Description
2019-08-21 16:26:25 +02:00
Tanguy Pruvot 012f577bb0 STM32F1: Import (rogerclarkmelbourne) SPI class (#15002) 2019-08-21 06:22:23 -05:00
ETE-Design 4be98221f6 ADIMLab Granty pins/config (#14919) 2019-08-21 05:33:17 -05:00
Scott Lahteine 1fb3c4055d Optimize bootscreen 2019-08-21 05:30:33 -05:00
Scott Lahteine f7aac7a5b0 Add Support for ADIMLab Granty 2019-08-21 05:26:38 -05:00
ETE-Design de122c9bbe # This is a combination of 18 commits.
# This is the 1st commit message:

Add Support for ADIMLab Granty

# The commit message #2 will be skipped:

# Update Configuration.h

# The commit message #3 will be skipped:

# Add files via upload
#
# Add Support for ADIMLab Granty

# The commit message #4 will be skipped:

# Create Configuration.h

# The commit message #5 will be skipped:

# Delete Configuration.h

# The commit message #6 will be skipped:

# Create Test.h

# The commit message #7 will be skipped:

# Add files via upload

# The commit message #8 will be skipped:

# Delete Test.h

# The commit message #9 will be skipped:

# Delete Configuration.h

# The commit message #10 will be skipped:

# Delete Configuration_adv.h

# The commit message #11 will be skipped:

# Add files via upload
#
# Add ADIMLab Pins

# The commit message #12 will be skipped:

# Add files via upload
#
# Add Bootscreen

# The commit message #13 will be skipped:

# Update Configuration.h
#
# Add Bootscreen

# The commit message #14 will be skipped:

# Update pins.h
#
# Add ADIMLab Board

# The commit message #15 will be skipped:

# Update boards.h
#
# Add ADIMLab Granty

# The commit message #16 will be skipped:

# Update Makefile
#
# Add ADIMLab Granty

# The commit message #17 will be skipped:

# Update boards.h

# The commit message #18 will be skipped:

# Update Makefile
2019-08-21 05:25:00 -05:00
Scott Lahteine 4581957d93 Clean up some pins 2019-08-21 05:15:48 -05:00
Marcio Teixeira bd1ced14e7 LulzBot Touch UI Followup (#15007) 2019-08-21 04:48:05 -05:00
Scott Lahteine 8c2cfaa907 Fix BigTree_Btt002 build 2019-08-21 04:38:04 -05:00
Marcio Teixeira 69641f1420 Fix incompatible types error (#15009) 2019-08-21 04:15:37 -05:00
Marcio Teixeira 825c2c3dc4 Fix fan speed encoder scaling (#15010) 2019-08-21 03:49:43 -05:00
Scott Lahteine f1942f6ec0 [cron] Bump distribution date 2019-08-21 00:00:04 -05:00
Scott Lahteine 5e777601f3 Add TURBO_BACK_MENU_ITEM option (#14991) 2019-08-20 19:37:03 -05:00
Scott Lahteine 0cc524b84f Prevent BOARD_NAME conflict with env 2019-08-20 19:10:36 -05:00
InsanityAutomation 33f6d77281 Adjust homing backoff feedrate (#14972) 2019-08-20 03:44:52 -05:00
InsanityAutomation 5a7c0216f7 Misc. ExtUI fixes (#14971) 2019-08-20 03:44:17 -05:00
InsanityAutomation 6039893981 Creality pins updates (#14979) 2019-08-20 03:42:30 -05:00
MaukCC 8664b8e97b Adding HMS434 machine (#14931) 2019-08-20 03:40:48 -05:00
Scott Lahteine 5c6e82743e Followup to STM32F407 2019-08-20 03:11:34 -05:00
chzj333 0b47558a09 New board STM32F407 (#14994) 2019-08-20 03:05:12 -05:00
BigTreeTech bb4a252567 Fix Bigtreetech STM32F40x variants ADC (#14996) 2019-08-20 03:02:52 -05:00
Tim Moore 67f8ba6fed Allow pullup/downs on power loss pin (#14986) 2019-08-20 02:40:44 -05:00
thisiskeithb 19e21a8f10 Wanhao Duplicator i3 Mini config updates (#14908) 2019-08-20 02:38:31 -05:00
Ludy 05995d1fd6 Unify buzz methods as MarlinUI::buzz (#14803) 2019-08-20 02:01:37 -05:00
Scott Lahteine 29c12905f5 Minor HAL patches 2019-08-19 02:28:36 -05:00
Scott Lahteine 1432d44eed Patch circleci config 2019-08-19 01:30:36 -05:00
Scott Lahteine 94397dbdb4 [cron] Bump distribution date 2019-08-19 00:00:07 -05:00
Scott Lahteine 17cd1a4f26 Tweak TOUCH_MI_DEPLOY_XPOS block 2019-08-18 23:38:12 -05:00
Scott Lahteine dfcd437486 Base HAS_LCD_CONTRAST on display type 2019-08-18 23:38:12 -05:00
Scott Lahteine 3f678b0be5 Remove some extra F4 conditions 2019-08-18 23:37:25 -05:00
Scott Lahteine 4d1a662571 Fix STM32F7 STEPPER_ENABLE_PIN 2019-08-18 23:25:15 -05:00
Scott Lahteine 08434b3605 Add TMC26XStepper, not ignore 2019-08-18 23:05:14 -05:00
Tim Moore cd09e35f90 Remove extra M503 "M412" report (#14985) 2019-08-18 21:17:00 -05:00
InsanityAutomation c5be59ddfe Fix runout trigger on "inactive" sensor (#14990) 2019-08-18 21:11:33 -05:00
InsanityAutomation af5a7a2925 Add missing ExtUI user confirmation (#14992) 2019-08-18 21:03:26 -05:00
Robby Candra 33d54c0d5a Remove extra defines (#14983) 2019-08-18 21:00:20 -05:00
Scott Lahteine 403eefd272 Delete _Bootscreen.h 2019-08-18 20:18:58 -05:00
Scott Lahteine bc93ac53b5 Fix #define typo in configs 2019-08-18 19:51:55 -05:00
Scott Lahteine d2072f9ace Clean up PlatformIO lib_ignore (#14988)
Originally from #14832.

Users may need to delete platformio work folders before building.
2019-08-18 19:36:14 -05:00
Scott Lahteine c8e476ad60 Embed some items in HAS_LCD_MENU 2019-08-18 18:41:51 -05:00
Scott Lahteine 9a3ee3be53 [cron] Bump distribution date 2019-08-18 00:00:04 -05:00
Scott Lahteine 9d9e2deb9b Tweak UBL G29 status print 2019-08-17 20:15:10 -05:00
Robby Candra 823178c272 Use u8g int type for screen coordinates (#14965) 2019-08-17 19:58:38 -05:00
Ludy 6715fd159c Animated Marlin boot screen (#14961) 2019-08-17 18:40:01 -05:00
Scott Lahteine 9e49f154d8 [cron] Bump distribution date 2019-08-17 15:47:17 -05:00
Marcio Teixeira 8bdb3d9970 Add CONTROLLERFAN_SPEED_Z_ONLY (#14956) 2019-08-16 21:57:19 -05:00
AnHardt 587d4a6373 Repair display throttling (#14960) 2019-08-16 21:17:09 -05:00
J.C. Nelson fecf808d80 Fix lambda missing capture (#14969) 2019-08-16 21:15:27 -05:00
Bob Kuhn 66bfad3ced Fix missing U8glib.h include (#14966) 2019-08-16 20:06:32 -05:00
J.C. Nelson 1bcc5c98a9 MalyanLCD: Pause, resume, more ExtUI (#14852) 2019-08-16 20:02:35 -05:00
Scott Lahteine c3ff53a61c STM32 u8g defines
Suggested by https://github.com/MarlinFirmware/Marlin/issues/14742#issuecomment-515753814
2019-08-16 18:48:29 -05:00
Tim Moore 4575978a1f Fix auto power for chamber fan (#14922) 2019-08-16 18:42:24 -05:00
Marcio Teixeira 274934ad81 Add LULZBOT_TOUCH_UI (#14967) 2019-08-16 18:34:13 -05:00
Marcio Teixeira 179d6c4ed1 Add STARTUP_SCRIPT option. M17 parity with M18. (#14953) 2019-08-14 21:05:15 -05:00
Marcio Teixeira 36dfbaea8c Add missing function declaration (#14955) 2019-08-14 17:52:57 -05:00
Marcio Teixeira 263d7d37af "SD card" => "Media" (#14951) 2019-08-14 17:52:14 -05:00
Scott Lahteine 24ce8beb48 [cron] Bump distribution date 2019-08-14 00:00:11 -05:00
Tanguy Pruvot 4cc103958e Alfawise Flash EEPROM, Z Servo Probe (#14877) 2019-08-13 23:41:17 -05:00
Joseph Bozarth 0fbb26c28f M16 - Expected Printer Check (#14924) 2019-08-13 23:38:45 -05:00
Scott Lahteine a26b57a36d Minor pins cleanup 2019-08-13 19:40:08 -05:00
Acenotass 059f575d93 Update Russian language (#14940) 2019-08-13 19:19:44 -05:00
Timothy Hoogland a67830bf67 TH3D EZBoard is LPC1769 (#14936) 2019-08-13 00:03:42 -05:00
Tanguy Pruvot 03df3f4a88 Fix Python scripts unhandled quotes (#14926) 2019-08-12 19:50:34 -05:00
Tanguy Pruvot c6be989fca Store EEPROM config in flash (#14923)
Avoid confusion between the 2 possible SDs...
2019-08-12 19:48:46 -05:00
Marcio Teixeira 13d8dc0b79 Fix incorrect print stat in ExtUI (#14881) 2019-08-10 19:25:30 -05:00
Marcio Teixeira dc21e2e691 Increase XY nozzle offset range (#14882) 2019-08-10 19:24:41 -05:00
Marcio Teixeira fa533846a7 Bury easter egg deeper (#14883) 2019-08-10 19:23:37 -05:00
Giuliano Zaro af4bcb629a SAMD51 typo fix (#14885) 2019-08-10 19:22:48 -05:00
Ludy d7172a4558 Cleanup and conditions (#14886) 2019-08-10 19:22:18 -05:00
Johnny Eshak 03dbe16ccc Compiling M43 on invalid conversion (#14897) 2019-08-10 19:20:40 -05:00
Giuliano Zaro f085199f5b SAMD51: Some LCD pin fixes (#14915) 2019-08-10 19:19:52 -05:00
Giuliano Zaro d78086ccdc SAMD51: Neopixel pin mapping (#14913) 2019-08-10 19:18:32 -05:00
Eric Ptak 9c5086e6af [STM32F1] Simpler Flash EEPROM (#14829) 2019-08-10 19:14:31 -05:00
Tanguy Pruvot 0745d48993 Fix build with and without TOUCH_BUTTONS (#14912) 2019-08-10 18:22:11 -05:00
thisiskeithb e7aba49c49 Update PB5 to correct pin number (#14891) 2019-08-10 01:53:55 -05:00
thisiskeithb 5ea5d71258 Tevo Michelangelo config updates (#14895) 2019-08-10 01:52:26 -05:00
Tanguy Pruvot 5d2519ed50 Allow use of Fysetc SoftwareSerialM (#14893) 2019-08-10 01:45:36 -05:00
Robby Candra d2d71caa3b Clean up Touch pins. Better up/down touch response. (#14900) 2019-08-10 01:42:52 -05:00
Tanguy Pruvot 8cc0b4bf5e Revert "Edit STEPS_PER_MM integer only" (#14909)
This reverts commit 2d98bb39bd.
2019-08-10 00:58:21 -05:00
Giuliano Zaro 3129fd06f0 SAMD51: Update LCD pins (#14907) 2019-08-10 00:56:55 -05:00
Ludy 9479ec32f7 Fix Service Menu compile error (#14903) 2019-08-10 00:53:26 -05:00
Giuliano Zaro a7f1021265 Fix SPI_ENDSTOPS compile error (#14906) 2019-08-09 17:00:20 -05:00
Chris Pepper 2971b48a12 Use PlatformIO 4 default dir structure (#14879) 2019-08-08 08:29:33 -05:00
Scott Lahteine 9624c90cfb Remove HAL.h dependency in SoftwareSerial.h 2019-08-08 07:43:57 -05:00
Scott Lahteine a6f682d860 [cron] Bump distribution date 2019-08-08 06:39:53 -05:00
Scott Lahteine f3e4e6c68f Create FUNDING.yml 2019-08-08 06:07:11 -05:00
Scott Lahteine f9f20bb454 Allow py scripts to handle spaces in paths (#14876) 2019-08-08 05:38:24 -05:00
Fourmi eb3a3d249e Fix TouchMI probe movement (left side) (#14875) 2019-08-08 02:40:48 -05:00
Tanguy Pruvot 535018ef0e STM32F1: Dummy SoftwareSerial (as TMCStepper fallback) (#14861) 2019-08-08 02:25:52 -05:00
Ludy 528c9885f2 Fix wait_for_user + PAUSE_BEFORE_DEPLOY_STOW issue (#14831) 2019-08-08 01:52:20 -05:00
Scott Lahteine c8e30b6639 Fix code attempting to sprintf %f (#14869)
Arduino doesn't (always) support `float` formatting in strings. So either cast to `int` or use `dtostrf()` to fix these usages.
2019-08-08 01:51:37 -05:00
Giuliano Zaro 3e5620283e AGCM4 debug option (#14838) 2019-08-07 00:45:00 -05:00
Tanguy Pruvot 92c35d14a4 Non-fatal error from ps::access_start (#14845) 2019-08-07 00:43:00 -05:00
Scott Lahteine f13fbafe31 Tweak python string comparisons 2019-08-07 00:27:26 -05:00
Bob Kuhn 5873b0b032 [2.0.x] Autobuild formatting (#14857) 2019-08-06 23:33:07 -05:00
Tim Moore 77f637763c Overlord configs. Fix buzzer, redundant temp. (#14833) 2019-08-06 23:25:47 -05:00
Giuliano Zaro 535eeace5f Fix Bed, Chamber ADC condition (#14866) 2019-08-06 22:57:54 -05:00
Acenotass 3914bcfbb1 Russian correction (#14862) 2019-08-06 22:56:51 -05:00
InsanityAutomation 922b597f94 Fix Ender 3 chopper setting (24V) (#14851) 2019-08-06 22:56:04 -05:00
Tim Moore 0fa7d86918 Fix thermistor names (info menu) (#14860) 2019-08-06 22:54:18 -05:00
Tanguy Pruvot eecfcd124d Finish STM32F4 SD-based settings storage (#14844) 2019-08-06 22:53:11 -05:00
Scott Lahteine a0d782e46e STM32F7xx is gone 2019-08-06 04:58:58 -05:00
Scott Lahteine fd9f067a48 Robin FSMC / SPI pins 2019-08-06 04:57:49 -05:00
Scott Lahteine 4268c1f1a5 Tweak U20 config 2019-08-06 04:57:49 -05:00
Scott Lahteine 579e4396e2 Reduce STM32_F4_F7 pin warnings 2019-08-06 04:57:15 -05:00
Scott Lahteine fb579212ea Reduce unused function warnings 2019-08-06 04:56:17 -05:00
Scott Lahteine 1fe195926f Update configs with new sensorless options
Followup to #14044
2019-08-06 01:03:50 -05:00
Scott Lahteine fc39c925ca Grace period followup 2019-08-05 22:00:49 -05:00
Scott Lahteine a9c5d524bb Followup to MAX7219 / KILL_PIN patch
Co-Authored-By: Roxy-3D <roxy-3d@users.noreply.github.com>
2019-08-05 21:42:33 -05:00
Chris Pepper f499cecf0d Marlin Binary Protocol Mark II (#14817) 2019-08-05 20:41:53 -05:00
Robby Candra 5bc2fb022c THERMAL_PROTECTION_GRACE_PERIOD is obsolete (#14798) 2019-08-05 20:33:15 -05:00
Jason Smith 534c105a7a Fix 16-bit range check in TMenuItem::action_edit (#14834) 2019-08-05 20:02:29 -05:00
Acenotass 4af9908764 Update M48 command in the status line (#14816) 2019-08-05 20:01:40 -05:00
Scott Lahteine 8f0aedeead Reorder some language defines 2019-08-05 19:12:00 -05:00
Roxy-3D 6fdb0bec07 Resolve Kill pin & Max7219 Clock conflict on TREX-2+ 2019-08-05 14:36:50 -05:00
teemuatlut d4974ea719 TMC SPI Endstops and Improved Sensorless Homing (#14044) 2019-08-04 22:22:58 -05:00
Giuliano Zaro d493cafc4a Fix a memset pointer cast (#14823) 2019-08-04 22:06:36 -05:00
Scott Lahteine 4e58f9387a Onboard SD for MKS Robin
In response to #9771
2019-08-04 21:17:45 -05:00
Scott Lahteine 2d98bb39bd Edit STEPS_PER_MM integer only 2019-08-04 19:39:52 -05:00
Tim Moore e3660bca25 Overlord printer thermistor (#14815) 2019-08-03 20:57:56 -05:00
Scott Lahteine ab792d004c More PlatformIO aliases 2019-08-03 20:27:47 -05:00
George Fu f89eb8bf35 Fysetc Cheetah updates (#14800) 2019-08-03 18:12:35 -05:00
Tanguy Pruvot 4bd1e55093 STM32F1: Init EEPROM SPI pin modes (#14810) 2019-08-03 18:11:06 -05:00
Scott Lahteine 52a7a8cb26 Fix HOST_PROMPT_SUPPORT without LCD 2019-08-02 11:35:04 -05:00
Scott Lahteine 6285776943 Fewer Teensy 3.1/3.2 tests 2019-08-02 11:35:04 -05:00
Scott Lahteine 18c9182903 Match up write_data signatures 2019-08-02 11:09:07 -05:00
Scott Lahteine 2e27e3ba04 Patch up Teensy 3.1/3.2 pins, tests 2019-08-02 10:01:55 -05:00
Ludy 337361d588 Update German language, (c) (#14804) 2019-08-02 09:21:28 -05:00
Scott Lahteine 8119e511a1 Patch some (c) messages 2019-08-02 07:47:33 -05:00
yangwenxiong 6132cf900b STM32F4x SD-based settings storage (#14808) 2019-08-02 07:40:27 -05:00
Giuliano Zaro 21993b75f4 SAMD51 Servo class (#14781) 2019-08-02 07:37:41 -05:00
Tanguy Pruvot 8efa3455c2 STM32F1: Reduce binary by 2K by dropping full path asserts (#14807) 2019-08-02 07:28:38 -05:00
Scott Lahteine e85eca2630 HAL cleanup, Teensy 3.1 platform 2019-08-02 07:22:26 -05:00
Tim Moore 940c59d9da Overlord i2c LCD with LEDs and buzzer (#14801) 2019-08-02 06:19:45 -05:00
Scott Lahteine e1942715ce HAL_STM32F1_EEPROM_SIZE => HAL_EEPROM_SIZE 2019-08-02 06:18:36 -05:00
Scott Lahteine ee5e46b46b Patch PrintJobRecovery::filename 2019-08-02 05:21:55 -05:00
Scott Lahteine fd945d1070 More generic EEPROM data array name 2019-08-02 04:40:34 -05:00
Tanguy Pruvot 3334163e73 STM32F1: Align SD EEPROM data for SDIO (#14809) 2019-08-02 04:12:46 -05:00
Scott Lahteine 70ce4f5b36 Move job recovery filename 2019-08-02 02:24:15 -05:00
Scott Lahteine 9ac348ef7b SDPOWER => SDPOWER_PIN 2019-08-02 02:24:15 -05:00
Scott Lahteine 5e2582a31b Comment spacing 2019-08-02 02:24:15 -05:00
mekius 7682751646 Fix HOME_BACKOFF_MM type (#14805) 2019-08-01 20:32:45 -05:00
Robby Candra 96a1c6540e Use title case for menu items (#14806) 2019-08-01 20:31:58 -05:00
InsanityAutomation f59a7e8b07 Print/display ABL current probe point (#14788) 2019-08-01 20:11:26 -05:00
Tim Moore 3765e67434 Dreammaker Overlord pins (#14791) 2019-07-31 21:15:36 -05:00
InsanityAutomation 6f8b8c394d Homing backoff per-axis / delta Z (#14789) 2019-07-31 20:50:23 -05:00
Benjamin Reed 0c035c0a7a Fix 'pause_menu_response' compile error (#14792) 2019-07-31 17:21:25 -05:00
Tanguy Pruvot 3db1a80b4c Update French language (#14787) 2019-07-31 17:10:14 -05:00
Scott Lahteine f8b8cbfc53 Press the big red button on PlatformIO 4.0 2019-07-31 15:02:11 -05:00
Scott Lahteine c2b319360d Remove extra pragmas 2019-07-30 20:19:47 -05:00
Tanguy Pruvot 202d3ab3c9 Define STM32F1 GPIO for the preprocessor (#14785) 2019-07-30 18:58:03 -05:00
Eric Ptak fdbc733376 Return 'false' on EEPROM connection fail (#14776) 2019-07-30 17:43:45 -05:00
Robby Candra 128eed6b57 Option to reverse select direction/buttons (#14693) 2019-07-30 17:42:57 -05:00
Gustavo Alvarez 27952648cf Fix M122 column alignment (#14779) 2019-07-30 17:11:17 -05:00
Giuliano Zaro eb08aeab7d Update Italian language (#14782) 2019-07-30 17:09:01 -05:00
pinchies d98b9d54f1 JGAurora A5S & A1 touch support (#14768) 2019-07-30 17:08:11 -05:00
Scott Lahteine c1b99c43b6 [cron] Bump distribution date 2019-07-30 05:07:39 -05:00
InsanityAutomation 0b154c2d71 Enable runout sensor in EEPROM by default (#14771) 2019-07-30 05:01:56 -05:00
Scott Lahteine bc58e678bd More general FSMC display option 2019-07-30 04:25:55 -05:00
Scott Lahteine c942ca130f More general TOUCH_BUTTONS comment 2019-07-30 04:22:27 -05:00
Scott Lahteine e349b1c920 Bring some configs up to date 2019-07-30 04:22:27 -05:00
Acenotass 659d06d9b9 M48 menu item, result to status (#14772) 2019-07-30 02:31:14 -05:00
rafaljot e44fccf3d2 Add support for M575 (#14757) 2019-07-30 02:30:00 -05:00
MarcelMo f8aa52346f Configurable Z move distance (#14593) 2019-07-30 02:16:26 -05:00
Scott Lahteine 842466f4d9 Mixer patch, etc. 2019-07-29 22:20:28 -05:00
Scott Lahteine 1165c26ab4 Trailing whitespace 2019-07-29 19:46:54 -05:00
Scott Lahteine eae543adf3 Apply HAS_SPI_LCD as needed 2019-07-29 18:55:05 -05:00
Scott Lahteine 8837cd3b53 [cron] Bump distribution date 2019-07-29 18:46:40 -05:00
Marcio Teixeira eb7840dabb Match select item to encoder direction (#14673) 2019-07-29 00:02:42 -05:00
Scott Lahteine e5d73f68c8 HAL folder organization (#14763) 2019-07-28 23:55:24 -05:00
Marcio Teixeira eefe3f595a New options: Bootscreen as Info, game Easter-egg (#13829) 2019-07-28 22:47:20 -05:00
Scott Lahteine 180f9a4c22 Remove obsolete info menu includes 2019-07-28 20:20:33 -05:00
Ludy c4bb458763 BUZZ cleanup (#14760) 2019-07-28 19:14:50 -05:00
Scott Lahteine 6b02b89ab4 Update serial sub-unit descriptions 2019-07-28 17:38:37 -05:00
mikeshub 1579091c20 PID loop improvements (#14746)
* Fix macro evaluation in `temperature.cpp`
* Improve bed PID, PID debug output
* Add min PID power define
2019-07-28 15:50:25 -05:00
thisiskeithb e8e81d3609 Fix MKS Robin Lite pins include (#14755) 2019-07-28 14:56:05 -05:00
Giuliano Zaro 290466578f Adafruit Grand Central M4 (#14749) 2019-07-28 14:48:29 -05:00
Marcio Teixeira fec52e61ea Use shared memory space for game data (#14727) 2019-07-28 01:44:16 -05:00
Scott Lahteine 17abb94532 Whitespace patch 2019-07-28 01:29:23 -05:00
Ludy 97e9c95f47 Fix & clean up ExtUI (#14748) 2019-07-27 22:44:05 -05:00
Eric Ptak 59e97e5e52 FYSETC Cheetah 1.2 (#14723) 2019-07-27 21:21:54 -05:00
InsanityAutomation 2351592abf Overridable TMC serial pins, update TMC2209 docs (#14751) 2019-07-27 20:34:22 -05:00
thisiskeithb d74efd9d46 MKS Robin Lite/Lite2 Board Support (#14729) 2019-07-27 04:43:37 -05:00
Benjamin Reed 7084f3647a Flag to reduce Melzi binary size (#14730) 2019-07-27 04:36:22 -05:00
Marcio Teixeira 1c3df51f87 vsnprintf patch redux (#14725) 2019-07-27 04:34:49 -05:00
Bo Herrmannsen bf610d87f7 Fix a bad MKS SGen-L pin (#14735) 2019-07-27 04:18:49 -05:00
Fourmi d34364a086 Default TOUCH_MI_DEPLOY_XPOS to min X (#14736) 2019-07-26 21:57:13 -05:00
Ludy ead6bb267d Add Z3 SanityCheck, revert early sanity change (#14717) 2019-07-24 22:32:49 -05:00
Scott Lahteine a3dc1e461b Update M7219 comment, tweak parameter code 2019-07-24 21:09:51 -05:00
Chris Pepper b6095fd084 Reduce default LPC176x ADC lowpass filtering 2019-07-25 00:40:51 +01:00
Scott Lahteine 1088846cae Cosmetic updates from 14044 2019-07-24 01:52:36 -05:00
Scott Lahteine 05f4033a34 Prevent a name conflict in u8g impl file 2019-07-24 01:01:03 -05:00
Marcio Teixeira 585a8a96b4 Fix extraneous redefine of vsnprintf_P in Marduino.h (#14712) 2019-07-23 17:18:53 -05:00
Giuliano Zaro 7085781c71 Include configs in serial.h (#14714) 2019-07-23 16:40:54 -05:00
Marcio Teixeira 369fb2806d Fix compilation warnings, errors (#14704) 2019-07-22 20:08:54 -05:00
Scott Lahteine a589456a14 Tweak mark/range/quantity conditions 2019-07-22 07:16:42 -05:00
Scott Lahteine 601b2d9f51 Send slightly less data to Max7219 2019-07-22 07:16:42 -05:00
Scott Lahteine 79f49040f1 Patch some Max7219 comments 2019-07-22 07:14:07 -05:00
Eric Ptak a6bec53905 Fix FYSETC stm32flash usage (#14703) 2019-07-22 05:33:34 -05:00
Scott Lahteine 5c3ec6306f Max7219 side-by-side arrangement (#14702) 2019-07-22 05:22:21 -05:00
Scott Lahteine a7c41d28af Max7219 non-functional tweaks 2019-07-22 04:24:16 -05:00
Giuliano Zaro 1005f225f3 Remove unused defines, fix typo (#14699) 2019-07-21 21:44:03 -05:00
mikeshub d9303b2137 Fix MAX6675_SEPARATE_SPI boot loop (#14698) 2019-07-21 21:36:00 -05:00
Scott Lahteine f96d2a5b4a Update pins_STEVAL.h 2019-07-21 21:25:14 -05:00
Tanguy Pruvot dca0c3d02a Fix SPI comments, clean up U20 pins (#14700) 2019-07-21 20:23:41 -05:00
Scott Lahteine 7501e40e0b APB comment correction 2019-07-21 20:13:36 -05:00
InsanityAutomation dc6fa04f68 Fix single nozzle temp change, do slower extra prime (#14696) 2019-07-21 19:33:37 -05:00
Tim Moore e5aa453293 Add support for 2 Neopixel strips (#14667) 2019-07-20 23:14:09 -05:00
Scott Lahteine 6899ed2026 Update some platform includes 2019-07-20 22:20:09 -05:00
BigTreeTech a38b9da672 STM32F1 SPI1 bugfix (#14679) 2019-07-20 20:35:41 -05:00
reloxx13 5b2fd3ad86 Add Discord link to issue template (#14690) 2019-07-20 17:22:33 -05:00
Scott Lahteine 93adb7e944 Some comment patches 2019-07-20 16:46:59 -05:00
InsanityAutomation 9cd66f6f77 Fix missing include & condition (#14682) 2019-07-20 01:55:34 -05:00
Tanguy Pruvot 977cfa4494 Fix a few recent (STM32F1 DOGM, SPI) warnings (#14669) 2019-07-20 01:54:01 -05:00
Ludy 39e1726498 Comments, includes (#14671) 2019-07-20 01:41:34 -05:00
Ludy b714cfd4f0 MKS GEN v1.3/1.4 undef STAT_LED_*_PIN (#14644) 2019-07-19 06:12:57 -05:00
wookie666 00e2f6da8f Improve magnetic dock switching toolhead (#14663) 2019-07-19 06:07:26 -05:00
Robby Candra 71d8c6f742 Fix LCD sanity check (#14678) 2019-07-19 05:53:36 -05:00
Jamie a80b1e6d5f Fix broken Flattr link (#14677) 2019-07-19 00:09:32 -05:00
Scott Lahteine fd2bc3a212 [cron] Bump distribution date 2019-07-19 00:00:09 -05:00
Scott Lahteine 4cc83b6330 Allow THERMAL_PROTECTION_GRACE_PERIOD override
Co-Authored-By: MarcelMo <marcelmo@users.noreply.github.com>
2019-07-18 23:38:03 -05:00
Tanguy Pruvot f0be92259b PIO env, Travis test for STM32F407VE (#14674) 2019-07-18 22:38:03 -05:00
Scott Lahteine 1ea9a36d11 FYSETC BLTouch config and more (#14668) 2019-07-18 05:54:50 -05:00
Scott Lahteine 92e513e76e Trailing whitespace 2019-07-18 05:51:36 -05:00
Msq001 6920b7fe91 BigTreeTech SKR E3 DIP (#14638) 2019-07-18 05:43:49 -05:00
Karl Andersson d472934a70 FYSETC Mini 12864 for HAL_STM32 (#14639) 2019-07-18 05:42:16 -05:00
Scott Lahteine ec13aa0dc1 Misc. whitespace 2019-07-18 05:13:55 -05:00
Scott Lahteine 3d153486da Fysetc rename Part 2 2019-07-18 04:36:08 -05:00
Scott Lahteine 5c15f6f64b Fysetc rename Part 1 2019-07-18 04:34:58 -05:00
Scott Lahteine 68108789d0 Add'l toolchange syncs 2019-07-18 02:44:21 -05:00
Scott Lahteine fac0e63058 Clean up tool-change syncs (#14666) 2019-07-18 02:17:46 -05:00
Scott Lahteine 42b5ccafc9 Toss obsolete DEBUG_LEVELING_FEATURE tests 2019-07-17 20:26:48 -05:00
Marcio Teixeira ca4d6f4470 Fix compile error (bad return type) (#14660) 2019-07-17 19:49:26 -05:00
thisiskeithb 522df57a45 Tevo Michelangelo configuration (#14577) 2019-07-17 19:47:14 -05:00
Robby Candra c9aa68ef7a Encoder direction: Wrangle, Revert select screen change (#14628) 2019-07-17 19:41:15 -05:00
Chris Pepper 9e19f004d0 Update Travis to Ubuntu "Bionic" (#14664) 2019-07-17 19:12:40 -05:00
Marcio Teixeira 839255eed4 Fix for M504 changing filament runout value (#14661)
Fixes #14476
2019-07-17 19:11:45 -05:00
Scott Lahteine 305f277843 Drop old includes in serial.h 2019-07-17 05:49:20 -05:00
thisiskeithb 523feeee3c Tevo Tornado configuration (#14576) 2019-07-17 04:54:59 -05:00
Tanguy Pruvot 9dfa5ba3a5 XPT2046: Handle MKS touchscreen w/out PenIRQ pin (#14640) 2019-07-17 04:41:10 -05:00
Jason Smith f2c5740d06 Add 'E' argument to G34 to allow stowing between probes (#14533)
- Use the return value from probe_pt during `G34`
  Eliminate the assumption that probe_pt leaves current_position set to values relative to the probed points. This is not always true, depending on the raise_after argument.
- Add '`E`' argument to `G34` command allowing stowing between each probe.
2019-07-17 04:23:19 -05:00
Robby Candra 2c5436e315 Fix HOST_PROMPT_SUPPORT include in ExtUI API (#14650) 2019-07-17 04:23:19 -05:00
InsanityAutomation b8cc61262f Finish G12, update Nozzle::clean (#14642) 2019-07-17 04:23:19 -05:00
Marcio Teixeira 57ed063ba1 Fix unused variable warnings (#14643) 2019-07-17 03:16:10 -05:00
Scott Lahteine 06324df072 Apply some #ifndef 2019-07-17 03:14:44 -05:00
Marcio Teixeira 27c487bab7 Print progress enhancements (#14647) 2019-07-17 03:14:44 -05:00
Robby Candra ebb1a7dc1f Fix EXT_UI example onFilamentChange Parameter (#14649) 2019-07-17 03:05:23 -05:00
Scott Lahteine 5ccf8c2c33 Fix serial.h indents 2019-07-17 02:03:25 -05:00
Scott Lahteine ef2a2eb984 Temp tweak 2019-07-17 02:03:25 -05:00
Ludy abc9b52692 Update copyright in header, etc. (#14645) 2019-07-16 22:42:36 -05:00
Scott Lahteine 5535a047d7 [cron] Bump distribution date 2019-07-16 00:00:08 -05:00
Tanguy Pruvot bae8d0a4bd DOGM: Avoid white flash on TFT (re)init (#14631)
- Avoid white flash on TFT (re)init. Unlike Graphical LCD, the TFT init color may be full white if the backlight is on during init.

- Add a conditional for delayed backlight init which can be applied to any backlit display.
2019-07-15 17:36:16 -05:00
thisiskeithb 02859eb2b1 Remove Ender-3 README.md (#14632) 2019-07-15 17:19:19 -05:00
thisiskeithb 3d75490b6e Set correct Ender-5 bed size (#14633) 2019-07-15 17:18:27 -05:00
Scott Lahteine 93bc1b17f9 [cron] Bump distribution date 2019-07-15 00:00:08 -05:00
Simon Jouet f0de56a797 ESP32 HAL - Dynamic ADC attenuation (#14623) 2019-07-14 23:32:48 -05:00
Tanguy Pruvot 81d629bc47 Robin & Longer3D SPI TFT driver (#14595) 2019-07-14 18:16:26 -05:00
Tanguy Pruvot 45bde333d5 Initial Longer3D LK1/2 (Alfawise U20/U20+/U30) support (#14597) 2019-07-14 18:05:24 -05:00
Jeonghwan Noh 475ccfad62 Oscar (by Thinknthings of Korea) board support (#14574) 2019-07-14 15:36:03 -05:00
Scott Lahteine fdaa374490 Clean up pins self-checks 2019-07-14 15:34:14 -05:00
Scott Lahteine 77b4f23edc Update pins comments 2019-07-14 15:19:22 -05:00
Scott Lahteine 1204f2fca8 Fix some config spacing 2019-07-14 13:11:41 -05:00
Scott Lahteine d4be970c8b Update DOGLCD conditions 2019-07-14 13:10:13 -05:00
Scott Lahteine 39a5e3ca6e mftest: Fix multi-line commands 2019-07-14 13:09:16 -05:00
Scott Lahteine 74e1573b14 Update megaatmega2560-tests 2019-07-14 13:09:16 -05:00
Scott Lahteine 2d84bcb4cd Simplify, update LCD sanity-check 2019-07-14 13:09:16 -05:00
Scott Lahteine eaf1c0954e Update some precompiler tests 2019-07-14 13:09:16 -05:00
InsanityAutomation ce02c6cee2 Variable tool change purge (#14618) 2019-07-14 11:40:58 -05:00
Marcio Teixeira cbe4bf2ba8 Fix process_injected_command undefined behavior (#14602) 2019-07-14 10:12:48 -05:00
Ringel e139c1d9d9 Fix ESP32 i2s stream, add PWM to extended pins (#14592) 2019-07-14 10:08:14 -05:00
Msq001 21e1148d98 Remove upload_protocol "cmsis-dap" (#14606) 2019-07-14 09:43:38 -05:00
Marcio Teixeira a49478cefa Fix STATUS_MESSAGE_SCROLLING in LIGHTWEIGHT_UI (#14603) 2019-07-14 09:39:03 -05:00
thisiskeithb bcbd2ff21c Fix Ender-5 Z axis settings (#14605) 2019-07-14 09:32:43 -05:00
InsanityAutomation d2f20803ba Allow nozzle clean with limited Axis (#14619) 2019-07-14 06:58:53 -05:00
Ludy 6dcb85927a Update German language, &c. (#14613) 2019-07-14 04:34:55 -05:00
Robby Candra e96468566d Fix Z_PROBE_END_SCRIPT in ABL (#14621) 2019-07-14 04:28:38 -05:00
Scott Lahteine a85cd042d8 [cron] Bump distribution date 2019-07-14 00:00:09 -05:00
Scott Lahteine 91bb0f5439 [cron] Bump distribution date 2019-07-13 00:00:09 -05:00
Scott Lahteine b2b7c583eb Pins cleanup 2019-07-12 23:07:52 -05:00
Karl Andersson 82cafc9b19 pins_ARMED overrides STM32 defines (#14587) 2019-07-12 06:06:04 -05:00
Giuliano Zaro 65a2903aab Upgrade Travis CI to Python 3.7 (#14588) 2019-07-12 05:59:14 -05:00
Scott Lahteine d3add3c34f Init servo macro, j/b 2019-07-12 04:53:50 -05:00
InsanityAutomation f1eaed7e98 Only init servo pins used for servos (#14589) 2019-07-12 04:30:15 -05:00
scotthsl 19b24a349c Fix M412 without HOST_ACTION_COMMANDS (#14591) 2019-07-12 04:23:33 -05:00
Giuliano Zaro 4a5f135c5d PIO 4 strict parser fix (1 => chain) (#14586) 2019-07-12 04:20:34 -05:00
Scott Lahteine 89964ec30d [cron] Bump distribution date 2019-07-12 00:00:08 -05:00
Giuliano Zaro cd36809c06 Fix STM32F7 compile error (#14583) 2019-07-11 15:23:53 -05:00
Scott Lahteine 3cd9a92dcc Use REVERSE_ENCODER_DIRECTION in do_select_screen 2019-07-11 15:17:26 -05:00
Scott Lahteine 80c6f98d2f Fix nested _draw_chamber_status
Co-Authored-By: alexscarbro <alexscarbro@users.noreply.github.com>
2019-07-11 14:51:26 -05:00
Scott Lahteine b0d8ba3894 Fix ANIM_CHAMBER
Co-Authored-By: alexscarbro <alexscarbro@users.noreply.github.com>
2019-07-11 14:36:02 -05:00
Ludy 70586d3a6c Update (c) comments (#14584) 2019-07-11 13:48:15 -05:00
Pavel4e5 8babf55b18 Init ADC keypad analog input (#14585) 2019-07-11 13:47:41 -05:00
Scott Lahteine 948c3f580b Clean up some LCD conditions 2019-07-11 06:11:19 -05:00
Scott Lahteine 3218c4b33f Shorten some config descriptions 2019-07-11 05:45:27 -05:00
Scott Lahteine 179095c387 Pins cleanup 2019-07-11 05:29:24 -05:00
thisiskeithb 42be684e69 Wanhao Duplicator i3 Mini support (#14559) 2019-07-11 04:36:51 -05:00
Scott Lahteine 340d827dc1 Fix mega/ subfolder pins
Followup to #14573
2019-07-11 02:59:02 -05:00
Scott Lahteine 7de605c5c3 Move pins files to subfolders #14573 2019-07-11 02:32:24 -05:00
Scott Lahteine e5a5273edb [cron] Bump distribution date 2019-07-11 00:00:10 -05:00
Scott Lahteine 98c6c6f1aa Combine STM32F4 and STM32F7 (#14566)
* Serial assert (needs work)

* Bring STM32F4/F7 together

* Tweaks to STM32 headers

* More general 'stm32_timer_t'

* Move vsnprintf_P to Marduino.h
2019-07-10 22:05:34 -05:00
Giuliano Zaro caa87d5fe1 SD2Card cleanup (#14571) 2019-07-10 22:04:16 -05:00
Scott Lahteine ad1c061e7b Bring STM32F4/F7 together 2019-07-10 07:07:04 -05:00
Scott Lahteine 4e479caf61 Fix mis-use of LIMIT 2019-07-10 07:07:04 -05:00
Scott Lahteine cf9ac4c847 Move vsnprintf_P to Marduino.h 2019-07-10 07:07:04 -05:00
Scott Lahteine f7de453da8 More general 'stm32_timer_t' 2019-07-10 07:07:04 -05:00
Scott Lahteine 828cc71847 Tweaks to STM32 headers 2019-07-10 07:07:04 -05:00
Scott Lahteine 94f2e82897 Serial assert (needs work) 2019-07-10 07:07:04 -05:00
Tanguy Pruvot 881e5a48bc Fix M43 warning, XL density timers (#14555) 2019-07-10 06:30:57 -05:00
Scott Lahteine d4c210f21b Fix and improve mftest 2019-07-10 05:56:01 -05:00
Scott Lahteine 44c8f29e47 More board name cleanup 2019-07-10 05:54:15 -05:00
Scott Lahteine ed0e6afacb Apply LIMIT macro 2019-07-10 03:35:39 -05:00
Scott Lahteine 9817976375 [cron] Bump distribution date 2019-07-10 00:00:08 -05:00
Ludy a7bb1fc322 Fix Dual X,Y,Z UART pins in relation to TMC2208/9 (#14554) 2019-07-09 22:52:48 -05:00
Scott Lahteine f990ebfb09 Tweak STM32F4/7 eeprom emulation (#14563) 2019-07-09 22:49:58 -05:00
Scott Lahteine 056efaba91 Clean up section comments 2019-07-09 22:34:21 -05:00
Scott Lahteine a23021b823 Add 'mfhelp' script
Not all scripts answer --help yet. This will be added to 'mfinfo' soon.
2019-07-09 21:40:20 -05:00
Scott Lahteine 5519054f50 Improve BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE (#13740) 2019-07-09 21:35:07 -05:00
Scott Lahteine 3ae3bf5d33 Get E2END from pins, fix Linux buffer 2019-07-09 21:32:13 -05:00
Scott Lahteine 01e8813286 EEPROM_EMULATED_WITH_SRAM => SRAM_EEPROM_EMULATION 2019-07-09 21:31:33 -05:00
Scott Lahteine cb60001784 Clean up BOARD_NAME in pins 2019-07-09 21:31:06 -05:00
Scott Lahteine c0e917ea83 DUE/usb should use platform min/max 2019-07-09 19:31:07 -05:00
gmarsh ab99a80793 GMARSH X6 board support (#14550) 2019-07-09 00:30:08 -05:00
Scott Lahteine 84d0bc5c17 OLED LCD section 2019-07-08 23:58:04 -05:00
Scott Lahteine a2ba0aaaac HAL include and other adjustments (#14525) 2019-07-08 23:42:29 -05:00
Emilio Moretti be37c38aa2 Fix Ender-2 LCD contrast
Changed the default to overcome the changes in:
5018fdacbe
This commit exposed a bug because the Ender-2 was using a MINIPANEL lcd
and getting default values that were too low, so the text was too weak.
However, the panel should be MKS_MINI_12864, since it
explicitly sets the correct contrast without relying in the defaults.
2019-07-08 23:14:04 -05:00
Ludy ba22857f93 Allow override of TMC_SW_* pins, etc. 2019-07-08 23:13:28 -05:00
Scott Lahteine 1a349c7522 Add HAS_TMC220x 2019-07-08 23:07:42 -05:00
Scott Lahteine 9821ec2afd Fix SKR Pro pins, STM32F1/4 sanity-check
Co-Authored-By: Msq001 <msq001@users.noreply.github.com>
2019-07-08 23:07:42 -05:00
Scott Lahteine 96d52649b8 mftest: Apply test changes and optionally build 2019-07-08 22:50:33 -05:00
Scott Lahteine 2b1c2a0db9 [cron] Bump distribution date 2019-07-08 00:00:11 -05:00
Tim Moore 8b81c0e88f LEDs to default on print completion (#14535) 2019-07-07 07:17:08 -05:00
Scott Lahteine e7307af42d [cron] Bump distribution date 2019-07-07 00:09:53 -05:00
Msq001 439e28783b BigTree SKR Pro V1.1 board support (#14523) 2019-07-06 21:52:17 -05:00
Ludy 3a75342508 Allow override of TMC_SW_* pins (#14528) 2019-07-06 21:25:48 -05:00
igorepi c1bb3278d4 Fix Russian grammar (#14527) 2019-07-06 21:24:57 -05:00
Ludy c0497234b9 SanityCheck Biqu SKR 1.1 => BigTree SKR 1.1 (#14526) 2019-07-06 21:24:10 -05:00
Roxy-3D cdf4ed87a1 Add back required precision for off printer mesh saves 2019-07-06 21:01:56 -05:00
Scott Lahteine 8916acf083 [cron] Bump distribution date 2019-07-06 00:00:09 -05:00
Tanguy Pruvot 8873c583d3 Prevent extra settings.load on boot (#14499) 2019-07-05 22:25:59 -05:00
Bob Kuhn dc02d0720d Pins Debugging for STM32 — NEEDS TESTING (#14309) 2019-07-05 22:08:06 -05:00
Tanguy Pruvot 052aa23efe STM32F1: ignore output check for analogWrite() (#14498) 2019-07-05 21:13:32 -05:00
Alexander Amelkin 7a42132002 GTM32 Pro pins updates (#14505) 2019-07-05 21:09:17 -05:00
thisiskeithb 10a71e332d Biqu SKR 1.1 => BigTree SKR 1.1 (#14514) 2019-07-05 20:57:08 -05:00
Vanessa Dannenberg 4fa8053638 RPW-Ultra thermistor table (#14517) 2019-07-05 20:37:05 -05:00
Ludy a210f80adc Sanity-check for CASE_LIGHT_PIN (#14518) 2019-07-05 20:18:43 -05:00
Scott Lahteine 253d0f9671 Some MIN/MAX rely on core 2019-07-05 20:07:48 -05:00
Scott Lahteine 535b70057e Oops. Don't undef MIN/MAX 2019-07-05 18:42:21 -05:00
Scott Lahteine 021c4ccf5f Fix SpindleLaser class
Fix #14465
2019-07-05 18:39:40 -05:00
Scott Lahteine fe02241044 NONE on combined options 2019-07-05 18:20:24 -05:00
Scott Lahteine 67e0238c89 Reduce type warnings 2019-07-05 18:20:24 -05:00
Scott Lahteine 750a16ad38 Fix MIN/MAX function collision with macros 2019-07-05 18:14:02 -05:00
Scott Lahteine b6546ea33a Add include guards to some headers 2019-07-05 04:02:08 -05:00
Scott Lahteine 8ff49d6b46 [cron] Bump distribution date 2019-07-05 03:48:50 -05:00
Scott Lahteine f69e02ef04 Update generate_version 2019-07-05 03:45:49 -05:00
Tanguy Pruvot 31450d9d6b M43: spi channels are not pins (#14502) 2019-07-05 02:03:01 -05:00
Roman Moravčík 9736a21de2 Update Slovak language (#14503) 2019-07-05 02:02:20 -05:00
Giuliano Zaro 2bf11da5ab Fix pin based on SOFT_SPI_CS (#14504) 2019-07-05 02:01:52 -05:00
Giuliano Zaro 66e16af29d SPI defines cleanup (#14506) 2019-07-05 01:59:37 -05:00
Tim Moore eb6dec03bd Simplify power supply naming logic (#14488)
Co-Authored-By: Tim Moore <tim.moore@lightbend.com>
Co-Authored-By: AnHardt <github@kitelab.de>
2019-07-05 01:58:34 -05:00
Scott Lahteine 44e4f853c8 Patch M_PI in Marduino.h 2019-07-04 19:58:08 -05:00
Scott Lahteine c6e6365e15 [cron] Bump distribution date 2019-07-04 15:56:02 -05:00
Roxy-3D 41b7f16ab8 Fix grammar of comment for G29 T command 2019-07-03 19:26:43 -05:00
Scott Lahteine ec4bfb0054 Fix LPC1768-tests labels 2019-07-03 19:11:59 -05:00
Scott Lahteine de462f2b8a Revert "Sort out settings.load with SD EEPROM emulation (#14458)"
This reverts commit 108d0df565.
2019-07-03 19:11:30 -05:00
Giuliano Zaro b7573c6e69 Remove unused WRITE_VAR, etc. (#14493) 2019-07-03 17:52:30 -05:00
GMagician 8be146642f Unused SPI PIN definitions 2019-07-03 17:49:55 -05:00
Scott Lahteine 6a2a10a154 Bump distribution date 2019-07-03 03:11:12 -05:00
Scott Lahteine 371969b531 Remove deprecated SCARA option 2019-07-03 02:43:33 -05:00
Scott Lahteine ae9232962e Use heater index defines 2019-07-02 23:29:43 -05:00
Scott Lahteine f7eeae8424 Indent a line 2019-07-02 21:34:40 -05:00
teemuatlut 8aad29fb6e Fix Prusa chopper timing preset 2019-07-02 20:51:33 -05:00
Scott Lahteine 1620738701 Home dir use < or > 2019-07-02 20:51:33 -05:00
Scott Lahteine 0f79fb9821 Generic stop pins (presume one endstop per axis end) 2019-07-02 20:30:26 -05:00
Scott Lahteine ce2b4bc20c Conditionals tweak 2019-07-02 20:30:26 -05:00
Ludy 3358caed14 Update German/Italian language (#14482) 2019-07-02 19:25:20 -05:00
Scott Lahteine 720bc7c00b Named indices for Temperature class (#14479) 2019-07-02 08:39:55 -05:00
Scott Lahteine 274809aced Bump distribution date 2019-07-02 05:54:06 -05:00
Scott Lahteine ff55088491 Fix Malyan LCD warnings 2019-07-02 04:36:02 -05:00
Scott Lahteine d4415dcf59 Fix analogWrite ambiguity 2019-07-02 04:36:02 -05:00
thisiskeithb d6265df962 115K baud for Ender-3 and -5 (#14471) 2019-07-02 03:14:01 -05:00
thisiskeithb c6f74ba887 TH3D EZBoard v1.0 (#14473) 2019-07-02 03:12:32 -05:00
Marcio Teixeira 16409eb233 Suppress more UNUSED warnings (#14466) 2019-07-01 20:42:38 -05:00
GMagician 82ecaa767e Remove unused code in M100
queue.buffer is in bss area, start_free_memory starts from heap then above of bss
2019-07-01 20:38:49 -05:00
GMagician 54358fbe28 Update Italian language 2019-07-01 20:37:59 -05:00
Scott Lahteine c28e08c849 Fix mintemp/maxtemp monitoring for thermocouples 2019-07-01 10:24:53 -05:00
Scott Lahteine de8fee6aea Clarify ExtUI command injection 2019-07-01 09:23:00 -05:00
Scott Lahteine 448d482d3c Update motherboard numbering (#14460) 2019-07-01 09:10:55 -05:00
Tanguy Pruvot 108d0df565 Sort out settings.load with SD EEPROM emulation (#14458) 2019-07-01 09:10:17 -05:00
Scott Lahteine 18e396b102 Update motherboard numbering 2019-07-01 07:06:38 -05:00
Msq001 c9be936d4a BigTreeTech SKR Mini E3 (#14457) 2019-07-01 07:06:25 -05:00
Aliaksei Kvitsinski 2f932a11b3 Park heads with electromagnet (#14023) 2019-07-01 05:55:23 -05:00
Scott Lahteine fb9d30673f platformio.ini compatible with PIO 3.x 2019-07-01 05:40:15 -05:00
Tanguy Pruvot ca7f56e60b Add 0.025mm Manual Move for Z (#14456) 2019-07-01 03:17:50 -05:00
Scott Lahteine 56c4a96180 Bump distribution date 2019-07-01 01:21:31 -05:00
thisiskeithb 4b9f6d531b Add links to Junction Deviation heading (#14272) 2019-07-01 01:17:53 -05:00
Scott Lahteine ced30b1054 Update ExtUI sanity checks 2019-07-01 00:50:22 -05:00
Scott Lahteine 10b85be405 status_message_level => alert_level 2019-07-01 00:47:08 -05:00
Tanguy Pruvot 24655a6bf3 Touch-MI Menu and Manual Deploy option (#14290) 2019-06-30 23:55:27 -05:00
Ludy dab2f0c89c Mask unused var, update (c) comments (#14455) 2019-06-30 22:29:33 -05:00
Ludy 0ca64a0ea3 Fix compile error with Z_PROBE_END_SCRIPT (#14447) 2019-06-29 23:20:49 -05:00
Scott Lahteine d16954dc88 Make KEEPALIVE_STATE a scoped auto-restore (#14446) 2019-06-29 22:49:50 -05:00
Tanguy Pruvot 19aafb9050 Fix STM32F1 motor shocks (stepper timer issue) (#14030) 2019-06-29 04:39:38 -05:00
Scott Lahteine 6550a222aa env_default => default_envs 2019-06-29 04:04:25 -05:00
Scott Lahteine 3ea073ace6 Slight reduction in serial.h file size 2019-06-29 04:04:25 -05:00
thisiskeithb 6978bb5ea5 Fix MKS Robin Nano FAN_PIN (#14444) 2019-06-29 02:11:26 -05:00
m0oml 688c53220d Creality3D CR-20 configurations (#14262) 2019-06-29 02:06:22 -05:00
th33xitus fe2c710b39 Fix for Arduino Due + 12864 Full Graphic Display (#14181) 2019-06-29 01:37:02 -05:00
Phr3d13 34c8204d25 STM32F1 SD EEPROM Emulation Fixes (#14261) 2019-06-29 01:34:54 -05:00
Marcio Teixeira e6cf7860e8 Improve ExtUI, fix compiler errors, warnings (#14441) 2019-06-29 00:23:57 -05:00
Scott Lahteine 14fb683682 Update examples 2019-06-29 00:14:27 -05:00
Scott Lahteine e89a47c8b5 Bump distribution date 2019-06-29 00:13:59 -05:00
Scott Lahteine b615b492ba Update some HAL comments 2019-06-28 23:10:40 -05:00
Scott Lahteine f39d025a80 Update default/Configuration_adv.h 2019-06-28 23:10:12 -05:00
Scott Lahteine 49027721e9 Clean up some pinsDebug headers 2019-06-28 22:50:56 -05:00
thisiskeithb 7f05f5e002 Creality3D Ender-5 configuration (#14416) 2019-06-28 22:17:05 -05:00
Scott Lahteine c9a8db33c3 Fix scaledFanSpeed 2019-06-28 21:24:47 -05:00
Darsey Litzenberger 946f6bdeaa Disable leveling during G12 (#14385) 2019-06-28 19:23:42 -05:00
Scott Lahteine b3f42d2519 Update SD host config comment 2019-06-28 19:13:27 -05:00
Scott Lahteine 872e172bcd Remove bootscreen timeouts matching default 2019-06-28 19:13:27 -05:00
Roman Moravčík 77c67085bf Update Slovak language (#14433) 2019-06-28 18:57:43 -05:00
Giuliano Zaro 9174aa376f Update Italian language (#14440) 2019-06-28 18:56:10 -05:00
Giuliano Zaro 07c998afe5 Fix E2END on RURAMPS (#14438) 2019-06-28 18:55:17 -05:00
Giuliano Zaro a9445d557e Remove extra #if (#14439) 2019-06-28 18:54:22 -05:00
Scott Lahteine 4d5a1984e2 Simplified fan handling code 2019-06-28 18:50:32 -05:00
Scott Lahteine a8d68b7c8a Common method for scaled fan speed 2019-06-28 15:34:17 -05:00
Scott Lahteine 1a09c4dea5 Cutter class followup 2019-06-28 15:34:17 -05:00
Scott Lahteine 9da02d2114 Help syntax highlighting (Sublime, et. al.) 2019-06-28 15:04:17 -05:00
Martin ae9afb333e Remove fwretract planner.synchronize calls (#14432) 2019-06-28 13:33:47 -05:00
Scott Lahteine 93cd66ac11 Tweaky change from (C) to (c) 2019-06-27 23:58:16 -05:00
Scott Lahteine d7d80418ae Singleton for cutting tools (#14429) 2019-06-27 23:06:49 -05:00
Scott Lahteine 2fde1475cb Allow SD card sharing on SKR Mini 2019-06-27 22:30:13 -05:00
Scott Lahteine 7e16835c83 Use LCD conditionals in pins files (#14428) 2019-06-27 22:14:43 -05:00
thisiskeithb 8b63e3701f MKS Robin Nano board support (#14363) 2019-06-27 21:33:41 -05:00
Tim Moore 81209f5310 'M105 R' to report redundant temp sensor (#14324) 2019-06-27 21:29:52 -05:00
InsanityAutomation 39c0c2aebe Add TMCStepper libs to lib_ignore for Melzi (#14322) 2019-06-27 16:57:38 -05:00
Scott Lahteine 6664b90bbb Init servo pins in HAL_init (#14425) 2019-06-27 16:29:17 -05:00
Tim Moore 8ce84fa44f Add temperature-based auto power options (#14397) 2019-06-27 16:28:07 -05:00
Scott Lahteine 00cc1079af Add missing chamber auto fan options 2019-06-27 16:05:47 -05:00
InsanityAutomation ce656e2a26 Update G-code injection, sub-commands (#14418) 2019-06-27 15:07:45 -05:00
Scott Lahteine decfe3424f Helper script updates 2019-06-27 13:23:55 -05:00
InsanityAutomation b961251899 Add Z_PROBE_END_SCRIPT to UBL (#14419) 2019-06-27 13:00:55 -05:00
Scott Lahteine 2580104c8b Revert recent probe changes
- Revert "Fix FIX_MOUNTED_PROBE compile error (#14393)"
- Revert "Fix G28 with non-BLTouch probes (#14381)"
- Revert "Fix BLTOUCH deploy/stow in HS mode (#14352)"
- Revert "Apply needed BLTouch patch (#14233)"

Co-Authored-By: AnHardt <github@kitelab.de>
2019-06-26 05:33:43 -05:00
thisiskeithb cd302f9464 Add MKS SGen-L Board (#14411) 2019-06-26 04:17:06 -05:00
Andy Shaw 064177154c Update SD card connection / sharing options (#14325) 2019-06-26 03:55:57 -05:00
BigIronGuru 9f136a7c67 Low-priority homing in G34 (#14391) 2019-06-26 03:52:01 -05:00
Scott Lahteine 49627069a5 Shorthand for home-after-deactivate 2019-06-26 03:47:55 -05:00
J.C. Nelson 30a3db4f22 Fix Malyan M200 config and protocol (#14394) 2019-06-26 03:35:52 -05:00
oechslein 8c55bd5451 Update "StallGuard threshold" heading (#14395) 2019-06-26 03:33:07 -05:00
Scott Lahteine 98f3a3d5c3 Bump distribution date 2019-06-26 03:15:31 -05:00
Msq001 e3846ec7a1 SKR mini can use 128x64 LCD (#14388) 2019-06-26 01:12:41 -05:00
Eric Ptak 8934b32f1b Fysetc AIO II / Cheetah STM32F1 (#14407) 2019-06-26 00:40:29 -05:00
Marcio Teixeira 8e23e9b16c Fix FIX_MOUNTED_PROBE compile error (#14393) 2019-06-25 04:55:29 -05:00
Tanguy Pruvot 07dac315a9 Up-to-date STM32F1 README (#14386) 2019-06-24 03:44:26 -05:00
thisiskeithb a4aa3621c0 MKS Robin Mini Board Support (#14366) 2019-06-24 03:42:22 -05:00
Scott Lahteine cf762d2c73 Fix enqueueing bug 2019-06-23 23:02:07 -05:00
BigIronGuru 12d21e642f Update G34 for non-BLTouch probes (#14380) 2019-06-23 20:55:43 -05:00
BigIronGuru 5986194c36 Fix G28 with non-BLTouch probes (#14381) 2019-06-23 20:53:05 -05:00
InsanityAutomation aa0383a83b Enhance IDEX toolchange auto-return w/ no park, full control (#14117) 2019-06-23 20:00:48 -05:00
Scott Lahteine 3d9d72e8db Include order, spacing, etc. 2019-06-23 04:02:52 -05:00
mikeshub 1b1a4677f5 Fix LCD.h compilation error (#14377) 2019-06-22 21:08:30 -05:00
sjasonsmith 07b41a8c3f Include SOLENOID_PROBE in leveling report (#14344) 2019-06-22 17:54:37 -05:00
thisiskeithb 71b2700c3c Anycubic Trigorilla 1.4 Rev. 1.1 (#14357) 2019-06-22 17:53:45 -05:00
BigIronGuru f5afaaef5b Fix probe.cpp warning (#14367) 2019-06-22 17:27:33 -05:00
BigIronGuru def4bb987d Reset, stow BLTouch before mode change (#14368) 2019-06-22 17:26:02 -05:00
Scott Lahteine 78557076ff Add planner.synchronize to UBL G29 2019-06-22 17:23:29 -05:00
BigIronGuru 6578aa4e1b Apply minimum timing to BLTouch commands (#14369) 2019-06-22 17:20:19 -05:00
teemuatlut 2247bf1ba5 Add missing dedge init for TMC2209 (#14370) 2019-06-22 17:00:15 -05:00
mikeshub 1db7013e3b Fix and improve PID loops (#14373)
- Windup guarding was missing. The kludge in place of windup guard is removed. D term filter calculations are simplified to require fewer `float` calculations. Sign change for D term output to make debugging output clearer.
- Use "no overshoot" for bed PID tuning.
2019-06-22 16:52:56 -05:00
Scott Lahteine 17778d1c2a Fix M916-918 subcommands 2019-06-22 16:18:42 -05:00
Tanguy Pruvot be69ec5b32 Fix PLR/M43 warnings (#14333) 2019-06-22 00:48:47 -05:00
BigIronGuru 9c83135d40 Only home Z at the end of G34 (#14353) 2019-06-22 00:43:33 -05:00
InsanityAutomation 5df051fdee Fix Start SD Print bug (#14354)
Followup to the G-code parser injection update.
2019-06-22 00:37:21 -05:00
LinFor 0f6f5132c1 Fix variable conflict in ok_to_send (#14351) 2019-06-21 19:04:30 -05:00
MrMabulous c41b005f33 Add Extra Probing option, discarding outliers (#14338) 2019-06-21 19:02:26 -05:00
BigIronGuru 8f99d45045 Fix BLTOUCH deploy/stow in HS mode (#14352) 2019-06-21 18:55:27 -05:00
Tobias Frost eeaef2410a Support DGUS Display with DWIN OS (#13253) 2019-06-21 04:47:23 -05:00
Scott Lahteine bb0bcbaec0 Suppress compiler warning 2019-06-21 02:20:40 -05:00
Tanguy Pruvot 52383633e7 STM32F1: M43 PINS_DEBUGGING (#14072) 2019-06-21 01:20:17 -05:00
Karl Andersson 81d550754a Fix "UNUSED" redefined warning on HAL_STM32 (#14342) 2019-06-21 00:48:10 -05:00
Karl Andersson 4b365552db Fix Marduino SBI/CBI redefine (#14341) 2019-06-21 00:46:23 -05:00
InsanityAutomation a9acd2f497 G34 configurable angle limit (#14321) 2019-06-20 21:18:36 -05:00
Scott Lahteine a31cb910f5 Tweak some config spacing 2019-06-20 21:08:47 -05:00
Marcio Teixeira 49ea1c635a Fix missing dependencies (#14339) 2019-06-20 16:37:20 -05:00
thisiskeithb 19d4a9ab77 Tevo Tarantula Pro configurations (#14335) 2019-06-20 16:09:30 -05:00
Scott Lahteine 4df4c47994 Add TMC2209 support (#14249) 2019-06-20 15:47:50 -05:00
Tanguy Pruvot ed0c70f0a0 SKRmini followup - Fysetc config updates (#14327) 2019-06-20 05:49:27 -05:00
Scott Lahteine c461af2f3a Reverse encoder/menu in configs 2019-06-20 05:31:18 -05:00
Scott Lahteine dd06017f64 Bring configs up to date 2019-06-19 01:03:51 -05:00
Scott Lahteine 9131b11944 Games in Info menu, if enabled 2019-06-19 00:03:32 -05:00
Scott Lahteine 4c872a01f2 G-code queue singleton, front injection (#14236) 2019-06-19 00:00:19 -05:00
Tanguy Pruvot 75aeb41ab7 SKRmini support for Fysetc Mini Panel (#14319) 2019-06-18 19:34:16 -05:00
InsanityAutomation bf64dd4db6 Improve G34, M422 (Z alignment) (#14142) 2019-06-18 07:02:18 -05:00
Tanguy Pruvot 391250b04f STM32F1: Don't toggle EEPROM SPI SS (#14299) 2019-06-18 06:48:20 -05:00
Giuliano Zaro 27d30c1be8 Update Italian language (#14302) 2019-06-18 06:45:34 -05:00
Scott Lahteine 3f6424076b Update M524 description 2019-06-18 05:04:55 -05:00
Scott Lahteine cf3631226b Document G-code M290 2019-06-18 04:53:31 -05:00
Scott Lahteine c12b6ba760 Add Dagoma F5 to Makefile 2019-06-18 04:40:00 -05:00
3DSmitty 5b13abcacb Fix SPI_SD Outside of HAL_STM32F1 (#14306) 2019-06-18 02:38:18 -05:00
Bob Kuhn 089d12df16 Fix duplicate board IDs (#14310) 2019-06-18 02:26:13 -05:00
Tanguy Pruvot 5307f42917 Include STM32F1 HAL in main README.md (#14285) 2019-06-18 00:23:35 -05:00
Ludy 2290b269dc Unused variable (#14301) 2019-06-18 00:15:41 -05:00
Scott Lahteine 6b2d42434c Wrap main menu external declarations 2019-06-17 21:44:56 -05:00
thisiskeithb da5bdea324 Artillery X1 - Disable Linear Advance (#14311) 2019-06-17 20:36:09 -05:00
Scott Lahteine aacb904e1f Adjust some config comments 2019-06-17 20:22:07 -05:00
Scott Lahteine 651f3eeed0 Clean up trailing whitespace 2019-06-17 20:22:07 -05:00
Ludy 35aabd1834 Fix Spindle/Laser compile error (#14312) 2019-06-17 18:38:43 -05:00
Scott Lahteine 21f377d94a STM32F1: various small changes (#14313)
- init the led pin as output (like other HALs)
- reduce sdio dma priority to normal.. highest is never the best...
- allow fsmc only on compatible STM32F1 (like HAL fsmc)
- fsmc: remove an useless C style cast
2019-06-17 17:48:50 -05:00
sensei73 ce5f94c8f4 Fix Touch-MI sanity checks (#14316) 2019-06-17 17:46:14 -05:00
Tanguy Pruvot 287df7a61f STM32F1: various small changes
- init the led pin as output (like other HALs)
- reduce sdio dma priority to normal.. highest is never the best...
- allow fsmc only on compatible STM32F1 (like HAL fsmc)
- fsmc: remove an useless C style cast
2019-06-17 10:27:30 +02:00
3DSmitty 66d51272af Fix SPI, SD for BIGTREETECH SKR Mini (#14287) 2019-06-15 18:12:05 -05:00
Scott Lahteine 903863dcb6 Suppress some warnings 2019-06-15 17:47:59 -05:00
Scott Lahteine eb1c9113c2 Try to init SD with no detect pin 2019-06-15 15:36:48 -05:00
Scott Lahteine 9a56a88200 Use OUT_WRITE in SPI pin init 2019-06-15 15:36:43 -05:00
Scott Lahteine 24c23b60fa Use lambda, fix wrap pointer 2019-06-15 15:36:42 -05:00
Tanguy Pruvot 1aa60bce32 Travis CI: Update to Xenial (#14286)
(bionic doesn't include g++7 ppa)
2019-06-15 14:31:35 -05:00
pinchies 3021097888 Add JGAurora A5S and A1 (STM32F103ZET6) (#14291)
- Now compiles and works correctly with changes to HAL timers and watchdog.
- Does NOT include awesome work on touch screen function.
- Does have working LCD and SD-based EEPROM.
2019-06-15 14:28:22 -05:00
Ludy 6fb3db1633 Update German language (#14294) 2019-06-15 14:26:14 -05:00
Scott Lahteine a17f057daa Fix word wrapping on select screens 2019-06-15 14:06:23 -05:00
Tanguy Pruvot f2cfa408b7 Touch-MI probe by hotends.fr (#14101)
A simple Z probe using a magnet to deploy a probe. See https://youtu.be/E7Ik9PbKPl0 for the sensor description...
2019-06-14 22:19:48 -05:00
Scott Lahteine 26de051e92 HAL SPI pin init cleanup 2019-06-14 20:17:25 -05:00
Scott Lahteine cfb44e4a26 Sublime project - add settings 2019-06-14 20:17:25 -05:00
Scott Lahteine 9722038ad3 Ender 3 baud to match Creality3D 2019-06-14 00:44:49 -05:00
Scott Lahteine 50c9b33ed7 !ENABLED => DISABLED 2019-06-14 00:44:49 -05:00
teemuatlut 29afd11cbf Updates for TMC2660 init (#14245) 2019-06-13 23:16:10 -05:00
Scott Lahteine dfdbd1e75f Use TEST macro where possible 2019-06-13 20:59:12 -05:00
teemuatlut 12a270fd29 Fix TMC5160 and TMC2160 PWMCONF init 2019-06-13 20:57:12 -05:00
Scott Lahteine fc73a8b004 Add AXIS_HAS_SQUARE_WAVE shorthand 2019-06-13 20:57:12 -05:00
mb300sd bf8bfb5c66 Add Coolant Control M7/M8/M9 (#10745) 2019-06-13 18:43:11 -05:00
Aliaksei Kvitsinski 648a91bce8 Support for Z-Bold board (#14024) 2019-06-13 03:21:18 -05:00
MastS 18904c42f6 Fysetc LCD backlight timeout (#14265) 2019-06-12 21:59:39 -05:00
Scott Lahteine 8bc3b80176 Add MULTI_NOZZLE_DUPLICATION test 2019-06-12 20:06:25 -05:00
Scott Lahteine bc2ff9b41f Fix M605 bugs
Fixes #14191
2019-06-12 20:01:08 -05:00
Scott Lahteine f7792c0192 Group manual move options 2019-06-12 19:49:18 -05:00
Scott Lahteine 2a21a9a062 Update some configs 2019-06-12 19:48:41 -05:00
thisiskeithb f93c60a6f0 Bring Sidewinder X1 config up to date (#14271) 2019-06-12 19:44:39 -05:00
Tanguy Pruvot 7d1eafc80a STM32F1: C++14 for static_assert, etc. (#14278) 2019-06-12 18:44:32 -05:00
Msq001 26e7e33698 Fix bug in STM32F1 WRITE macro (#14275) 2019-06-12 06:30:24 -05:00
Scott Lahteine 04715e04ee Minor M100 cleanup 2019-06-12 06:14:40 -05:00
Scott Lahteine 356410dcfc Move crc16 function to libs 2019-06-12 06:14:39 -05:00
Scott Lahteine 2a96d4e23a Move number-to-string functions to libs 2019-06-11 07:51:47 -05:00
Scott Lahteine 1ef95013f0 Update Marlin.cpp includes, defines 2019-06-11 07:30:51 -05:00
Kaushik Vemparala c88d9ae282 Option to leave heaters set on SD abort (#14251) 2019-06-10 23:57:55 -05:00
thisiskeithb 892f0e75ea Initial EVNOVO (Artillery) Sidewinder X1 Configs (#14065) 2019-06-10 23:41:22 -05:00
Tanguy Pruvot 8cf5504a34 Redundant but faster recovery.enabled test (#14175) 2019-06-10 23:33:35 -05:00
Tanguy Pruvot c3e5225531 Add SPI EEPROM to STM32F1 (#14239) 2019-06-10 23:30:23 -05:00
felixstorm 9439fab7fd Fix ESP32 servos, platformio.ini, etc. (#14247) 2019-06-10 23:22:19 -05:00
Phr3d13 a373d3f557 Geeetech A10 example (#14250) 2019-06-10 22:06:04 -05:00
yangwenxiong b0a4ea79b8 BigTreeTech SKR Mini v1.1 (#14041) 2019-06-10 21:10:51 -05:00
Robby Candra f30b89953d runout.distance_mm LCD edit item (#14066) 2019-06-10 20:18:06 -05:00
mikeshub a3f034b95e FFCP updates. Update XY soft endstops on tool_change (#14125) 2019-06-10 18:01:42 -05:00
InsanityAutomation b7eeb5b13b Move BLTouch options to adv config (#14131)
Plus other BLTouch and menu enhancements.
2019-06-10 17:46:42 -05:00
Scott Lahteine 0ca2073625 ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED => SD_ABORT_ON_ENDSTOP_HIT 2019-06-10 17:28:35 -05:00
thisiskeithb 662e7da8a4 Fix USE_BIG_EDIT_FONT bug (#14252) 2019-06-09 19:37:14 -05:00
teemuatlut cccc51ee0e TMC Square Wave Stepping mode (#14195) 2019-06-09 05:08:05 -05:00
Scott Lahteine 80ce0d2bdb Whitespace cleanup 2019-06-08 06:40:44 -05:00
Scott Lahteine 455f0de817 Undefine sanity check tests when done 2019-06-08 06:29:28 -05:00
Robby Candra 7e07a3888b Fix PLR Z bug affecting Cartesians (#14230) 2019-06-08 05:27:58 -05:00
Robby Candra 5ca8d51e12 Ability to insert G-code in front of queue (#14229) 2019-06-08 05:23:53 -05:00
BigIronGuru 293018f76c Apply needed BLTouch patch (#14233) 2019-06-07 21:43:20 -05:00
Scott Lahteine ffb76b75d7 fix TMC2208 boot loop with SW UART (#14135)
Need stepper .begin() before calling susbequent .push()
2019-06-07 07:27:10 -05:00
InsanityAutomation 4138b1f9ae Option to disable Case Light brightness control (#14165) 2019-06-07 07:23:42 -05:00
Tanguy Pruvot 764f0d9c1c STM32F1: Servo "soft" PWM via timer interrupt (#14187) 2019-06-07 07:11:48 -05:00
InsanityAutomation 66e22d9f5a ExtUI Heated Chamber support (#14198) 2019-06-07 07:08:41 -05:00
InsanityAutomation fda8606388 Fix Travis test of Azteeg X3 Pro (#14235) 2019-06-07 03:07:38 -05:00
Scott Lahteine 950fd4aa4c Dagoma Disco Ultima pins, thermistor, config (#14223) 2019-06-05 22:32:35 -05:00
Scott Lahteine 9206c0e869 Use limit switch overrides 2019-06-05 22:27:06 -05:00
Scott Lahteine 34d2801bbe Rename pins file (2) 2019-06-05 21:41:58 -05:00
Scott Lahteine fa3b5fb059 Uppercase pins filename 2019-06-05 21:41:58 -05:00
Scott Lahteine 858b2fa21a Fix thermistor table 2019-06-05 21:39:39 -05:00
InsanityAutomation f6ec00d776 Update thermistor and working config 2019-06-04 20:25:00 -04:00
InsanityAutomation bbcb61e042 Initial Commit - Add board 2019-06-03 23:49:19 -04:00
Tanguy Pruvot e4260a41cb Fix a DEBUG_LEVELING_FEATURE string copy (#14200) 2019-05-31 18:52:11 -05:00
Ryan 9d9030a39c Fix Archim1 SD card (#14184) 2019-05-30 19:58:38 -05:00
InsanityAutomation 123e58d9c3 Heated Chamber for Graphical LCD (#14190) 2019-05-30 18:31:50 -05:00
Scott Lahteine 93ab16c6e4 Remove old mixing ISR comment 2019-05-30 17:05:16 -05:00
Scott Lahteine 6572848d7f Fix stepper timing bug 2019-05-30 16:58:53 -05:00
Bob Kuhn 688b54d66a DUE USB composite device field corrections (#14185) 2019-05-30 16:26:48 -05:00
InsanityAutomation f889cc6ea6 ExtUI parity with SPI LCDs (#14172) 2019-05-30 16:24:13 -05:00
Scott Lahteine 07021c85c8 Tweak timer16_Sequence_t 2019-05-30 16:09:37 -05:00
Roman Moravčík d70929f7c0 Update Slovak language (#14179) 2019-05-30 15:57:14 -05:00
Tanguy Pruvot e3a468f2cd STM32F1: FSMC only on chips with 100/144 pins (#14180) 2019-05-30 15:51:02 -05:00
Ludy 8e8e48f900 Fix links in templates, gcode.h (#14160) 2019-05-28 21:39:55 -05:00
InsanityAutomation 34ae76025e Clear Pausing message after M600 park (#14171) 2019-05-28 21:36:14 -05:00
Ludy bd494a6bd6 Update defines for patched temperature macros (#14161) 2019-05-28 17:43:31 -05:00
doggyfan e09d8811c1 Apply grace period to thermistor failure testing (#14167) 2019-05-28 15:36:03 -05:00
InsanityAutomation 0f04ba016f Adjust tool offset menus (#14153) 2019-05-27 21:29:08 -05:00
teemuatlut bf4a0db97f TMC LCD followup (#14134) 2019-05-27 21:24:20 -05:00
Scott Lahteine 6d92a0a33b Add 'ghpc' helper script 2019-05-27 21:06:43 -05:00
Minims 32afe1d102 Fix TOOLCHANGE_ZRAISE warning (#14156) 2019-05-27 19:51:29 -05:00
Robby Candra 5515f88452 Clarify SD longname string size (#14148) 2019-05-27 19:50:48 -05:00
Tanguy Pruvot 5f42d3a8b4 BLTouch French updates (#14137) 2019-05-27 01:02:35 -05:00
Scott Lahteine d3bb5b69ba Apply NOLESS/NOMORE 2019-05-26 20:55:00 -05:00
Scott Lahteine b315157053 Apply const to mcp4728 2019-05-26 20:54:24 -05:00
Scott Lahteine 3c179bbd47 Simpler G28 home axis conditions 2019-05-26 16:26:55 -05:00
Scott Lahteine 352734494b Reduce some M43 strings 2019-05-26 16:21:28 -05:00
Scott Lahteine b14cc0d7c5 Remove extra gcode. prefix 2019-05-26 16:18:45 -05:00
Scott Lahteine c6d39319de Fix some whitespace 2019-05-26 16:18:43 -05:00
InsanityAutomation 212860f090 Always change to Tool 0 on G29 (#14146) 2019-05-26 14:53:21 -05:00
Giuliano Zaro 7b838f31be DUE HAL cleanup (#14126) 2019-05-26 14:51:32 -05:00
Chris 36a0376c36 fix TMC2208 boot loop with SW UART
Need stepper .begin() before calling susbequent .push()
2019-05-26 13:07:12 +02:00
Robby Candra df7733425c Shorten pause message for 4 line LCD (#14097) 2019-05-26 02:33:52 -05:00
Scott Lahteine 605ec0a478 Fix thermistor table warning 2019-05-26 01:30:20 -05:00
doggyfan 90121047d9 Fix thermal protection with user thermistor (#14130) 2019-05-25 23:37:08 -05:00
Scott Lahteine 81cee05476 Update some env in pins.h 2019-05-25 23:17:50 -05:00
Scott Lahteine 47fd74a98d Clean up fast_pwm.cpp 2019-05-25 23:05:01 -05:00
Scott Lahteine 49229d97db Consistent _useTimerX tests 2019-05-25 23:05:01 -05:00
Scott Lahteine 8924389dfc Tweak servo µs macros 2019-05-25 22:33:51 -05:00
InsanityAutomation 49e83dd7c8 BLTouch V3.1 changes (#14104) 2019-05-25 21:56:47 -05:00
Scott Lahteine 14fe41f6b2 Update Z probe offset comment 2019-05-25 19:41:15 -05:00
Scott Lahteine f8bede6b5e Fix some HAL includes 2019-05-25 19:20:17 -05:00
Bryan 0ef5d667b6 Fixed M43 parameter bug (#14099) 2019-05-25 18:23:25 -05:00
teemuatlut 1c86fbc60b TMC updates, capture LCD changes (#14074) 2019-05-25 18:22:12 -05:00
felixstorm 74f44783ac ESP32 servo support (#14109) 2019-05-25 18:12:24 -05:00
felixstorm bc5a1fe562 Various fixes for ESP32 (#14102) 2019-05-25 17:06:00 -05:00
Giuliano Zaro e1bf34bdc9 Ruramps4d typo fix (#14096) 2019-05-25 16:41:08 -05:00
Scott Lahteine 7cce6b8d68 Bring configs up to date (MANUAL_FEEDRATE) 2019-05-25 16:31:13 -05:00
Scott Lahteine 1210b73530 Geeetech A10M/A20M example updates 2019-05-25 16:31:13 -05:00
Scott Lahteine beb2ed145e List AZTEEG_X5_MINI SPI pins
Followup to earlier commit
2019-05-25 16:20:07 -05:00
Scott Lahteine 44caf70917 Improve editing, fix some small value editing 2019-05-25 15:29:00 -05:00
Scott Lahteine 612eaa87bd Fix "back" items in some sub-menus 2019-05-25 15:28:52 -05:00
Scott Lahteine c5dc2e5a71 Update advanced BLTouch menu items 2019-05-25 15:26:25 -05:00
Scott Lahteine 48d1bd29cb Shift m before compare to 0 2019-05-25 15:22:15 -05:00
InsanityAutomation 9f69fbe5ee Move some menu items (#14118) 2019-05-25 15:16:00 -05:00
Scott Lahteine fc52c43a26 Some documentation updates 2019-05-24 16:30:44 -05:00
Tanguy Pruvot 24b1818245 Secure STM32F1 servo code and M280 detach (#14085) 2019-05-22 16:57:19 -05:00
Scott Lahteine a49919396a LPC1768 MarlinServo => libServo 2019-05-22 16:54:52 -05:00
Scott Lahteine 2b5046659a Tweak Marlin headers, comments 2019-05-22 16:54:52 -05:00
Scott Lahteine cc862a8213 Replace some functions with lambdas 2019-05-22 16:54:35 -05:00
Ludy fafd73a3af Update copyright in headers (#14092) 2019-05-22 16:24:13 -05:00
Giuliano Zaro 2298923a9b Update Italian language (#14095) 2019-05-22 16:23:41 -05:00
Ludy 41f61a12b8 Update German language (#14093) 2019-05-22 16:23:16 -05:00
doggyfan 594f6b14be Limit user thermistor to 999, fix thermistor table macro (#14080) 2019-05-21 21:31:05 -05:00
Giuliano Zaro a74aad3b4a Clean up HALs / FastIO (#14082) 2019-05-21 18:28:12 -05:00
Scott Lahteine 4ef364a073 Sanity check probe offsets must be integers 2019-05-21 17:16:21 -05:00
Ivan Kravets 610abd7b88 Declare "teensy" platform, add ststm32 dev/platform (#14070) 2019-05-20 22:02:17 -05:00
Scott Lahteine cfca07852a Backlash linker error workaround
Fix #14045
2019-05-20 21:52:56 -05:00
Scott Lahteine aeec9ef76b Update backlash code 2019-05-20 21:34:08 -05:00
Scott Lahteine 7b4c3bd92a Fix call to synchronize in lcd_pause_job 2019-05-19 15:51:45 -05:00
Scott Lahteine 9bf65eacaa Remove old adv config heading 2019-05-19 15:24:01 -05:00
Pavel4e5 3cd19a8ec0 Improve Zonestar keypad responsiveness (#14056) 2019-05-18 20:52:55 -05:00
Tanguy Pruvot 402f1f7307 STM32F1: STM32_HIGH_DENSITY is auto defined in HAL (#14057)
- Fix the `fsmc` and `sdio` units which required hard defines for use.
2019-05-18 20:45:22 -05:00
Tanguy Pruvot 87e7193259 Fix M226 sign warning (for most platforms) (#14049) 2019-05-18 16:15:48 -05:00
Tanguy Pruvot 256f810df2 Add open-drain output mode to STM32F1 FastIO (#14050)
- This mode is often used/preferred to drive printer boards' MOSFETs.
- Can generally boost the allowed output power (for hotbed,nozzle and fans).
2019-05-18 16:12:00 -05:00
Bob Kuhn 1dad6e754b Neopixel background LED option (#14025) 2019-05-18 02:36:37 -05:00
InsanityAutomation 84ac5b360b Fix ExtUI mesh functions (#14027) 2019-05-17 20:37:23 -05:00
Scott Lahteine 9b5f9dda0e Update analog pins labels 2019-05-17 20:22:25 -05:00
FanDjango 85fb33a060 BLTOUCH tweaks, new v3.1 command (#14015) 2019-05-17 19:10:18 -05:00
GUEST.it 62ef54cb81 UBL: Log and display G29 progress (#14036) 2019-05-17 19:02:21 -05:00
GUEST.it 7907eec04c Fix power loss recovery with SINGLENOZZLE (#14033) 2019-05-17 18:47:15 -05:00
Scott Lahteine efe651e749 Add THERMISTOR_NAME for 1000 2019-05-17 18:26:53 -05:00
Scott Lahteine 0b056970c6 Fix file.open in STM32 eeprom emu 2019-05-17 18:26:53 -05:00
InsanityAutomation 06f3273531 Fix DELTA pulse wait bug (#14028) 2019-05-17 16:16:56 -05:00
Marcio Teixeira 7ccbcf2eaa Fix TMC EEPROM regression (#14008)
Partially undo 15357af to ensure TMC code is initialized in the proper order.
2019-05-16 20:38:03 -05:00
Marcio Teixeira 9558962d59 Fix DUE HAL SW SPI compile error (#14005) 2019-05-16 20:36:19 -05:00
Martin Zeman 737d3d9283 Ender-3: Add feedrate for E manual move (#13996) 2019-05-16 20:34:01 -05:00
InsanityAutomation 07afe69cee Fix some bad AZTEEG_X5_MINI pins (#14011) 2019-05-16 20:33:00 -05:00
Chris Pepper 451ea996c9 [LPC176x] Fix switch fallthrough 2019-05-15 10:35:26 +01:00
Tanguy Pruvot d7b0369e39 STM32: Fix SD EEPROM emulation conflict (#14012) 2019-05-15 02:42:10 -05:00
Scott Lahteine 785c01f2bc Use US spelling of 'behavior' 2019-05-15 01:49:17 -05:00
Sam Lane 7f1e0c5670 Update EXTRA_LINADV_K with Marlin bit macros (#13993) 2019-05-15 01:07:07 -05:00
Bob Kuhn 48bd8899bd Cohesion 3D Remix: Onboard SD card, Fysetc LCD (#13991) 2019-05-15 00:59:57 -05:00
FanDjango dcaefc68a5 BLTouch.init should not deploy (#13988)
Low or unknown probe clearance on init (even at powerup) is a risk and therefore, a deploy should be avoided because dragging the pin is possible: A deploy goes into alarm if it can't extend fully and then the subsequent stow will fail.
2019-05-14 23:55:11 -05:00
Bob Kuhn 211563e533 Merge pull request #13985 from tpruvot/stm32_sdeeprom
STM32F1: fix sdcard filename conversion
2019-05-13 01:48:58 -05:00
Tanguy Pruvot 8075893352 STM32: fix sdcard filename conversion 2019-05-12 04:26:21 +02:00
chai-md 940ff8e7c8 Improve LV8729 stepping (#13776) 2019-05-11 19:02:19 -05:00
InsanityAutomation 991ee7552b Restore menu edit to 32bit value (#13976) 2019-05-11 18:44:35 -05:00
InsanityAutomation 3eee880967 Anet E16 example config (#13982) 2019-05-11 18:29:40 -05:00
Tanguy Pruvot 93dd097b1c Use E2END, if defined, for STM32F1 (SD) (#13981) 2019-05-11 18:22:31 -05:00
Tanguy Pruvot 3bf43b6c1e Re-enable STM32F1 Travis test (#13978) 2019-05-11 18:10:40 -05:00
Scott Lahteine 4e7187b926 Extended G-code syntax
- Parenthesized comments
- Multiple E values split by colons (RepRapFirmware)
2019-05-11 17:51:42 -05:00
InsanityAutomation 5108e4b6aa Cleaner EEPROM auto init (#13975) 2019-05-11 16:54:03 -05:00
Bob Kuhn 456a0ee76b Improve Due SW SPI, Fysetc sanity checks, &c. (#13939) 2019-05-11 16:51:39 -05:00
Robby Candra 7b78a20fb7 Fix: Debug Memory Dump size (#13957)
* Fix Memory Dump size

* Fix Compile error on Memory Dump
2019-05-11 11:44:39 -05:00
Scott Lahteine a613bcad2d Fix some spelling 2019-05-10 20:39:19 -05:00
Tanguy Pruvot 62b36d1b98 Fix STM32 timer warnings (#13946) 2019-05-10 20:00:21 -05:00
Giuliano Zaro f22c9a1ae1 Fix G-code parser with MMU2 (#13951) 2019-05-10 19:57:15 -05:00
Marcio Teixeira 746c38f4be Fix HAL_DUE multiple define error with graphical LCD (#13971) 2019-05-10 19:52:43 -05:00
Martin Zeman 529c111572 Fix A8 config author (#13974) 2019-05-10 19:46:32 -05:00
Bob Kuhn 75eca5c4f8 Fysetc pins updates for RAMPS and SKR 1.3 (#13963) 2019-05-10 19:29:28 -05:00
Martin Zeman 9cd9d39319 Add Anet A8 Plus example configuration (#13967) 2019-05-10 16:25:31 -05:00
Marcio Teixeira 227f29090d Add heater timeouts to ExtUI (#13970)
- Add local UI methods to get heater timeout state.
- Add methods to resume timed-out heaters.
- Re-enable heaters on UI temperature request.
- Make `ExtUI` show a dialog box if pause needs a button press after reheat.
2019-05-10 15:56:13 -05:00
Bob Kuhn fa3739aa23 M100: LPC1768 and DUE compatibility (#13962) 2019-05-09 21:57:44 -05:00
Scott Lahteine 88bedf3a57 Better label for mfadd 2019-05-09 19:28:41 -05:00
InsanityAutomation 3f758d9e00 Fix some edit items for 16-bit encoder (#13948) 2019-05-09 18:28:47 -05:00
GUEST.it beb9cc91f6 More fixes to Geeetech A10M/A20M standard config (#13958) 2019-05-09 18:23:26 -05:00
ManuelMcLure 51acbb2201 Prevent HOST_PROMPT_SUPPORT compile error (#13943) 2019-05-09 11:48:31 -05:00
Scott Lahteine ad4ffa1d2f Use C++ language supported 'nullptr' (#13944) 2019-05-09 11:45:55 -05:00
Tanguy Pruvot e53d7e5517 STM32: ADC warning fix (#13933) 2019-05-09 00:33:38 -05:00
GUEST.it 6b96eaa15b Fix E-steps/mm for Geeetech A10M/A20M (#13954) 2019-05-08 22:43:34 -05:00
Scott Lahteine 23ec650410 Consolidate Malyan LCD and ExtUI 2019-05-07 21:31:30 -05:00
InsanityAutomation 6811e2921b BLTouch v3 / 3DTouch Interoperability & performance (#13814) 2019-05-07 21:25:54 -05:00
Giuliano Zaro 40aff7e1f2 Remove extra MMU (non-12V) code (#13938)
`check_version` in state -5 should not be needed since it has already been called in state -4 and the tested build nr is only updated in state -4.
2019-05-07 21:02:08 -05:00
Scott Lahteine 059269d732 More python updates
Followup to #13931
2019-05-07 20:56:19 -05:00
Alexey Shvetsov af725c81e3 Convert py scripts for py2 and py3 compatibility (#13931) 2019-05-07 20:45:01 -05:00
Tanguy Pruvot 11adcf1ce3 Add'l PLR options, AVR strstr_P compat (#13880) 2019-05-07 20:38:40 -05:00
InsanityAutomation 5dcb25664f Option to Auto-Initialize EEPROM (#13935) 2019-05-07 16:30:31 -05:00
Ludy a504366138 Fix probe fan compiling error (#13930) 2019-05-07 14:14:12 -05:00
Tanguy Pruvot 24e956d168 Avoid int8_t underflow on filament runout (#13895) 2019-05-07 13:58:10 -05:00
Stephan 483822f3aa Fix some THERMAL_PROTECTION_CHAMBER issues (#13678) 2019-05-06 19:55:01 -05:00
doggyfan 23a8707ef1 Configurable Thermistor (#13888) 2019-05-06 18:51:06 -05:00
J.C. Nelson 172abc305b Malyan M200 core fixes (#13927) 2019-05-06 18:07:13 -05:00
Scott Lahteine a36782ac1d Define more u8g command macros 2019-05-06 17:26:34 -05:00
Scott Lahteine f9a50f451d Serial out cleanup 2019-05-06 17:26:34 -05:00
Scott Lahteine 9853331b34 Fix temp init, loosen ADC grace period 2019-05-05 22:55:03 -05:00
Tanguy Pruvot a4c24511f7 STM32: Fix Marduino SBI/CBI redefine (#13912) 2019-05-05 22:06:30 -05:00
Ludy c837e9250c Define tmc variables where needed (#13918) 2019-05-05 22:04:47 -05:00
Ludy f96eaad1ea Unused variable cleanup (#13917) 2019-05-05 22:01:04 -05:00
Ludy 421d526ba7 Update German language (#13915) 2019-05-05 22:00:19 -05:00
Giuliano Zaro b07360f32a Update Italian language (#13916) 2019-05-05 21:59:34 -05:00
Robby Candra 79955f0c89 Fix PLR file delete bug (#13860) 2019-05-04 23:30:47 -05:00
ManuelMcLure 09f1b58146 Fix HOST_PROMPT_SUPPORT compile issue (#13847) 2019-05-04 22:55:51 -05:00
Giuliano Zaro e2a77ed881 Bring chamber temp to completion (#13837) 2019-05-04 22:51:47 -05:00
Robert Mendon 24177954dd Add missing AZSMZ Mini SPI pins (#13824) 2019-05-04 22:04:01 -05:00
kAdonis ee73e17c9b Hide 'vsense' report row if not used (#13884) 2019-05-04 22:00:24 -05:00
jmdearras 68004174d9 Fix thermistor 501 name (#13839) 2019-05-04 21:40:41 -05:00
Tanguy Pruvot 7076d8706b Travis: Use platformio 'master' for stable testing (#13902) 2019-05-04 21:33:36 -05:00
Bob Kuhn c48e6be366 Fysetc panel, RUMBA and ReARM pins, SPI mode 3 (#13900) 2019-05-04 17:59:36 -05:00
ushills 3cad0f08d9 Geeetech I3 Pro B DEFAULT_AXIS_STEPS_PER_UNIT options (#13896) 2019-05-04 17:45:40 -05:00
ushills 1ec9953e7e Update I3 Pro B calibration routine (#13907) 2019-05-04 17:28:23 -05:00
Chris fd9d3ae181 Re-Arm 4x TMC2208 stepper improvement (#13819) 2019-05-04 17:26:13 -05:00
Tanguy Pruvot e7b3720b81 Menu edit accel in increments of 25 (#13850) 2019-05-04 17:21:58 -05:00
Tanguy Pruvot 7da63fa03f Fix NOMORE() sign warning in stepper (#13894) 2019-05-04 15:59:38 -05:00
Roman Moravčík 6d0ce033c2 Update Slovak language. (#13840) 2019-05-04 15:58:01 -05:00
InsanityAutomation 3fcab8dbf1 Option to disable fans during pause (#13820) 2019-05-04 15:50:44 -05:00
Chris Pepper 66f7065248 [LPC176x] Update extra script to support Python3 (#13908) 2019-05-04 20:52:28 +01:00
Scott Lahteine 2f32a6612d Clean up Temperature::set_fans_paused 2019-05-04 14:36:59 -05:00
Andrei Pozolotin c791d2abeb Add .gitignore for Eclipse (#13818) 2019-05-04 14:08:53 -05:00
Marcio Teixeira 15357af67c Backlash cleanup (#13659)
…And save backlash, fil. sensor, ExtUI userdata to EEPROM.
2019-05-03 23:53:15 -05:00
Robby Candra 0181e57417 Add a minimum Z change option to power-loss recovery (#13859) 2019-05-02 22:29:05 -05:00
Robby Candra c369477cb0 Fix bug: diveToFile breaks M23 (#13865) 2019-05-02 15:54:24 -05:00
Tanguy Pruvot e5438a9a03 settings: store runout sensor on/off (#13876) 2019-05-02 00:47:26 -05:00
Scott Lahteine e7682eea42 Use Arduino.h include wrapper (#13877) 2019-05-02 00:45:50 -05:00
Tanguy Pruvot 51d1e0f1dd Auto-mount the SDIO SD card (#13879) 2019-05-02 00:45:21 -05:00
Thomas Moore ee243e4edf Fix mixing extruder filament change (#13803) 2019-05-01 21:55:58 -05:00
Scott Lahteine bf54251a10 Finish, improve, clean up FYSETC_MINI_12864 revisions (#13871) 2019-05-01 20:05:29 -05:00
Scott Lahteine 9372e2603c Simpler neopixel comment 2019-05-01 13:55:51 -05:00
Tanguy Pruvot 3272d0db01 Update French language (#13866) 2019-05-01 13:00:07 -05:00
Chris Pepper 95beafa9a2 Fix typo 2019-05-01 16:30:21 +01:00
Ludy 408a5f08dc Update German language (#13853) 2019-05-01 01:25:57 -05:00
Ludy 8a6308b498 Fix config regression
Fix bad commits from around db89fc03
2019-05-01 01:22:40 -05:00
Tanguy Pruvot cf3c746029 Improve French language (#13851) 2019-05-01 01:12:25 -05:00
Clinton James 2740cc64d8 Add SD Release when no SD_DETECT_PIN exists (#13857) 2019-05-01 01:00:21 -05:00
Luu Lac 39ebca6b5f Fix FYSETC, MINIPANEL, MKS_MINI_12864 display (#13864) 2019-05-01 00:37:52 -05:00
Giuliano Zaro 93dcb537ef Update Italian language (#13809) 2019-04-30 20:31:40 -05:00
Roxy-3D 142c8e2fed Remove redundant Frivolous Game Options 2019-04-28 14:03:53 -05:00
Scott Lahteine e43afb1a58 Clean up SKR pins 2019-04-27 14:56:12 +02:00
Scott Lahteine 9ccbd382e7 Update Watchdog description 2019-04-27 14:56:12 +02:00
Scott Lahteine b6279abd30 Better THERMAL_PROTECTION_GRACE_PERIOD
See #13783
2019-04-27 14:40:09 +02:00
chai-md ed9eaa1942 Fix a comment in fwretract.cpp (#13802) 2019-04-26 09:36:29 +02:00
InsanityAutomation 610fb46683 Fix some ExtUI issues (#13799) 2019-04-26 09:32:01 +02:00
Bob-the-Kuhn db89fc0304 Revert "bring my copy up to date"
This reverts commit 503905c628.
2019-04-25 17:38:41 -05:00
Bob-the-Kuhn 503905c628 bring my copy up to date 2019-04-25 12:08:49 -05:00
Bob-the-Kuhn 73726d56b3 Merge branch 'bugfix-2.0.x' of https://github.com/MarlinFirmware/Marlin into bugfix-2.0.x 2019-04-25 12:06:01 -05:00
Scott Lahteine 5051909c3c Update do_select_screen for general use (#13800) 2019-04-24 10:13:44 -05:00
Scott Lahteine 63f6ad3fd2 Basic RAMPS SD_DETECT_PIN override 2019-04-23 18:10:21 -05:00
InsanityAutomation c6632925e3 Force no move on IDEX full control mode (#13797) 2019-04-23 15:20:59 -05:00
Giuliano Zaro e2dd2268e8 Add a Z raise-between-probes to G34 (#13791) 2019-04-23 13:40:55 -05:00
Giuliano Zaro 0f9c49ccba Update Italian language (#13790) 2019-04-23 13:36:05 -05:00
Giuliano Zaro d77ef437db Fix warning for redefined DEBUG_PRINT_P (#13789) 2019-04-23 13:35:02 -05:00
Marcio Teixeira ca7f6ff287 Fix MSG_En messages for consistency (#13788) 2019-04-23 13:31:51 -05:00
Scott Lahteine 6ff81a33c1 Provide JSON values for SOFT_PWM_SCALE 2019-04-22 14:06:14 -05:00
Scott Lahteine 0c4d3e6622 Improve M906 description 2019-04-22 13:48:02 -05:00
Tanguy Pruvot 04ae3ba1fd Major update to French language (#13784) 2019-04-22 13:31:04 -05:00
chai-md 78d7349fd7 Remove extra Z raises in tool change (#13782) 2019-04-21 21:06:46 -05:00
Kajetan Rzepecki 875e673a8c Add HAL-based thermal protection grace period for all heaters (#13778) 2019-04-21 20:50:32 -05:00
Bob Kuhn 81ca5a4cd4 Fix and improve FYSETC LCD support (#13767) 2019-04-21 20:48:53 -05:00
felixstorm 4e35e6c705 Fix SS pin in ESP32 HW SPI (#13781) 2019-04-21 17:15:15 -05:00
felixstorm 4a48b70c0b Fix (re-)defines in HAL_ESP32 (#13780) 2019-04-21 17:14:38 -05:00
João Brázio 44216749c6 Update README.md
Fixes TravisCI shield to point to the correct branch buildroot, removes no longer used shield and adds some new shields.
2019-04-21 02:44:40 +01:00
Ludy 4228fd3e03 Update German language (#13769) 2019-04-20 15:01:56 -05:00
Kajetan Rzepecki 5f70c876ae Fix _temp_error-related compile error (#13768) 2019-04-20 13:57:38 -05:00
Kajetan Rzepecki ea1ee02b53 Disable hardware PWM on ESP32 I2S expander (#13762) 2019-04-20 13:41:17 -05:00
Scott Lahteine bddb776ddb Add chamber max-temp check
Followup to #13756
2019-04-19 22:18:55 -05:00
Marcio Teixeira d0c1eee53b Add extra max-temp safety checks (#13756) 2019-04-19 21:37:12 -05:00
Marcio Teixeira 4ac28ba6b3 Add missing file (#13754) 2019-04-19 20:20:45 -05:00
jmdearras b65cb5704d Fix, improve FYSETC_MINI_12864 support (#13730) 2019-04-19 20:11:51 -05:00
Scott Lahteine 69c333ead9 More universal Formbot pins
Replace `ROXYs_TRex` with pre-defines of the relevant pins at the configuration level.
2019-04-18 21:09:34 -05:00
Scott Lahteine 0a6835fbea More robust HAS_LCD_CONTRAST 2019-04-18 21:09:34 -05:00
Marcio Teixeira 2e3d121ac4 Squelch compiler warning (#13739) 2019-04-18 13:18:49 -05:00
Kajetan Rzepecki d83a7924e6 Fix ESP32 TOGGLE() with I2S expander (#13743) 2019-04-18 13:15:35 -05:00
Jimmy Wennlund e6f6ed76c8 Show UBL Activate/Deactivate menu for current state (#13744) 2019-04-18 13:13:05 -05:00
Marcio Teixeira 08f21335a6 Fix bad opcode in LIGHTWEIGHT_UI; add 32-bit HAL and Due compatibility (#13751) 2019-04-18 13:10:58 -05:00
Kajetan Rzepecki 7c8ee0cd5b Enable more ADC1 channels (pins 32-39) (#13742) 2019-04-18 13:01:24 -05:00
Bob-the-Kuhn 520585c5ed Merge branch 'bugfix-2.0.x' of https://github.com/MarlinFirmware/Marlin into bugfix-2.0.x 2019-04-17 15:34:29 -05:00
Kajetan Rzepecki e1acc09c6e Fix LPC1768 HAL SSD* screen init (#13741) 2019-04-17 14:57:50 -05:00
Marcio Teixeira 836435c5ef Fix action_edit int range bug (#13737) 2019-04-17 14:55:31 -05:00
Antonio Pérez bf28ad4b6c Fix clear of Z position last digit (#13731) 2019-04-17 14:52:20 -05:00
Marcio Teixeira 866e2d41dc Correct range of LCD axis step editing (#13727) 2019-04-16 15:45:31 -05:00
Scott Lahteine ab8052887f Add missing MSG_PAUSE_PRINT_INIT_1 for en 2019-04-16 13:54:20 -05:00
petrzjunior 12d340cf2a Update Czech language (#13729) 2019-04-16 13:53:14 -05:00
Robby Candra e8dc87a2b7 Fix updated Allen Key pause probe logic (#13723) 2019-04-16 12:35:58 -05:00
Robby Candra 7ca1fea22b Option to pause probe deployment only when triggered, for manually-deployed allen-key probe (#13698) 2019-04-16 01:32:43 -05:00
Robby Candra 35160dfb7a Simplify PLR homing when Z homes to max (#13718) 2019-04-16 00:17:27 -05:00
Scott Lahteine 92ed9a2bb6 Fix is_M29
Followup for #13013
2019-04-15 23:47:06 -05:00
jmdearras 5f49b65c1f Move LPC SD options to configs, add MKS_MINI_DISPLAY to SKR boards (#13712) 2019-04-15 22:55:33 -05:00
Bob Kuhn 9b578ca343 Support FYSETC_MINI_12864 on Re-ARM, RAMPS_FD, MKS SBASE (#13717) 2019-04-15 22:54:11 -05:00
Scott Lahteine 9992c424f5 Patch G92.9 flags
Followup to #13703
2019-04-15 20:26:40 -05:00
ManuelMcLure b1c13bce58 Fix EEPROM_CHITCHAT (and debug_out.h) (#13716) 2019-04-15 20:21:26 -05:00
Msq001 455ee23499 Fix, improve Power Loss Recovery (#13703)
- Save and restore workspace offsets
- Add retract and purge (hidden) options
- Always restore axis relative modes
- Use added `G92.9` to do position restores
2019-04-15 18:53:39 -05:00
Laurent df75a606ff Support MKS SGen board (#13694) 2019-04-15 17:03:10 -05:00
Kajetan Rzepecki 20dc45bca7 Refactor, fix ESP32 WebSocketSerial (#13689) 2019-04-15 16:32:20 -05:00
Roman Moravčík db373f130c Update Slovak language (#13692) 2019-04-15 16:14:49 -05:00
Kajetan Rzepecki 6fe90f0324 Define I2S pins for ESP32 (#13714) 2019-04-15 16:13:59 -05:00
InsanityAutomation aa0f7afbe6 Fix call to uninitialized PWM pin, heater 2 overlap (#13674) 2019-04-15 15:57:34 -05:00
Bob-the-Kuhn 57aaa9110b Merge branch 'bugfix-2.0.x' of https://github.com/MarlinFirmware/Marlin into bugfix-2.0.x 2019-04-13 21:14:52 -05:00
Scott Lahteine 6a71df2925 Tweak babystep add_steps 2019-04-13 14:14:26 -05:00
Bob-the-Kuhn 9dd4252b39 Merge branch 'bugfix-2.0.x' of https://github.com/MarlinFirmware/Marlin into bugfix-2.0.x 2019-04-12 22:07:12 -05:00
Marcio Teixeira bdfffee037 Modify Z-offset overlay for clarity (#13660) 2019-04-12 15:43:29 -05:00
Stephan 84273557f9 Move and update heated chamber settings (#13671)
Co-Authored-By: the-real-orca <stephan.veigl@gmail.com>
2019-04-12 15:38:10 -05:00
Ludy 62b4265410 Update German language (#13665) 2019-04-12 14:48:13 -05:00
Scott Lahteine b18316dd37 Fix some spacing 2019-04-12 13:35:42 -05:00
Scott Lahteine f2ba0a5ae7 Tweak some formatting 2019-04-12 13:15:37 -05:00
Scott Lahteine 7e58d33a2e Update some headers 2019-04-12 13:04:04 -05:00
ManuelMcLure 8bc5817559 Save files before starting AutoBuild (#13649) 2019-04-12 12:33:16 -05:00
Giuliano Zaro 64ee064ded Update Italian language (#13661) 2019-04-12 12:22:43 -05:00
Scott Lahteine 14b561f182 Extra AxisEnum values for E0-E5 2019-04-12 12:13:48 -05:00
Robby Candra 9e86fc3831 Require homing to toggle leveling (#13652) 2019-04-11 14:09:41 -05:00
Ludy 9fd3e64ba8 Fix compile error with EXTRUDER>1 (#13651) 2019-04-11 13:58:50 -05:00
Jamie 509dc283f2 Restore declarations of G53-G59 (#13654) 2019-04-11 13:51:05 -05:00
chai-md 2adc37becc MAGNETIC_SWITCHING_TOOLHEAD (#13629) 2019-04-11 13:29:17 -05:00
ManuelMcLure 492883859e Don't protect unused CS pins (#13647) 2019-04-10 21:57:57 -05:00
Scott Lahteine 9898f53361 Fix missing IS_SD_PRINTING 2019-04-10 21:48:16 -05:00
Scott Lahteine 1e59a2ac73 Hide pause/stop unless active printing 2019-04-10 19:46:59 -05:00
Scott Lahteine ae42206500 Fix SD_REPRINT_LAST_SELECTED_FILE 2019-04-10 17:43:08 -05:00
Scott Lahteine d72946a8d7 Fix LPC1768 build with no watchdog
Fix issue mentioned at https://github.com/MarlinFirmware/Marlin/pull/13587#issuecomment-481737509
2019-04-10 17:34:15 -05:00
Scott Lahteine cee3b172b9 Fix Marlin splash screen logic (#13646) 2019-04-10 17:14:57 -05:00
ANMay-ru 052f2ac352 Fix RURAMPS4D baud rate (#13644) 2019-04-10 15:53:21 -05:00
Marcio Teixeira e6ebd30f60 Fix LCD issue on stepper timeout (#13630)
- Remove a re-paint of the status screen on stepper timeout, which would cause a garbled LCD with `LIGHTWEIGHT_UI` and could interrupt whatever else the user might be doing in a submenu (such as playing games!)
- Use the helper function to reset stepper timeout.
2019-04-10 15:51:48 -05:00
klcjr89 a8edd4f6d4 Fix Azteeg X5 MINI BOARD_NAME (#13632)
Co-Authored-By: klcjr89 <klcjr89@users.noreply.github.com>
2019-04-10 15:46:12 -05:00
Scott Lahteine ac81c007a6 Merge pull request #13634 from marcio-ao/pr-remove-extra-stm32-dir
Remove extra STM32 config dir #13622
2019-04-10 15:40:25 -05:00
Marcio Teixeira 610e9cf76a Fix SWITCHING_NOZZLE error (#13633) 2019-04-10 15:22:29 -05:00
Scott Lahteine 3656ef4a2d Rename, step 2 2019-04-10 15:17:38 -05:00
Scott Lahteine 6b8611ad56 Rename, step 1 2019-04-10 15:17:08 -05:00
Scott Lahteine 5018fdacbe Support FYSETC_MINI_12864_PANEL (#13365) 2019-04-09 18:34:29 -05:00
InsanityAutomation 4900c28bf6 Fix IDEX tool-change, and more (#13614) 2019-04-09 18:33:40 -05:00
InsanityAutomation ba31d39f6d Azteeg X5 Mini support (#13425) 2019-04-08 23:10:45 -05:00
ManuelMcLure f9b2b3e4f5 AutoBuild quality-of-life improvements (#13626)
- Assign helpful names to the terminals.
- Bring terminal forward so error messages are seen.
2019-04-08 23:07:57 -05:00
Scott Lahteine 9ea99b49be clean whitespace 2019-04-08 21:49:18 -05:00
Scott Lahteine 9cb5c57b84 Adjustments to ui8tostr_percent 2019-04-08 21:47:50 -05:00
Scott Lahteine 321a5e6580 Fix SD card reselect when scrolled (#13624)
- Change encoder position to 16-bit integer.
- Fix `SD_REPRINT_LAST_SELECTED_FILE` when the screen is scrolled.
2019-04-08 21:10:41 -05:00
Scott Lahteine 0e3c9e726d Set default Raptor runout/caselight pins 2019-04-08 18:18:08 -05:00
Scott Lahteine 5e38d70697 Fix M217 report label, general cleanup 2019-04-08 18:18:08 -05:00
Scott Lahteine fae2b7edc3 Update MMU2 code style 2019-04-08 18:13:42 -05:00
Scott Lahteine c8a83fb122 SPINDLE_LASER_ENABLE => SPINDLE_LASER_ENA 2019-04-08 18:13:41 -05:00
Scott Lahteine 9abe9aff56 Confirm before starting SD print (#13616) 2019-04-08 13:44:35 -05:00
Scott Lahteine 7e0008f5b3 Fix SETCURSOR_RJ 2019-04-07 20:25:54 -05:00
Robby Candra 81c2c3ec11 Continuous filename scrolling (#13609) 2019-04-07 16:58:32 -05:00
Ludy c29820f649 Suppress compile warning (#13612) 2019-04-07 16:53:30 -05:00
Scott Lahteine a2b3ad6d0a Don't override RGB LED pins, by default 2019-04-07 16:42:26 -05:00
swilkens e9d9cf2b5b [2.0.x] Reduce all Creality homing speeds (#13595) 2019-04-06 19:50:02 -05:00
SmallSharky 1de6e7fb9d Fix MKS Robin section in platformio.ini (#13598)
Updated ststm32 version because the old version gives build errors. Added `U8glib-HAL` to ignore list because there are also build errors.
2019-04-06 18:07:21 -05:00
Bob Kuhn 9a56d90150 Fix M43 on LPC176x (#13587)
The real fix. PR #13568 was wrong.
2019-04-06 18:06:07 -05:00
Roxy-3D 9cee81d47e Option to show babysteps total since G28 (#13580) 2019-04-06 18:04:34 -05:00
Scott Lahteine 3221658a78 Adjust park position description 2019-04-05 20:40:50 -05:00
Scott Lahteine 028b78f623 Suppress a compile warning 2019-04-05 20:06:19 -05:00
Scott Lahteine cf12fc8366 Expand on serial debugging (#13577) 2019-04-05 20:02:46 -05:00
Marcio Teixeira bf7b28b456 Fix incorrect variable name (#13585) 2019-04-05 19:04:46 -05:00
Kajetan Rzepecki 27693cec29 Extend ESP32 HardwareSerial with flushTX. (#13588) 2019-04-05 19:04:02 -05:00
Alexander Gavrilenko 3c47e1b4d1 Support Black STM32F407VET6 with RAMPS-like shield (#13524) 2019-04-05 15:30:19 -05:00
VBen 0dfd76ba55 Fix Z hotend offset broken by parking extruder tool change (#13582) 2019-04-05 15:28:32 -05:00
Scott Lahteine 027a901bec Trim whitespace 2019-04-05 15:04:23 -05:00
Kajetan Rzepecki 692a0198f9 Fix SPISettings frequency parameters in ESP32 HW SPI (#13573) 2019-04-04 23:17:14 -05:00
Kajetan Rzepecki 63d95862fa Add FastIO TOGGLE for ESP32 (#13574) 2019-04-04 23:15:17 -05:00
drzejkopf 0992d1a4c8 Fix Invaders game compile error (#13575) 2019-04-04 23:13:11 -05:00
Robby Candra cd1ef33c8c Drop extra PLR save test (#13554) 2019-04-04 22:47:00 -05:00
Scott Lahteine 72c7751768 Fix SERIAL_POS in use with DEBUG_OUT 2019-04-04 22:12:03 -05:00
Scott Lahteine cacec5764a Clean up whitespace 2019-04-04 22:12:02 -05:00
Scott Lahteine 83e214478e Click-hold to exit Invaders, fix Brickout compile 2019-04-04 17:07:50 -05:00
Scott Lahteine 240ea1bbb3 Split up games into separate files 2019-04-04 03:06:19 -05:00
Marcio Teixeira 27a4927ed1 Add option to move away from endstop after homing. (#13557)
Add option to move away from endstop after homing.
- Add `ENDSTOP_BACKOFF` for printers with a recessed Z home button (Lulzbot TAZ 6).
- Also prevents chattering when sensorless homing with axes against bumpers.
2019-04-04 02:47:19 -05:00
InsanityAutomation d44e5b1fde Fix stepper direction macros, multi-nozzle scope (#13569) 2019-04-04 02:44:07 -05:00
Scott Lahteine 10b9632bed Fix menu history item selection 2019-04-04 02:41:23 -05:00
Scott Lahteine f1810689ff Fix bootscreen condition 2019-04-04 00:19:47 -05:00
reloxx13 2d5b93e850 Change to CHOPPER_DEFAULT_24V for Ender 3 (#13565) 2019-04-03 20:30:40 -05:00
Kajetan Rzepecki b21ca53dfc SPIFFS-backed PersistentStore for ESP32 (#13566) 2019-04-03 20:28:26 -05:00
Scott Lahteine af92ee9dd6 No PLR include needed in queue.cpp 2019-04-03 18:26:31 -05:00
Scott Lahteine 5d2c5877f7 DOGM bootscreen cleanup 2019-04-03 18:10:50 -05:00
Scott Lahteine 2aa35e95af More G26 arc cleanup
Followup to #13531
2019-04-03 16:03:21 -05:00
Scott Lahteine 20a41e2f7b SDCARD_RATHERRECENTFIRST with SDCARD_SORT_ALPHA 2019-04-02 22:25:18 -05:00
Robby Candra 46445a5a16 Event G-code for Stop SD Print (#13547)
Co-Authored-By: 7eggert <7eggert@gmx.de>
Co-Authored-By: robbycandra <robbycandra.mail@gmail.com>
2019-04-02 22:09:30 -05:00
Kajetan Rzepecki 2cfa9e9008 Fixed chamber-related compile error (#13552) 2019-04-01 17:53:56 -05:00
Scott Lahteine a0a5c31c05 Power-Loss initialization fix (#13553)
- Only save to PLR file on moves with E and X or Y
- Save to PLR after any long-ish Z downward move
2019-04-01 17:52:45 -05:00
Scott Lahteine 8b7c3eec83 Games, for fun (and stress-testing) (#13464) 2019-04-01 17:48:54 -05:00
InsanityAutomation fbc7b51a24 Use NO_FETCH for Dual X G28 (#13539) 2019-04-01 17:48:21 -05:00
Scott Lahteine 5de7b5b35e Games, for fun (and stress-testing) (#13464) 2019-04-01 15:43:48 -05:00
InsanityAutomation 4961d8aa3e Update G28.cpp (#13539) 2019-03-31 19:50:40 -05:00
Scott Lahteine de0046fc8b Fix empty HAS_TIMER macros 2019-03-30 23:04:40 -05:00
Kajetan Rzepecki c9079165ee Fix MAX6675 readout with Hardware SPI (#13530) 2019-03-30 22:31:49 -05:00
ManuelMcLure 04086fc455 Minor optimization to ARC_SUPPORT code (#13531) 2019-03-30 22:29:37 -05:00
Robby Candra a3f67acd6d Fix Power Loss Recovery file delete (#13522) 2019-03-30 13:14:58 -05:00
Marcio Teixeira d992dfe7d5 Use the percent util func in the string func. (#13523) 2019-03-30 13:00:31 -05:00
drzejkopf b1f739e27b CR10_STOCKDISPLAY support in Bigtreetech SKR (#13516) 2019-03-29 14:19:18 -05:00
Marcio Teixeira 5679fae11e UltraLCD enhancements (lower fan resolution, backlash menu) (#13519) 2019-03-29 14:07:43 -05:00
pinchies de0f35f2d9 Fix platformio.ini for MKS Robin (#13502) 2019-03-29 13:57:19 -05:00
Msq001 f0d14b83bc Save/restore Relative modes in Power-Loss Recovery (#13501) 2019-03-29 13:40:42 -05:00
Marcio Teixeira c6466c23fe Silence signed/unsigned comparison warning. (#13508) 2019-03-29 13:33:45 -05:00
InsanityAutomation 7240e3a68f Allow G26 with no heated bed (#13511) 2019-03-29 13:32:43 -05:00
Alexander Gavrilenko 6d9aaca082 Fix compilation error for MKS Robin (#13506) 2019-03-29 12:40:24 -05:00
Scott Alfter c6dbe6e9d6 Fix Teensy 3.5/3.6 __get_primask (#13514) 2019-03-29 12:23:09 -05:00
Alexander Amelkin e40636a7c1 Replace digitalPinHasPWM with HAS_TIMER (#13520) 2019-03-29 12:21:14 -05:00
Scott Lahteine 5a2c68e995 Update BLTouch 3 text, don't call extraneous functions (#13495) 2019-03-26 19:22:25 -05:00
Scott Lahteine b46ca9aa94 Less timely comment, tweak conditions 2019-03-26 19:20:13 -05:00
InsanityAutomation eb91f08725 Update descriptions and dont call unneeded functions 2019-03-26 11:24:52 -04:00
Ludy fe346cd4d1 Fix DEBUG_EEPROM_READWRITE compile error (#13492) 2019-03-26 04:12:22 -05:00
Sam Lane e3ab54753b Add extra Linear Advance factors (#13490) 2019-03-26 04:02:27 -05:00
Chris Pepper ffc2c2d7c5 Move FAST_PWM_FAN code to HALs (#13491) 2019-03-26 01:03:23 -05:00
Thomas Moore 263f8edff8 Disable volumetric extrusion during G26 (#13479) 2019-03-25 22:41:52 -05:00
Bob Kuhn 6bd0a0be97 Relocate DUE Stepper ISR to TC0,2 (#13481) 2019-03-25 22:39:51 -05:00
Thomas Moore 13a12f8a87 Fix UBL mesh editor on delta (#13478) 2019-03-25 22:04:57 -05:00
Scott Lahteine d2e0c03afb Remove trailing whitespace 2019-03-25 20:51:38 -05:00
Marcio Teixeira 7462fe3068 Fix compile error, squelch warnings (#13487)
- Fix path to `bedlevel.h` include file
- Add default to `case` statements to suppress warnings
2019-03-25 20:41:38 -05:00
Yannik Sembritzki 0d3ea59bcf Add pins for Dual Z UART on SKR 1.3 (#13474)
Fix #13470
2019-03-24 20:09:00 -05:00
pinchies ef3b93daa1 Fix STM32F1 SD-based EEPROM emulation (#13475)
If `openFile` is given `true`, then it has read-only access. Because all the writing occurs on the next line, this breaks SD card as EEPROM.
2019-03-24 20:07:31 -05:00
Chris Pepper aacc1148b0 Fix M106 for index > extruders (#13473) 2019-03-24 20:03:53 -05:00
Thomas Moore c5e96544b5 Fix vtool compiler warning (#13476) 2019-03-24 20:02:28 -05:00
Thomas Moore 02dc72acb6 Disable ABL when leveling corners (#13471) 2019-03-24 20:01:18 -05:00
7eggert d96f7d6068 Minimum segments for G2/G3. Better for small arcs. (#13466) 2019-03-24 19:53:47 -05:00
Scott Lahteine 380c771988 Handle word-padded flash-based eeprom (STM32F1)
Fix #13445
2019-03-24 19:14:04 -05:00
Scott Alfter 32332bcd03 Proceed with Teensy 3.5/3.6 HAL (#13450) 2019-03-24 00:08:32 -05:00
Scott Alfter 407202cc0f Fix BLTouch pre-3.0 compatibility (#13454) 2019-03-23 23:28:15 -05:00
Marcio Teixeira a0ca98f699 Additional ExtUI features (#13449) 2019-03-23 23:09:18 -05:00
Sam Lane a8fa275dc6 Fix Fan 0 responding to all fan speeds (#13444) 2019-03-23 23:00:31 -05:00
InsanityAutomation 5eeffab5e5 Fix BLTouch Menus (#13441) 2019-03-23 22:58:34 -05:00
Scott Lahteine d8329d858d Default argument to defer_status_screen 2019-03-23 16:33:37 -05:00
Giuliano Zaro 9562a02c5a Update Italian language (#13440) 2019-03-20 18:26:55 -05:00
drzejkopf 70e6a3db8a Add LEVEL_CORNERS_HEIGHT to LEVEL_BED_CORNERS (#13439) 2019-03-20 18:26:12 -05:00
Roman Moravčík f3cf95a937 Update Slovak language. (#13435) 2019-03-20 16:37:34 -05:00
Scott Lahteine 144018736a Use USES_Z_MIN_PROBE_ENDSTOP 2019-03-18 16:58:31 -05:00
InsanityAutomation 5b2c37d6c1 Followup to BLTouch (#13422) 2019-03-18 16:31:11 -05:00
InsanityAutomation 3fb8489ae3 EXTUI and UBL compilation fixes (#13420) 2019-03-17 07:57:54 -05:00
Scott Lahteine b376c7e374 Group DISABLED items 2019-03-17 07:56:35 -05:00
Scott Lahteine 58bca67883 Unify status scrolling further 2019-03-17 07:56:35 -05:00
Scott Lahteine c4443f885e finishstatus => finish_status 2019-03-17 07:56:35 -05:00
Urja Rannikko d9f0ed8247 readme: ATmega1284 has 16k of SRAM (#13421) 2019-03-17 06:36:25 -05:00
InsanityAutomation 691e5c3bb8 BLTouch V3.0 support (#13406) 2019-03-17 05:57:25 -05:00
Scott Lahteine 49cf92dc36 Extended condition macros (#13419)
Allow `ENABLED`, `DISABLED`, `PIN_EXISTS`, and `BUTTON_EXISTS` to take multiple arguments. Also add:
- Alias `ANY(...)` for `!DISABLED(...)`
- Alias `ANY_PIN(...)` for `PIN_EXISTS(a) || PIN_EXISTS(b) ...`
- Alias `EITHER(A,B)` for `ANY(...)`
- Alias `ALL(...)` and `BOTH(A,B)` for `ENABLED(...)`
- `NONE(...)` for `DISABLED(...)`
2019-03-16 23:43:06 -05:00
Tobias Frost d20eab4f83 Fix macro in set_color() (#13417) 2019-03-16 19:05:59 -05:00
2978 changed files with 354493 additions and 493966 deletions
-275
View File
@@ -1,275 +0,0 @@
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
- image: circleci/python:2.7.13
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
environment:
TEST_PLATFORM: "-e megaatmega2560"
working_directory: ~/Marlin
steps:
- checkout
- restore_cache:
paths:
- ~/.platformio
- ~/Marlin/.piolibdeps
keys:
- v1-dependencies-{{ checksum "~/Marlin/platformio.ini" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: install dependencies
command: |
sudo pip install -U platformio
# run tests!
- run:
name: run tests
command: |
#
#
# Fetch the tag information for the current branch
ls -la
git fetch origin --tags
#
# Publish the buildroot script folder
chmod +x buildroot/bin/*
export PATH=`pwd`/buildroot/bin/:${PATH}
# Generate custom version include
generate_version ./Marlin/src/inc
cat ./Marlin/src/inc/_Version.h
#
# Backup pins_RAMPS.h
#
cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
#
env_backup
#################################
# Build all sample configurations
#################################
echo testing megaatmega2560 targets...
export TEST_PLATFORM="-e megaatmega2560"
echo use_example_configs adafruit/ST7565
use_example_configs adafruit/ST7565
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs BQ/Hephestos
use_example_configs BQ/Hephestos
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs BQ/Hephestos_2
use_example_configs BQ/Hephestos_2
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs BQ/WITBOX
use_example_configs BQ/WITBOX
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs AliExpress/CL-260
use_example_configs AliExpress/CL-260
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
#echo use_example_configs Cartesio
#use_example_configs Cartesio
#build_marlin_pio ./ ${TEST_PLATFORM}
#restore_configs
echo use_example_configs delta/FLSUN/auto_calibrate
use_example_configs delta/FLSUN/auto_calibrate
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs delta/FLSUN/kossel_mini
use_example_configs delta/FLSUN/kossel_mini
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs delta/generic
use_example_configs delta/generic
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs delta/kossel_mini
use_example_configs delta/kossel_mini
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs delta/kossel_xl
use_example_configs delta/kossel_xl
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Felix
use_example_configs Felix
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Felix/DUAL
use_example_configs Felix/DUAL
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs FolgerTech/i3-2020
use_example_configs FolgerTech/i3-2020
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs gCreate/gMax1.5+
use_example_configs gCreate/gMax1.5+
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Geeetech/GT2560
use_example_configs Geeetech/GT2560
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
#echo use_example_configs Geeetech/I3_Pro_X-GT2560
#use_example_configs Geeetech/I3_Pro_X-GT2560
#build_marlin_pio ./ ${TEST_PLATFORM}
#restore_configs
echo use_example_configs Infitary/i3-M508
use_example_configs Infitary/i3-M508
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
use_example_configs Malyan/M200
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Micromake/C1/basic
use_example_configs Micromake/C1/basic
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Micromake/C1/enhanced
use_example_configs Micromake/C1/enhanced
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs RepRapWorld/Megatronics
use_example_configs RepRapWorld/Megatronics
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs RigidBot
use_example_configs RigidBot
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs SCARA
use_example_configs SCARA
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Velleman/K8200
use_example_configs Velleman/K8200
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Velleman/K8400/Dual-head
use_example_configs Velleman/K8400/Dual-head
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Velleman/K8400
use_example_configs Velleman/K8400
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Wanhao/Duplicator6
use_example_configs Wanhao/Duplicator6
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
# Requires manual load of https://github.com/stawel/SlowSoftI2CMaster
#use_example_configs wt150
#build_marlin_pio ./ ${TEST_PLATFORM}
#restore_configs
echo testing melzi targets...
export TEST_PLATFORM="-e melzi"
echo use_example_configs Anet/A6
use_example_configs Anet/A6
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Anet/A8
use_example_configs Anet/A8
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Creality/CR-10
use_example_configs Creality/CR-10
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Malyan/M150
use_example_configs Malyan/M150
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs Sanguinololu
use_example_configs Sanguinololu
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs TinyBoy2
use_example_configs TinyBoy2
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo testing rambo targets...
export TEST_PLATFORM="-e rambo"
echo use_example_configs AlephObjects/TAZ4
use_example_configs AlephObjects/TAZ4
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo testing at90usb1286_* targets...
export TEST_PLATFORM="-e at90usb1286_dfu"
#echo se_example_configs delta/kossel_pro
#use_example_configs delta/kossel_pro
#build_marlin_pio ./ ${TEST_PLATFORM}
#restore_configs
echo use_example_configs makibox
use_example_configs makibox
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo testing sanguino_atmega644p targets...
export TEST_PLATFORM="-e sanguino_atmega644p"
echo use_example_configs tvrrug/Round2
use_example_configs tvrrug/Round2
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo testing LPC1768 targets...
export TEST_PLATFORM="-e LPC1768"
echo use_example_configs Mks/Sbase
use_example_configs Mks/Sbase
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo testing STM32F1 targets...
export TEST_PLATFORM="-e STM32F1"
restore_configs
echo use_example_configs STM32F10
use_example_configs STM32F10
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo use_example_configs stm32f103ret6
use_example_configs stm32f103ret6
build_marlin_pio ./ ${TEST_PLATFORM}
restore_configs
echo testing DUE targets...
export TEST_PLATFORM="-e DUE"
#echo use_example_configs UltiMachine/Archim2
#use_example_configs UltiMachine/Archim2
#build_marlin_pio ./ ${TEST_PLATFORM}
#restore_configs
#
# Remove temp files from dependencies tree prior to caching
rm -rf ~/Marlin/.piolibdeps/_tmp_*
#
# Restore the environment
#
env_restore
- save_cache:
paths:
- ~/.platformio
- ~/Marlin/.piolibdeps
key: v1-dependencies-{{ checksum "~/Marlin/platformio.ini" }}
+19
View File
@@ -0,0 +1,19 @@
# editorconfig.org
root = true
[{*.patch,syntax_test_*}]
trim_trailing_whitespace = false
[{*.c,*.cpp,*.h,*.ino}]
charset = utf-8
[{*.c,*.cpp,*.h,*.ino,Makefile}]
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
indent_style = space
indent_size = 2
[{*.py,*.conf,*.sublime-project}]
indent_style = tab
indent_size = 4
+2
View File
@@ -17,3 +17,5 @@
*.png binary
*.jpg binary
*.fon binary
*.bin binary
*.woff binary
+3
View File
@@ -0,0 +1,3 @@
github: [thinkyhead]
patreon: thinkyhead
custom: ["https://www.thinkyhead.com/donate-to-marlin"]
+10 -11
View File
@@ -34,16 +34,15 @@ This project and everyone participating in it is governed by the [Marlin Code of
We have a Message Board and a Facebook group where our knowledgable user community can provide helpful advice if you have questions.
* [Marlin RepRap forum](http://forums.reprap.org/list.php?415)
* [Marlin RepRap forum](https://reprap.org/forum/list.php?415)
* [MarlinFirmware on Facebook](https://www.facebook.com/groups/1049718498464482/)
If chat is more your speed, you can join the MarlinFirmware Slack team:
If chat is more your speed, you can join the MarlinFirmware Discord server:
* Join the Marlin Slack Team
* To obtain group access, please [send a request](http://www.thinkyhead.com/contact/9) to @thinkyhead.
* Even though Slack is a chat service, sometimes it takes several hours for community members to respond &mdash; please be patient!
* Use the `#general` channel for general questions or discussion about Marlin.
* Other channels exist for certain topics. Check the channel list.
* Use the link https://discord.gg/n5NJ59y to join up as a General User.
* Even though our Discord is pretty active, it may take a while for community members to respond &mdash; please be patient!
* Use the `#general` channel for general questions or discussion about Marlin.
* Other channels exist for certain topics or are limited to Patrons. Check the channel list.
## How Can I Contribute?
@@ -93,7 +92,7 @@ Before creating a suggestion, please check [this list](#before-submitting-a-sugg
#### Before Submitting a Feature Request
* **Check the [Marlin website](http://marlinfw.org/)** for tips — you might discover that the feature is already included. Most importantly, check if you're using [the latest version of Marlin](https://github.com/MarlinFirmware/Marlin/releases) and if you can get the desired behavior by changing [Marlin's config settings](http://marlinfw.org/docs/configuration/configuration.html).
* **Check the [Marlin website](https://marlinfw.org/)** for tips — you might discover that the feature is already included. Most importantly, check if you're using [the latest version of Marlin](https://github.com/MarlinFirmware/Marlin/releases) and if you can get the desired behavior by changing [Marlin's config settings](https://marlinfw.org/docs/configuration/configuration.html).
* **Perform a [cursory search](https://github.com/MarlinFirmware/Marlin/issues?q=is%3Aissue)** to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
#### How Do I Submit A (Good) Feature Request?
@@ -117,12 +116,12 @@ Unsure where to begin contributing to Marlin? You can start by looking through t
### Pull Requests
Pull Requests should always be targeted to working branches (e.g., `bugfix-1.1.x` and/or `bugfix-2.0.x`) and never to release branches (e.g., `1.1.x`). If this is your first Pull Request, please read our [Guide to Pull Requests](http://marlinfw.org/docs/development/getting_started_pull_requests.html) and Github's [Pull Request](https://help.github.com/articles/creating-a-pull-request/) documentation.
Pull Requests should always be targeted to working branches (e.g., `bugfix-1.1.x` and/or `bugfix-2.0.x`) and never to release branches (e.g., `1.1.x`). If this is your first Pull Request, please read our [Guide to Pull Requests](https://marlinfw.org/docs/development/getting_started_pull_requests.html) and Github's [Pull Request](https://help.github.com/articles/creating-a-pull-request/) documentation.
* Fill in [the required template](pull_request_template.md).
* Don't include issue numbers in the PR title.
* Include pictures, diagrams, and links to videos in your Pull Request to demonstrate your changes, if needed.
* Follow the [Coding Standards](http://marlinfw.org/docs/development/coding_standards.html) posted on our website.
* Follow the [Coding Standards](https://marlinfw.org/docs/development/coding_standards.html) posted on our website.
* Document new code with clear and concise comments.
* End all files with a newline.
@@ -137,7 +136,7 @@ Pull Requests should always be targeted to working branches (e.g., `bugfix-1.1.x
### C++ Coding Standards
* Please read and follow the [Coding Standards](http://marlinfw.org/docs/development/coding_standards.html) posted on our website. Failure to follow these guidelines will delay evaluation and acceptance of Pull Requests.
* Please read and follow the [Coding Standards](https://marlinfw.org/docs/development/coding_standards.html) posted on our website. Failure to follow these guidelines will delay evaluation and acceptance of Pull Requests.
### Documentation
+7 -3
View File
@@ -1,10 +1,14 @@
<!--
Have you read Marlin's Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/MarlinFirmware/Marlin/blob/master/.github/code_of_conduct.md
Have you read Marlin's Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/MarlinFirmware/Marlin/blob/bugfix-2.0.x/.github/code_of_conduct.md
Do you want to ask a question? Are you looking for support? Please don't post here. Instead please use the Marlin Firmware forum at http://forums.reprap.org/list.php?415 or the Marlin Facebook Group https://www.facebook.com/groups/1049718498464482/.
Do you want to ask a question? Are you looking for support? Please don't post here. Instead use one of the following options:
Before filing an issue be sure to test the 1.1 and/or 2.0 "bugfix" branches to see whether the issue is already addressed.
- The Marlin Firmware forum at https://reprap.org/forum/list.php?415
- The MarlinFirmware Facebook Group at https://www.facebook.com/groups/1049718498464482/
- The MarlinFirmware Discord Server at https://discord.gg/n5NJ59y.
Before filing an issue be sure to test the latest "bugfix" branch to see whether the issue is already addressed.
-->
+40
View File
@@ -0,0 +1,40 @@
#
# Configuration for Lock Threads - https://github.com/dessant/lock-threads-app
#
# Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 60
# Skip issues and pull requests created before a given timestamp. Timestamp must
# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable
skipCreatedBefore: false
# Issues and pull requests with these labels will be ignored. Set to `[]` to disable
exemptLabels: [ 'no-locking' ]
# Label to add before locking, such as `outdated`. Set to `false` to disable
lockLabel: false
# Comment to post before locking. Set to `false` to disable
lockComment: >
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.
# Assign `resolved` as the reason for locking. Set to `false` to disable
setLockReason: true
# Limit to only `issues` or `pulls`
# only: issues
# Optionally, specify configuration settings just for `issues` or `pulls`
# issues:
# exemptLabels:
# - help-wanted
# lockLabel: outdated
# pulls:
# daysUntilLock: 30
# Repository to extend settings from
# _extends: repo
+4
View File
@@ -14,6 +14,10 @@ We must be able to understand your proposed change from this description. If we
<!-- What does this fix or improve? -->
### Configurations
<!-- Attach any Configuration.h, Configuration_adv.h, or platformio.ini files needed to compile/test your Pull Request. -->
### Related Issues
<!-- Whether this fixes a bug or fulfills a feature request, please list any related Issues here. -->
+128
View File
@@ -0,0 +1,128 @@
#
# test-builds.yml
# Do test builds to catch compile errors
#
name: CI
on:
pull_request:
branches:
- bugfix-2.0.x
paths-ignore:
- config/**
- data/**
- docs/**
- '**/*.md'
push:
branches:
- bugfix-2.0.x
paths-ignore:
- config/**
- data/**
- docs/**
- '**/*.md'
jobs:
test_builds:
name: Run All Tests
if: github.repository == 'MarlinFirmware/Marlin'
runs-on: ubuntu-latest
strategy:
matrix:
test-platform:
# Base Environments
- DUE
- DUE_archim
- esp32
- linux_native
- mega2560
- at90usb1286_dfu
- teensy31
- teensy35
- teensy41
- SAMD51_grandcentral_m4
# Extended AVR Environments
- FYSETC_F6
- mega1280
- rambo
- sanguino1284p
- sanguino644p
# STM32F1 (Maple) Environments
#- STM32F103RC_btt_maple
- STM32F103RC_btt_USB_maple
- STM32F103RC_fysetc
- STM32F103RC_meeb
- jgaurora_a5s_a1
- STM32F103VE_longer
#- mks_robin_maple
- mks_robin_lite
- mks_robin_pro
#- mks_robin_nano35_maple
#- STM32F103RET6_creality_maple
# STM32 (ST) Environments
- STM32F103RC_btt
#- STM32F103RC_btt_USB
- STM32F103RE_btt
- STM32F103RE_btt_USB
- STM32F103RET6_creality
- STM32F407VE_black
- STM32F401VE_STEVAL
- BIGTREE_BTT002
- BIGTREE_SKR_PRO
- BIGTREE_GTR_V1_0
- mks_robin
- ARMED
- FYSETC_S6
- STM32F070CB_malyan
- STM32F070RB_malyan
- malyan_M300
- FLYF407ZG
- rumba32
- LERDGEX
- LERDGEK
- mks_robin_nano35
- NUCLEO_F767ZI
- REMRAM_V1
- BTT_SKR_SE_BX
- chitu_f103
# Put lengthy tests last
- LPC1768
- LPC1769
# Non-working environment tests
#- at90usb1286_cdc
#- STM32F103CB_malyan
#- STM32F103RE
#- mks_robin_mini
steps:
- name: Select Python 3.7
uses: actions/setup-python@v1
with:
python-version: '3.7' # Version range or exact version of a Python version to use, using semvers version range syntax.
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install PlatformIO
run: |
pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
platformio update
- name: Check out the PR
uses: actions/checkout@v2
- name: Run ${{ matrix.test-platform }} Tests
run: |
make tests-single-ci TEST_TARGET=${{ matrix.test-platform }}
+28 -32
View File
@@ -1,9 +1,9 @@
#
# Marlin 3D Printer Firmware
# Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
# Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
#
# Based on Sprinter and grbl.
# Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
# Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -16,12 +16,12 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# Our automatic versioning scheme generates the following file
# NEVER put it in the repository
# Generated files
_Version.h
bdf2u8g
#
# OS
@@ -77,7 +77,6 @@ tags
*.out
*.app
#
# C
#
@@ -123,30 +122,10 @@ tags
.gcc-flags.json
/lib/
# Workaround for Deviot+platformio quirks
Marlin/lib
Marlin/platformio.ini
Marlin/*/platformio.ini
Marlin/*/*/platformio.ini
Marlin/*/*/*/platformio.ini
Marlin/*/*/*/*/platformio.ini
Marlin/.travis.yml
Marlin/*/.travis.yml
Marlin/*/*/.travis.yml
Marlin/*/*/*/.travis.yml
Marlin/*/*/*/*/.travis.yml
Marlin/.gitignore
Marlin/*/.gitignore
Marlin/*/*/.gitignore
Marlin/*/*/*/.gitignore
Marlin/*/*/*/*/.gitignore
Marlin/readme.txt
Marlin/*/readme.txt
Marlin/*/*/readme.txt
Marlin/*/*/*/readme.txt
Marlin/*/*/*/*/readme.txt
# Secure Credentials
Configuration_Secure.h
#Visual Studio
# Visual Studio
*.sln
*.vcxproj
*.vcxproj.user
@@ -157,17 +136,34 @@ __vm/
.vs/
vc-fileutils.settings
#Visual Studio Code
# Visual Studio Code
.vscode
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/*.db
#cmake
# cmake
CMakeLists.txt
src/CMakeLists.txt
CMakeListsPrivate.txt
#CLion
# CLion
cmake-build-*
# Eclipse
.project
.cproject
.pydevproject
.settings
.classpath
# Python
__pycache__
# IOLogger logs
*_log.csv
# Simulation / Native
eeprom.dat
imgui.ini
-62
View File
@@ -1,62 +0,0 @@
dist: trusty
sudo: require
language: python
python:
- "2.7"
notifications:
email: false
# Cache PlatformIO packages using Travis CI container-based infrastructure
sudo: false
cache:
pip: true
directories:
- "~/.platformio"
env:
- TEST_PLATFORM="megaatmega2560"
- TEST_PLATFORM="DUE"
- TEST_PLATFORM="LPC1768"
- TEST_PLATFORM="LPC1769"
#- TEST_PLATFORM="STM32F1"
- TEST_PLATFORM="teensy35"
- TEST_PLATFORM="linux_native"
- TEST_PLATFORM="esp32"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
before_install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
#
# Fetch the tag information for the current branch
- git fetch origin --tags
#
# Publish the buildroot script folder
- chmod +x ${TRAVIS_BUILD_DIR}/buildroot/bin/*
- chmod +x ${TRAVIS_BUILD_DIR}/buildroot/share/tests/*
- export PATH=${TRAVIS_BUILD_DIR}/buildroot/bin/:${TRAVIS_BUILD_DIR}/buildroot/share/tests/:${PATH}
install:
#- pip install -U platformio
- pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
before_script:
# Update PlatformIO packages
- platformio update
#
# Change current working directory to the build dir
- cd ${TRAVIS_BUILD_DIR}
#
# Generate custom version include
- generate_version ${TRAVIS_BUILD_DIR}/Marlin/src/inc
- cat ${TRAVIS_BUILD_DIR}/Marlin/src/inc/_Version.h
#
script:
- run_tests ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
+6 -7
View File
@@ -3,7 +3,7 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (c) 2007 Free Software Foundation, Inc. <https://www.fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -634,7 +634,7 @@ state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}
Copyright (c) {year} {name of author}
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -647,14 +647,14 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
{project} Copyright (C) {year} {fullname}
{project} Copyright (c) {year} {fullname}
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
@@ -666,12 +666,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
<https://www.gnu.org/licenses/why-not-lgpl.html>.
+52
View File
@@ -0,0 +1,52 @@
help:
@echo "Tasks for local development:"
@echo "* tests-single-ci: Run a single test from inside the CI"
@echo "* tests-single-local: Run a single test locally"
@echo "* tests-single-local-docker: Run a single test locally, using docker-compose"
@echo "* tests-all-local: Run all tests locally"
@echo "* tests-all-local-docker: Run all tests locally, using docker-compose"
@echo "* setup-local-docker: Setup local docker-compose"
@echo ""
@echo "Options for testing:"
@echo " TEST_TARGET Set when running tests-single-*, to select the"
@echo " test. If you set it to ALL it will run all "
@echo " tests, but some of them are broken: use "
@echo " tests-all-* instead to run only the ones that "
@echo " run on GitHub CI"
@echo " ONLY_TEST Limit tests to only those that contain this, or"
@echo " the index of the test (1-based)"
@echo " VERBOSE_PLATFORMIO If you want the full PIO output, set any value"
@echo " GIT_RESET_HARD Used by CI: reset all local changes. WARNING:"
@echo " THIS WILL UNDO ANY CHANGES YOU'VE MADE!"
.PHONY: help
tests-single-ci:
export GIT_RESET_HARD=true
$(MAKE) tests-single-local TEST_TARGET=$(TEST_TARGET)
.PHONY: tests-single-ci
tests-single-local:
@if ! test -n "$(TEST_TARGET)" ; then echo "***ERROR*** Set TEST_TARGET=<your-module> or use make tests-all-local" ; return 1; fi
export PATH=./buildroot/bin/:./buildroot/tests/:${PATH} \
&& export VERBOSE_PLATFORMIO=$(VERBOSE_PLATFORMIO) \
&& run_tests . $(TEST_TARGET) "$(ONLY_TEST)"
.PHONY: tests-single-local
tests-single-local-docker:
@if ! test -n "$(TEST_TARGET)" ; then echo "***ERROR*** Set TEST_TARGET=<your-module> or use make tests-all-local-docker" ; return 1; fi
docker-compose run --rm marlin $(MAKE) tests-single-local TEST_TARGET=$(TEST_TARGET) VERBOSE_PLATFORMIO=$(VERBOSE_PLATFORMIO) GIT_RESET_HARD=$(GIT_RESET_HARD) ONLY_TEST="$(ONLY_TEST)"
.PHONY: tests-single-local-docker
tests-all-local:
export PATH=./buildroot/bin/:./buildroot/tests/:${PATH} \
&& export VERBOSE_PLATFORMIO=$(VERBOSE_PLATFORMIO) \
&& for TEST_TARGET in $$(./get_test_targets.py) ; do echo "Running tests for $$TEST_TARGET" ; run_tests . $$TEST_TARGET ; done
.PHONY: tests-all-local
tests-all-local-docker:
docker-compose run --rm marlin $(MAKE) tests-all-local VERBOSE_PLATFORMIO=$(VERBOSE_PLATFORMIO) GIT_RESET_HARD=$(GIT_RESET_HARD)
.PHONY: tests-all-local-docker
setup-local-docker:
docker-compose build
.PHONY: setup-local-docker
+1218 -449
View File
File diff suppressed because it is too large Load Diff
+2363 -554
View File
File diff suppressed because it is too large Load Diff
+313 -160
View File
@@ -14,7 +14,7 @@
# 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 Mac OS X, this
# 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
@@ -22,8 +22,10 @@
# (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.
# Older one's are atmega8 based, newer ones like Arduino Mini, Bluetooth
# 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
@@ -34,18 +36,18 @@
# 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 overriden from
# 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=33 ARDUINO_INSTALL_DIR=/root/arduino
# 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=33 ARDUINO_INSTALL_DIR=/root/arduino upload
# 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:
@@ -57,7 +59,26 @@
#
# This defines the board to compile for (see boards.h for your board's ID)
HARDWARE_MOTHERBOARD ?= 11
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
@@ -67,35 +88,44 @@ 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. (ex: /usr/local/avr-gcc/bin)
# 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
# Programmer configuration
UPLOAD_RATE ?= 57600
AVRDUDE_PROGRAMMER ?= arduino
# on most linuxes this will be /dev/ttyACM0 or /dev/ttyACM1
# 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 .
# 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
# This defines if Wire is needed
WIRE ?= 0
# this defines if U8GLIB is needed (may require RELOC_WORKAROUND)
U8GLIB ?= 1
# This defines if Tone is needed (i.e SPEAKER is defined in Configuration.h)
# Disabling this (and SPEAKER) saves approximatively 350 bytes of memory.
TONE ?= 1
# this defines whether to include the Trinamic TMCStepper library
TMC ?= 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:
# http://www.avrfreaks.net/comment/1789106#comment-1789106
# 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\ )
@@ -122,333 +152,426 @@ ifeq ($(HARDWARE_MOTHERBOARD),0)
#
# MEGA/RAMPS up to 1.2
else ifeq ($(HARDWARE_MOTHERBOARD),3)
else ifeq ($(HARDWARE_MOTHERBOARD),1000)
# RAMPS 1.3 (Power outputs: Hotend, Fan, Bed)
else ifeq ($(HARDWARE_MOTHERBOARD),33)
else ifeq ($(HARDWARE_MOTHERBOARD),1010)
# RAMPS 1.3 (Power outputs: Hotend0, Hotend1, Bed)
else ifeq ($(HARDWARE_MOTHERBOARD),34)
else ifeq ($(HARDWARE_MOTHERBOARD),1011)
# RAMPS 1.3 (Power outputs: Hotend, Fan0, Fan1)
else ifeq ($(HARDWARE_MOTHERBOARD),35)
else ifeq ($(HARDWARE_MOTHERBOARD),1012)
# RAMPS 1.3 (Power outputs: Hotend0, Hotend1, Fan)
else ifeq ($(HARDWARE_MOTHERBOARD),36)
else ifeq ($(HARDWARE_MOTHERBOARD),1013)
# RAMPS 1.3 (Power outputs: Spindle, Controller Fan)
else ifeq ($(HARDWARE_MOTHERBOARD),38)
else ifeq ($(HARDWARE_MOTHERBOARD),1014)
# RAMPS 1.4 (Power outputs: Hotend, Fan, Bed)
else ifeq ($(HARDWARE_MOTHERBOARD),43)
else ifeq ($(HARDWARE_MOTHERBOARD),1020)
# RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Bed)
else ifeq ($(HARDWARE_MOTHERBOARD),44)
else ifeq ($(HARDWARE_MOTHERBOARD),1021)
# RAMPS 1.4 (Power outputs: Hotend, Fan0, Fan1)
else ifeq ($(HARDWARE_MOTHERBOARD),45)
else ifeq ($(HARDWARE_MOTHERBOARD),1022)
# RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Fan)
else ifeq ($(HARDWARE_MOTHERBOARD),46)
else ifeq ($(HARDWARE_MOTHERBOARD),1023)
# RAMPS 1.4 (Power outputs: Spindle, Controller Fan)
else ifeq ($(HARDWARE_MOTHERBOARD),48)
else ifeq ($(HARDWARE_MOTHERBOARD),1024)
# RAMPS Plus 3DYMY (Power outputs: Hotend, Fan, Bed)
else ifeq ($(HARDWARE_MOTHERBOARD),143)
else ifeq ($(HARDWARE_MOTHERBOARD),1030)
# RAMPS Plus 3DYMY (Power outputs: Hotend0, Hotend1, Bed)
else ifeq ($(HARDWARE_MOTHERBOARD),144)
else ifeq ($(HARDWARE_MOTHERBOARD),1031)
# RAMPS Plus 3DYMY (Power outputs: Hotend, Fan0, Fan1)
else ifeq ($(HARDWARE_MOTHERBOARD),145)
else ifeq ($(HARDWARE_MOTHERBOARD),1032)
# RAMPS Plus 3DYMY (Power outputs: Hotend0, Hotend1, Fan)
else ifeq ($(HARDWARE_MOTHERBOARD),146)
else ifeq ($(HARDWARE_MOTHERBOARD),1033)
# RAMPS Plus 3DYMY (Power outputs: Spindle, Controller Fan)
else ifeq ($(HARDWARE_MOTHERBOARD),148)
else ifeq ($(HARDWARE_MOTHERBOARD),1034)
#
# RAMPS Derivatives - ATmega1280, ATmega2560
#
# 3Drag Controller
else ifeq ($(HARDWARE_MOTHERBOARD),77)
else ifeq ($(HARDWARE_MOTHERBOARD),1100)
# Velleman K8200 Controller (derived from 3Drag Controller)
else ifeq ($(HARDWARE_MOTHERBOARD),78)
else ifeq ($(HARDWARE_MOTHERBOARD),1101)
# Velleman K8400 Controller (derived from 3Drag Controller)
else ifeq ($(HARDWARE_MOTHERBOARD),79)
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),401)
else ifeq ($(HARDWARE_MOTHERBOARD),1105)
# 2PrintBeta BAM&DICE Due with STK drivers
else ifeq ($(HARDWARE_MOTHERBOARD),402)
else ifeq ($(HARDWARE_MOTHERBOARD),1106)
# MKS BASE v1.0
else ifeq ($(HARDWARE_MOTHERBOARD),40)
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),405)
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),41)
else ifeq ($(HARDWARE_MOTHERBOARD),1111)
# MKS GEN v1.3 or 1.4
else ifeq ($(HARDWARE_MOTHERBOARD),47)
else ifeq ($(HARDWARE_MOTHERBOARD),1112)
# MKS GEN L
else ifeq ($(HARDWARE_MOTHERBOARD),53)
# zrib V2.0 control board (Chinese knock off RAMPS replica)
else ifeq ($(HARDWARE_MOTHERBOARD),504)
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),37)
else ifeq ($(HARDWARE_MOTHERBOARD),1116)
# Invent-A-Part RigidBoard
else ifeq ($(HARDWARE_MOTHERBOARD),42)
else ifeq ($(HARDWARE_MOTHERBOARD),1117)
# Invent-A-Part RigidBoard V2
else ifeq ($(HARDWARE_MOTHERBOARD),52)
else ifeq ($(HARDWARE_MOTHERBOARD),1118)
# Sainsmart 2-in-1 board
else ifeq ($(HARDWARE_MOTHERBOARD),49)
else ifeq ($(HARDWARE_MOTHERBOARD),1119)
# Ultimaker
else ifeq ($(HARDWARE_MOTHERBOARD),7)
else ifeq ($(HARDWARE_MOTHERBOARD),1120)
# Ultimaker (Older electronics. Pre 1.5.4. This is rare)
else ifeq ($(HARDWARE_MOTHERBOARD),71)
MCU ?= atmega1280
else ifeq ($(HARDWARE_MOTHERBOARD),1121)
MCU ?= atmega1280
PROG_MCU ?= m1280
# Azteeg X3
else ifeq ($(HARDWARE_MOTHERBOARD),67)
else ifeq ($(HARDWARE_MOTHERBOARD),1122)
# Azteeg X3 Pro
else ifeq ($(HARDWARE_MOTHERBOARD),68)
else ifeq ($(HARDWARE_MOTHERBOARD),1123)
# Ultimainboard 2.x (Uses TEMP_SENSOR 20)
else ifeq ($(HARDWARE_MOTHERBOARD),72)
else ifeq ($(HARDWARE_MOTHERBOARD),1124)
# Rumba
else ifeq ($(HARDWARE_MOTHERBOARD),80)
else ifeq ($(HARDWARE_MOTHERBOARD),1125)
# Raise3D Rumba
else ifeq ($(HARDWARE_MOTHERBOARD),333)
else ifeq ($(HARDWARE_MOTHERBOARD),1126)
# Rapide Lite RL200 Rumba
else ifeq ($(HARDWARE_MOTHERBOARD),801)
else ifeq ($(HARDWARE_MOTHERBOARD),1127)
# Formbot T-Rex 2 Plus
else ifeq ($(HARDWARE_MOTHERBOARD),95)
else ifeq ($(HARDWARE_MOTHERBOARD),1128)
# Formbot T-Rex 3
else ifeq ($(HARDWARE_MOTHERBOARD),96)
else ifeq ($(HARDWARE_MOTHERBOARD),1129)
# Formbot Raptor
else ifeq ($(HARDWARE_MOTHERBOARD),97)
else ifeq ($(HARDWARE_MOTHERBOARD),1130)
# Formbot Raptor 2
else ifeq ($(HARDWARE_MOTHERBOARD),98)
else ifeq ($(HARDWARE_MOTHERBOARD),1131)
# bq ZUM Mega 3D
else ifeq ($(HARDWARE_MOTHERBOARD),503)
else ifeq ($(HARDWARE_MOTHERBOARD),1132)
# MakeBoard Mini v2.1.2 is a control board sold by MicroMake
else ifeq ($(HARDWARE_MOTHERBOARD),431)
else ifeq ($(HARDWARE_MOTHERBOARD),1133)
# TriGorilla Anycubic version 1.3 based on RAMPS EFB
else ifeq ($(HARDWARE_MOTHERBOARD),343)
else ifeq ($(HARDWARE_MOTHERBOARD),1134)
# TriGorilla Anycubic version 1.4 based on RAMPS EFB
else ifeq ($(HARDWARE_MOTHERBOARD),443)
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),243)
else ifeq ($(HARDWARE_MOTHERBOARD),1137)
# Creality: CR10S, CR20, CR-X
else ifeq ($(HARDWARE_MOTHERBOARD),244)
# Fysetc F6
else ifeq ($(HARDWARE_MOTHERBOARD),541)
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),31)
else ifeq ($(HARDWARE_MOTHERBOARD),1142)
# VORON
else ifeq ($(HARDWARE_MOTHERBOARD),441)
else ifeq ($(HARDWARE_MOTHERBOARD),1143)
# TRONXY V3 1.0
else ifeq ($(HARDWARE_MOTHERBOARD),442)
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),111)
else ifeq ($(HARDWARE_MOTHERBOARD),1300)
# Cartesio CN Controls V12
else ifeq ($(HARDWARE_MOTHERBOARD),112)
else ifeq ($(HARDWARE_MOTHERBOARD),1301)
# Cartesio CN Controls V15
else ifeq ($(HARDWARE_MOTHERBOARD),1302)
# Cheaptronic v1.0
else ifeq ($(HARDWARE_MOTHERBOARD),2)
else ifeq ($(HARDWARE_MOTHERBOARD),1303)
# Cheaptronic v2.0
else ifeq ($(HARDWARE_MOTHERBOARD),21)
else ifeq ($(HARDWARE_MOTHERBOARD),1304)
# Makerbot Mightyboard Revision E
else ifeq ($(HARDWARE_MOTHERBOARD),200)
else ifeq ($(HARDWARE_MOTHERBOARD),1305)
# Megatronics
else ifeq ($(HARDWARE_MOTHERBOARD),70)
else ifeq ($(HARDWARE_MOTHERBOARD),1306)
# Megatronics v2.0
else ifeq ($(HARDWARE_MOTHERBOARD),701)
else ifeq ($(HARDWARE_MOTHERBOARD),1307)
# Megatronics v3.0
else ifeq ($(HARDWARE_MOTHERBOARD),703)
else ifeq ($(HARDWARE_MOTHERBOARD),1308)
# Megatronics v3.1
else ifeq ($(HARDWARE_MOTHERBOARD),704)
# Rambo
else ifeq ($(HARDWARE_MOTHERBOARD),301)
# Mini-Rambo
else ifeq ($(HARDWARE_MOTHERBOARD),302)
# Mini-Rambo 1.0a
else ifeq ($(HARDWARE_MOTHERBOARD),303)
# Einsy Rambo
else ifeq ($(HARDWARE_MOTHERBOARD),304)
# Einsy Retro
else ifeq ($(HARDWARE_MOTHERBOARD),305)
else ifeq ($(HARDWARE_MOTHERBOARD),1309)
# Megatronics v3.2
else ifeq ($(HARDWARE_MOTHERBOARD),1310)
# Elefu Ra Board (v3)
else ifeq ($(HARDWARE_MOTHERBOARD),21)
else ifeq ($(HARDWARE_MOTHERBOARD),1311)
# Leapfrog
else ifeq ($(HARDWARE_MOTHERBOARD),999)
else ifeq ($(HARDWARE_MOTHERBOARD),1312)
# Mega controller
else ifeq ($(HARDWARE_MOTHERBOARD),310)
# abee Scoovo X9H
else ifeq ($(HARDWARE_MOTHERBOARD),321)
else ifeq ($(HARDWARE_MOTHERBOARD),1313)
# Geeetech GT2560 Rev B for Mecreator2
else ifeq ($(HARDWARE_MOTHERBOARD),73)
else ifeq ($(HARDWARE_MOTHERBOARD),1314)
# Geeetech GT2560 Rev. A
else ifeq ($(HARDWARE_MOTHERBOARD),74)
else ifeq ($(HARDWARE_MOTHERBOARD),1315)
# Geeetech GT2560 Rev. A+ (with auto level probe)
else ifeq ($(HARDWARE_MOTHERBOARD),75)
else ifeq ($(HARDWARE_MOTHERBOARD),1316)
# Geeetech GT2560 Rev B for A10(M/D)
else ifeq ($(HARDWARE_MOTHERBOARD),76)
else ifeq ($(HARDWARE_MOTHERBOARD),1317)
# Geeetech GT2560 Rev B for A20(M/D)
else ifeq ($(HARDWARE_MOTHERBOARD),86)
else ifeq ($(HARDWARE_MOTHERBOARD),1318)
# Einstart retrofit
else ifeq ($(HARDWARE_MOTHERBOARD),1319)
# Wanhao 0ne+ i3 Mini
else ifeq ($(HARDWARE_MOTHERBOARD),1320)
#
# ATmega1281, ATmega2561
#
else ifeq ($(HARDWARE_MOTHERBOARD),702)
# Minitronics v1.0/1.1
else ifeq ($(HARDWARE_MOTHERBOARD),1400)
MCU ?= atmega1281
else ifeq ($(HARDWARE_MOTHERBOARD),25)
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),6)
else ifeq ($(HARDWARE_MOTHERBOARD),1500)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega644p
PROG_MCU ?= m644p
# Sanguinololu 1.2 and above
else ifeq ($(HARDWARE_MOTHERBOARD),62)
else ifeq ($(HARDWARE_MOTHERBOARD),1501)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega644p
PROG_MCU ?= m644p
# Melzi
else ifeq ($(HARDWARE_MOTHERBOARD),63)
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),66)
else ifeq ($(HARDWARE_MOTHERBOARD),1504)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega1284p
PROG_MCU ?= m1284p
# Melzi Creality3D board (for CR-10 etc)
else ifeq ($(HARDWARE_MOTHERBOARD),89)
else ifeq ($(HARDWARE_MOTHERBOARD),1505)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega1284p
PROG_MCU ?= m1284p
# Melzi Malyan M150 board
else ifeq ($(HARDWARE_MOTHERBOARD),92)
else ifeq ($(HARDWARE_MOTHERBOARD),1506)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega1284p
PROG_MCU ?= m1284p
# Tronxy X5S
else ifeq ($(HARDWARE_MOTHERBOARD),505)
else ifeq ($(HARDWARE_MOTHERBOARD),1507)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega1284p
PROG_MCU ?= m1284p
# STB V1.1
else ifeq ($(HARDWARE_MOTHERBOARD),64)
else ifeq ($(HARDWARE_MOTHERBOARD),1508)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega1284p
PROG_MCU ?= m1284p
# Azteeg X1
else ifeq ($(HARDWARE_MOTHERBOARD),65)
else ifeq ($(HARDWARE_MOTHERBOARD),1509)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega1284p
PROG_MCU ?= m1284p
# Anet 1.0 (Melzi clone)
else ifeq ($(HARDWARE_MOTHERBOARD),69)
else ifeq ($(HARDWARE_MOTHERBOARD),1510)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega1284p
PROG_MCU ?= m1284p
#
# Other ATmega644P, ATmega644, ATmega1284P
#
# Gen3 Monolithic Electronics
else ifeq ($(HARDWARE_MOTHERBOARD),22)
else ifeq ($(HARDWARE_MOTHERBOARD),1600)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega644p
PROG_MCU ?= m644p
# Gen3+
else ifeq ($(HARDWARE_MOTHERBOARD),9)
else ifeq ($(HARDWARE_MOTHERBOARD),1601)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega644p
PROG_MCU ?= m644p
# Gen6
else ifeq ($(HARDWARE_MOTHERBOARD),5)
else ifeq ($(HARDWARE_MOTHERBOARD),1602)
HARDWARE_VARIANT ?= Gen6
MCU ?= atmega644p
PROG_MCU ?= m644p
# Gen6 deluxe
else ifeq ($(HARDWARE_MOTHERBOARD),51)
else ifeq ($(HARDWARE_MOTHERBOARD),1603)
HARDWARE_VARIANT ?= Gen6
MCU ?= atmega644p
PROG_MCU ?= m644p
# Gen7 custom (Alfons3 Version)
else ifeq ($(HARDWARE_MOTHERBOARD),10)
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),11)
else ifeq ($(HARDWARE_MOTHERBOARD),1605)
HARDWARE_VARIANT ?= Gen7
MCU ?= atmega644p
PROG_MCU ?= m644p
F_CPU ?= 20000000
# Gen7 v1.3
else ifeq ($(HARDWARE_MOTHERBOARD),12)
else ifeq ($(HARDWARE_MOTHERBOARD),1606)
HARDWARE_VARIANT ?= Gen7
MCU ?= atmega644p
PROG_MCU ?= m644p
F_CPU ?= 20000000
# Gen7 v1.4
else ifeq ($(HARDWARE_MOTHERBOARD),13)
else ifeq ($(HARDWARE_MOTHERBOARD),1607)
HARDWARE_VARIANT ?= Gen7
MCU ?= atmega1284p
PROG_MCU ?= m1284p
F_CPU ?= 20000000
# Alpha OMCA board
else ifeq ($(HARDWARE_MOTHERBOARD),90)
else ifeq ($(HARDWARE_MOTHERBOARD),1608)
HARDWARE_VARIANT ?= SanguinoA
MCU ?= atmega644
PROG_MCU ?= m644
# Final OMCA board
else ifeq ($(HARDWARE_MOTHERBOARD),91)
else ifeq ($(HARDWARE_MOTHERBOARD),1609)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega644p
PROG_MCU ?= m644p
# Sethi 3D_1
else ifeq ($(HARDWARE_MOTHERBOARD),20)
else ifeq ($(HARDWARE_MOTHERBOARD),1610)
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega644p
PROG_MCU ?= m644p
#
# Teensyduino - AT90USB1286, AT90USB1286P
#
# Teensylu
else ifeq ($(HARDWARE_MOTHERBOARD),8)
else ifeq ($(HARDWARE_MOTHERBOARD),1700)
HARDWARE_VARIANT ?= Teensy
MCU ?= at90usb1286
PROG_MCU ?= usb1286
# Printrboard (AT90USB1286)
else ifeq ($(HARDWARE_MOTHERBOARD),81)
else ifeq ($(HARDWARE_MOTHERBOARD),1701)
HARDWARE_VARIANT ?= Teensy
MCU ?= at90usb1286
PROG_MCU ?= usb1286
# Printrboard Revision F (AT90USB1286)
else ifeq ($(HARDWARE_MOTHERBOARD),811)
else ifeq ($(HARDWARE_MOTHERBOARD),1702)
HARDWARE_VARIANT ?= Teensy
MCU ?= at90usb1286
PROG_MCU ?= usb1286
# Brainwave (AT90USB646)
else ifeq ($(HARDWARE_MOTHERBOARD),82)
else ifeq ($(HARDWARE_MOTHERBOARD),1703)
HARDWARE_VARIANT ?= Teensy
MCU ?= at90usb646
PROG_MCU ?= usb646
# Brainwave Pro (AT90USB1286)
else ifeq ($(HARDWARE_MOTHERBOARD),83)
else ifeq ($(HARDWARE_MOTHERBOARD),1704)
HARDWARE_VARIANT ?= Teensy
MCU ?= at90usb1286
PROG_MCU ?= usb1286
# SAV Mk-I (AT90USB1286)
else ifeq ($(HARDWARE_MOTHERBOARD),84)
else ifeq ($(HARDWARE_MOTHERBOARD),1705)
HARDWARE_VARIANT ?= Teensy
MCU ?= at90usb1286
PROG_MCU ?= usb1286
# Teensy++2.0 (AT90USB1286)
else ifeq ($(HARDWARE_MOTHERBOARD),85)
else ifeq ($(HARDWARE_MOTHERBOARD),1706)
HARDWARE_VARIANT ?= Teensy
MCU ?= at90usb1286
PROG_MCU ?= usb1286
# 5DPrint D8 Driver Board
else ifeq ($(HARDWARE_MOTHERBOARD),88)
else ifeq ($(HARDWARE_MOTHERBOARD),1707)
HARDWARE_VARIANT ?= Teensy
MCU ?= at90usb1286
PROG_MCU ?= usb1286
# UltiMachine Archim1 (with DRV8825 drivers)
else ifeq ($(HARDWARE_MOTHERBOARD),1591)
else ifeq ($(HARDWARE_MOTHERBOARD),3023)
HARDWARE_VARIANT ?= archim
MCPU = cortex-m3
F_CPU = 84000000L
F_CPU = 84000000
IS_MCU = 0
# UltiMachine Archim2 (with TMC2130 drivers)
else ifeq ($(HARDWARE_MOTHERBOARD),1592)
else ifeq ($(HARDWARE_MOTHERBOARD),3024)
HARDWARE_VARIANT ?= archim
MCPU = cortex-m3
F_CPU = 84000000L
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
@@ -458,7 +581,8 @@ IS_MCU ?= 1
ifeq ($(IS_MCU),1)
# Set to arduino, ATmega2560 if not yet set.
HARDWARE_VARIANT ?= arduino
MCU ?= atmega2560
MCU ?= atmega2560
PROG_MCU ?= m2560
TOOL_PREFIX = avr
MCU_FLAGS = -mmcu=$(MCU)
@@ -489,27 +613,36 @@ VPATH += $(BUILD_DIR)
VPATH += $(HARDWARE_SRC)
ifeq ($(HARDWARE_VARIANT), $(filter $(HARDWARE_VARIANT),arduino Teensy Sanguino))
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/marlin/avr/libraries/LiquidCrystal/src
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/marlin/avr/libraries/SPI
# 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)
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire/utility
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/LiquidTWI2
WIRE = 1
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/LiquidTWI2
endif
ifeq ($(WIRE), 1)
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire/utility
# 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
@@ -581,13 +714,23 @@ ifeq ($(WIRE), 1)
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
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 TMC2660Stepper.cpp TMC5130Stepper.cpp TMC5160Stepper.cpp
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)
@@ -629,17 +772,23 @@ REMOVE = rm -f
MV = mv -f
# Place -D or -U options here
CDEFS = -DF_CPU=$(F_CPU) ${addprefix -D , $(DEFINES)} -DARDUINO=$(ARDUINO_VERSION)
CDEFS = -DF_CPU=$(F_CPU)UL ${addprefix -D , $(DEFINES)} -DARDUINO=$(ARDUINO_VERSION)
CXXDEFS = $(CDEFS)
ifeq ($(HARDWARE_VARIANT), Teensy)
CDEFS += -DUSB_SERIAL
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__ -DUSB_VID=0x27b1 -DUSB_PID=0x0001 -DUSBCON '-DUSB_MANUFACTURER="UltiMachine"' '-DUSB_PRODUCT="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
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)
@@ -658,23 +807,27 @@ LIBWARN = -w -Wno-packed-bitfield-compat
CSTANDARD = -std=gnu99
CXXSTANDARD = -std=gnu++11
CDEBUG = -g$(DEBUG)
CWARN = -Wall -Wstrict-prototypes -Wno-packed-bitfield-compat -Wno-pragmas
CXXWARN = -Wall -Wno-packed-bitfield-compat -Wno-pragmas
CTUNING = -fsigned-char -funsigned-bitfields -fpack-struct -fno-exceptions \
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 -gcc -T$(LDSCRIPT) -u _sbrk -u link -u _close -u _fstat -u _isatty -u _lseek -u _read -u _write -u _exit -u kill -u _getpid
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
@@ -690,7 +843,7 @@ else
AVRDUDE_CONF = $(ARDUINO_INSTALL_DIR)/hardware/tools/avr/etc/avrdude.conf
endif
AVRDUDE_FLAGS = -D -C$(AVRDUDE_CONF) \
-p$(MCU) -P$(AVRDUDE_PORT) -c$(AVRDUDE_PROGRAMMER) \
-p$(PROG_MCU) -P$(AVRDUDE_PORT) -c$(AVRDUDE_PROGRAMMER) \
-b$(UPLOAD_RATE)
# Since Marlin 2.0, the source files may be distributed into several
@@ -791,7 +944,7 @@ extcoff: $(TARGET).elf
.elf.eep:
-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O $(FORMAT) $< $@
--change-section-lma .eeprom=0 -O $(FORMAT) $< $@
# Create extended listing file from ELF output file.
.elf.lss:
@@ -805,7 +958,7 @@ extcoff: $(TARGET).elf
$(BUILD_DIR)/$(TARGET).elf: $(OBJ) Configuration.h
$(Pecho) " CXX $@"
$P $(CC) $(LD_PREFIX) $(ALL_CXXFLAGS) -o $@ -L. $(OBJ) $(LDFLAGS) $(LD_SUFFIX)
$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"
@@ -840,5 +993,5 @@ clean:
.PHONY: all build elf hex eep lss sym program coff extcoff clean depend sizebefore sizeafter
# Automaticaly include the dependency files created by gcc
# Automatically include the dependency files created by gcc
-include ${patsubst %.o, %.d, ${OBJ}}
+15 -11
View File
@@ -1,9 +1,8 @@
/*
================================================================================
/*==============================================================================
Marlin Firmware
(c) 2011-2018 MarlinFirmware
(c) 2011-2020 MarlinFirmware
Portions of Marlin are (c) by their respective authors.
All code complies with GPLv2 and/or GPLv3
@@ -12,30 +11,33 @@
Greetings! Thank you for choosing Marlin 2 as your 3D printer firmware.
To configure Marlin you must edit Configuration.h and Configuration_adv.h
located in the root 'Marlin' folder. Check the config/examples folder to see if
there's a more suitable starting-point for your specific hardware.
located in the root 'Marlin' folder. Check our Configurations repository to
see if there's a more suitable starting-point for your specific hardware.
Before diving in, we recommend the following essential links:
Marlin Firmware Official Website
- http://marlinfw.org/
- https://marlinfw.org/
The official Marlin Firmware website contains the most up-to-date
documentation. Contributions are always welcome!
Configuration
- https://github.com/MarlinFirmware/Configurations
Example configurations for several printer models.
- https://www.youtube.com/watch?v=3gwWVFtdg-4
A good 20-minute overview of Marlin configuration by Tom Sanladerer.
(Applies to Marlin 1.0.x, so Jerk and Acceleration should be halved.)
Also... https://www.google.com/search?tbs=vid%3A1&q=configure+marlin
- http://marlinfw.org/docs/configuration/configuration.html
- https://marlinfw.org/docs/configuration/configuration.html
Marlin's configuration options are explained in more detail here.
Getting Help
- http://forums.reprap.org/list.php?415
- https://reprap.org/forum/list.php?415
The Marlin Discussion Forum is a great place to get help from other Marlin
users who may have experienced similar issues to your own.
@@ -45,9 +47,11 @@ Getting Help
Contributing
- http://marlinfw.org/docs/development/contributing.html
- https://marlinfw.org/docs/development/contributing.html
If you'd like to contribute to Marlin, read this first!
- http://marlinfw.org/docs/development/coding_standards.html
- https://marlinfw.org/docs/development/coding_standards.html
Before submitting code get to know the Coding Standards.
*/
------------------------------------------------------------------------------*/
+76
View File
@@ -0,0 +1,76 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
////////////////////////////
// VENDOR VERSION EXAMPLE //
////////////////////////////
/**
* Marlin release version identifier
*/
#define SHORT_BUILD_VERSION "2.0.8"
/**
* Verbose version identifier which should contain a reference to the location
* from where the binary was downloaded or the source code was compiled.
*/
#define DETAILED_BUILD_VERSION "IA_" SHORT_BUILD_VERSION
/**
* The STRING_DISTRIBUTION_DATE represents when the binary file was built,
* here we define this default string as the date where the latest release
* version was tagged.
*/
#define STRING_DISTRIBUTION_DATE "2021-06-05"
/**
* Defines a generic printer name to be output to the LCD after booting Marlin.
*/
#define MACHINE_NAME "Insanity Automation S8"
/**
* The SOURCE_CODE_URL is the location where users will find the Marlin Source
* Code which is installed on the device. In most cases —unless the manufacturer
* has a distinct Github fork— the Source Code URL should just be the main
* Marlin repository.
*/
#define SOURCE_CODE_URL "github.com/InsanityAutomation"
/**
* Default generic printer UUID.
*/
//#define DEFAULT_MACHINE_UUID "cede2a2f-41a2-4748-9b12-c55c62f367ff"
/**
* The WEBSITE_URL is the location where users can get more information such as
* documentation about a specific Marlin release.
*/
//#define WEBSITE_URL "insanityautomation.com"
/**
* Set the vendor info the serial USB interface, if changable
* Currently only supported by DUE platform
*/
//#define USB_DEVICE_VENDOR_ID 0x0000
//#define USB_DEVICE_PRODUCT_ID 0x0000
//#define USB_DEVICE_MANUFACTURE_NAME WEBSITE_URL
+113
View File
@@ -0,0 +1,113 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* Custom Bitmap for splashscreen
*
* You may use one of the following tools to generate the C++ bitmap array from
* a black and white image:
*
* - http://www.marlinfw.org/tools/u8glib/converter.html
* - http://www.digole.com/tools/PicturetoC_Hex_converter.php
*/
#pragma once
#define CUSTOM_BOOTSCREEN_TIMEOUT 2500
#define CUSTOM_BOOTSCREEN_BMPWIDTH 128
#define CUSTOM_BOOTSCREEN_BMPHEIGHT 64
/**
* Made with Marlin Bitmap Converter
* https://marlinfw.org/tools/u8glib/converter.html
*
* This bitmap from 128x64 C/C++ data
*/
#define HMIJ3S_BMPWIDTH 128
const unsigned char custom_start_bmp[] PROGMEM = {
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00111111,B11111000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01111111,B11111100,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B11111111,B11111110,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B11111111,B11111110,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,B11111111,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,B11111111,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,B11111111,B10000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000011,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000111,B11111111,B11111111,B11111000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001111,B11111111,B11111111,B11111000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11111111,B11111100,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00111111,B11111111,B11111111,B11111110,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01111111,B11111111,B01111111,B11111111,B10000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B11111111,B11111110,B00011111,B11111111,B11000000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B11111111,B11111100,B00001111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,B11111000,B00000011,B11111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000011,B11111111,B11111000,B00000001,B11111111,B11111000,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000111,B11111111,B11110000,B00000000,B11111111,B11111100,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00001111,B11111111,B11100000,B00000000,B00111111,B11111110,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11000000,B00000000,B00001111,B11111111,B00000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B10000000,B00000000,B00000111,B11111111,B10000000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00111111,B11111111,B00000000,B00000000,B00000001,B11111111,B11111000,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B01111111,B11111111,B00000000,B00000000,B00000000,B11111111,B11111110,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B11111111,B11111110,B00000000,B00000000,B00000000,B01111111,B11111111,B00000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,B11111100,B00000000,B00000000,B00000000,B00011111,B11111111,B10000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,B11111000,B00000000,B00000000,B00000000,B00001111,B11111111,B10000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000011,B11111111,B11110000,B00000000,B00000000,B00000000,B00000111,B11111111,B10000000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000111,B11111111,B11100000,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00001111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000011,B11111111,B11111110,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11000000,B00000000,B00000000,B00000000,B00000001,B11111111,B11111110,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00111111,B11111111,B10000000,B00000000,B00000000,B00000000,B00000000,B11111110,B01111110,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000001,B11111111,B11111111,B00000000,B00000000,B00000000,B00000000,B00000000,B11111000,B00001110,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00001111,B11111111,B11111110,B00000000,B00000000,B00000000,B00000000,B00000000,B11110000,B00001110,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00011111,B11111111,B11111100,B00000000,B00000000,B00000000,B00000000,B00000000,B11100000,B00000110,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B00111111,B11111111,B11111100,B00000000,B00000000,B00000000,B00000000,B00000000,B11100000,B00000110,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B01111111,B11111111,B11111000,B00000000,B00000000,B00000000,B00000000,B00000001,B11100000,B00000110,B00000000,B00000000,B00000000,
B00000000,B00000000,B00000000,B01111111,B11111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000001,B11111000,B00000110,B00000000,B00000000,B00000000,
B00000000,B00000111,B11111111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,B00111110,B00000000,B00000000,B00000000,
B00000000,B00011111,B11111111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111001,B11110000,B00000000,B00000000,
B00000000,B00011111,B11111111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,B11110000,B00000000,B00000000,
B00000000,B00011111,B11111111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000011,B11111111,B11000000,B00000000,B00000000,
B00000000,B00011111,B11111111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000011,B11111111,B11100010,B00000000,B00000000,
B00000000,B00011111,B11111111,B11111111,B11111111,B11000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B11111111,B11111111,B10000000,B00000000,
B00000000,B00011111,B11111111,B11111111,B11111111,B11000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01000011,B11111111,B11000000,B00000000,
B00000000,B00011111,B11111111,B11111111,B11111111,B10000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000111,B11111111,B10000000,B00000000,
B00000000,B00011111,B11111111,B11111111,B11111111,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001111,B11111100,B00000000,B00000000,
B00000000,B00001111,B11111111,B11111111,B11111000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111100,B00000000,B00000000,
B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00111100,B00000000,B00000000,
B00111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00111001,B00000000,B00000000,
B00111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B11100001,B11000000,B00000000,
B00111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,B11110000,B00000000,
B00111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B11111111,B11111100,B00000000,
B00111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B11111111,B11111111,B00000000,
B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000111,B11111111,B11100111,B11000000,
B00001111,B11111111,B11111111,B11111111,B11111111,B11111111,B10000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000111,B11111111,B11000011,B11110000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000011,B11011111,B11100001,B10000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001111,B11110000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000111,B11100000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000011,B00000000,B00000000,
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000
};
+1 -1
View File
@@ -33,4 +33,4 @@ PlatformIO will find your libraries automatically, configure preprocessor's
include paths and build them.
More information about PlatformIO Library Dependency Finder
- http://docs.platformio.org/page/librarymanager/ldf.html
- https://docs.platformio.org/page/librarymanager/ldf.html
+94
View File
@@ -0,0 +1,94 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#ifdef __AVR__
#include "../../inc/MarlinConfig.h"
#include "HAL.h"
#ifdef USBCON
DefaultSerial1 MSerial0(false, Serial);
#ifdef BLUETOOTH
BTSerial btSerial(false, bluetoothSerial);
#endif
#endif
// ------------------------
// Public Variables
// ------------------------
//uint8_t MCUSR;
// ------------------------
// Public functions
// ------------------------
void HAL_init() {
// Init Servo Pins
#define INIT_SERVO(N) OUT_WRITE(SERVO##N##_PIN, LOW)
#if HAS_SERVO_0
INIT_SERVO(0);
#endif
#if HAS_SERVO_1
INIT_SERVO(1);
#endif
#if HAS_SERVO_2
INIT_SERVO(2);
#endif
#if HAS_SERVO_3
INIT_SERVO(3);
#endif
}
void HAL_reboot() {
#if ENABLED(USE_WATCHDOG)
while (1) { /* run out the watchdog */ }
#else
void (*resetFunc)() = 0; // Declare resetFunc() at address 0
resetFunc(); // Jump to address 0
#endif
}
#if ENABLED(SDSUPPORT)
#include "../../sd/SdFatUtil.h"
int freeMemory() { return SdFatUtil::FreeRam(); }
#else // !SDSUPPORT
extern "C" {
extern char __bss_end;
extern char __heap_start;
extern void* __brkval;
int freeMemory() {
int free_memory;
if ((int)__brkval == 0)
free_memory = ((int)&free_memory) - ((int)&__bss_end);
else
free_memory = ((int)&free_memory) - ((int)__brkval);
return free_memory;
}
}
#endif // !SDSUPPORT
#endif // __AVR__
+217
View File
@@ -0,0 +1,217 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#include "../shared/Marduino.h"
#include "../shared/HAL_SPI.h"
#include "fastio.h"
#include "watchdog.h"
#include "math.h"
#ifdef USBCON
#include <HardwareSerial.h>
#else
#define HardwareSerial_h // Hack to prevent HardwareSerial.h header inclusion
#include "MarlinSerial.h"
#endif
#include <stdint.h>
#include <util/delay.h>
#include <avr/eeprom.h>
#include <avr/pgmspace.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#ifndef pgm_read_ptr
// Compatibility for avr-libc 1.8.0-4.1 included with Ubuntu for
// Windows Subsystem for Linux on Windows 10 as of 10/18/2019
#define pgm_read_ptr_far(address_long) (void*)__ELPM_word((uint32_t)(address_long))
#define pgm_read_ptr_near(address_short) (void*)__LPM_word((uint16_t)(address_short))
#define pgm_read_ptr(address_short) pgm_read_ptr_near(address_short)
#endif
// ------------------------
// Defines
// ------------------------
// AVR PROGMEM extension for sprintf_P
#define S_FMT "%S"
// AVR PROGMEM extension for string define
#define PGMSTR(NAM,STR) const char NAM[] PROGMEM = STR
#ifndef CRITICAL_SECTION_START
#define CRITICAL_SECTION_START() unsigned char _sreg = SREG; cli()
#define CRITICAL_SECTION_END() SREG = _sreg
#endif
#define ISRS_ENABLED() TEST(SREG, SREG_I)
#define ENABLE_ISRS() sei()
#define DISABLE_ISRS() cli()
// ------------------------
// Types
// ------------------------
typedef int8_t pin_t;
#define SHARED_SERVOS HAS_SERVOS
#define HAL_SERVO_LIB Servo
// ------------------------
// Public Variables
// ------------------------
//extern uint8_t MCUSR;
// Serial ports
#ifdef USBCON
#include "../../core/serial_hook.h"
typedef ForwardSerial1Class< decltype(Serial) > DefaultSerial1;
extern DefaultSerial1 MSerial0;
#ifdef BLUETOOTH
typedef ForwardSerial1Class< decltype(bluetoothSerial) > BTSerial;
extern BTSerial btSerial;
#endif
#define MYSERIAL1 TERN(BLUETOOTH, btSerial, MSerial0)
#else
#if !WITHIN(SERIAL_PORT, -1, 3)
#error "SERIAL_PORT must be from 0 to 3, or -1 for USB Serial."
#endif
#define MYSERIAL1 customizedSerial1
#ifdef SERIAL_PORT_2
#if !WITHIN(SERIAL_PORT_2, -1, 3)
#error "SERIAL_PORT_2 must be from 0 to 3, or -1 for USB Serial."
#endif
#define MYSERIAL2 customizedSerial2
#endif
#ifdef SERIAL_PORT_3
#if !WITHIN(SERIAL_PORT_3, -1, 3)
#error "SERIAL_PORT_3 must be from 0 to 3, or -1 for USB Serial."
#endif
#define MYSERIAL3 customizedSerial3
#endif
#endif
#ifdef MMU2_SERIAL_PORT
#if !WITHIN(MMU2_SERIAL_PORT, -1, 3)
#error "MMU2_SERIAL_PORT must be from 0 to 3, or -1 for USB Serial."
#endif
#define MMU2_SERIAL mmuSerial
#endif
#ifdef LCD_SERIAL_PORT
#if !WITHIN(LCD_SERIAL_PORT, -1, 3)
#error "LCD_SERIAL_PORT must be from 0 to 3, or -1 for USB Serial."
#endif
#define LCD_SERIAL lcdSerial
#if HAS_DGUS_LCD
#define SERIAL_GET_TX_BUFFER_FREE() LCD_SERIAL.get_tx_buffer_free()
#endif
#endif
// ------------------------
// Public functions
// ------------------------
void HAL_init();
//void cli();
//void _delay_ms(const int delay);
inline void HAL_clear_reset_source() { MCUSR = 0; }
inline uint8_t HAL_get_reset_source() { return MCUSR; }
void HAL_reboot();
#if GCC_VERSION <= 50000
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
extern "C" int freeMemory();
#if GCC_VERSION <= 50000
#pragma GCC diagnostic pop
#endif
// ADC
#ifdef DIDR2
#define HAL_ANALOG_SELECT(ind) do{ if (ind < 8) SBI(DIDR0, ind); else SBI(DIDR2, ind & 0x07); }while(0)
#else
#define HAL_ANALOG_SELECT(ind) SBI(DIDR0, ind);
#endif
inline void HAL_adc_init() {
ADCSRA = _BV(ADEN) | _BV(ADSC) | _BV(ADIF) | 0x07;
DIDR0 = 0;
#ifdef DIDR2
DIDR2 = 0;
#endif
}
#define SET_ADMUX_ADCSRA(ch) ADMUX = _BV(REFS0) | (ch & 0x07); SBI(ADCSRA, ADSC)
#ifdef MUX5
#define HAL_START_ADC(ch) if (ch > 7) ADCSRB = _BV(MUX5); else ADCSRB = 0; SET_ADMUX_ADCSRA(ch)
#else
#define HAL_START_ADC(ch) ADCSRB = 0; SET_ADMUX_ADCSRA(ch)
#endif
#define HAL_ADC_VREF 5.0
#define HAL_ADC_RESOLUTION 10
#define HAL_READ_ADC() ADC
#define HAL_ADC_READY() !TEST(ADCSRA, ADSC)
#define GET_PIN_MAP_PIN(index) index
#define GET_PIN_MAP_INDEX(pin) pin
#define PARSED_PIN_INDEX(code, dval) parser.intval(code, dval)
#define HAL_SENSITIVE_PINS 0, 1
#ifdef __AVR_AT90USB1286__
#define JTAG_DISABLE() do{ MCUCR = 0x80; MCUCR = 0x80; }while(0)
#endif
// AVR compatibility
#define strtof strtod
#define HAL_CAN_SET_PWM_FREQ // This HAL supports PWM Frequency adjustment
/**
* set_pwm_frequency
* Sets the frequency of the timer corresponding to the provided pin
* as close as possible to the provided desired frequency. Internally
* calculates the required waveform generation mode, prescaler and
* resolution values required and sets the timer registers accordingly.
* NOTE that the frequency is applied to all pins on the timer (Ex OC3A, OC3B and OC3B)
* NOTE that there are limitations, particularly if using TIMER2. (see Configuration_adv.h -> FAST FAN PWM Settings)
*/
void set_pwm_frequency(const pin_t pin, int f_desired);
/**
* set_pwm_duty
* Sets the PWM duty cycle of the provided pin to the provided value
* Optionally allows inverting the duty cycle [default = false]
* Optionally allows changing the maximum size of the provided value to enable finer PWM duty control [default = 255]
*/
void set_pwm_duty(const pin_t pin, const uint16_t v, const uint16_t v_size=255, const bool invert=false);
+253
View File
@@ -0,0 +1,253 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* Adapted from Arduino Sd2Card Library
* Copyright (c) 2009 by William Greiman
*/
/**
* HAL for AVR - SPI functions
*/
#ifdef __AVR__
#include "../../inc/MarlinConfig.h"
void spiBegin() {
OUT_WRITE(SD_SS_PIN, HIGH);
SET_OUTPUT(SD_SCK_PIN);
SET_INPUT(SD_MISO_PIN);
SET_OUTPUT(SD_MOSI_PIN);
#if DISABLED(SOFTWARE_SPI)
// SS must be in output mode even it is not chip select
//SET_OUTPUT(SD_SS_PIN);
// set SS high - may be chip select for another SPI device
//#if SET_SPI_SS_HIGH
//WRITE(SD_SS_PIN, HIGH);
//#endif
// set a default rate
spiInit(1);
#endif
}
#if NONE(SOFTWARE_SPI, FORCE_SOFT_SPI)
// ------------------------
// Hardware SPI
// ------------------------
// make sure SPCR rate is in expected bits
#if (SPR0 != 0 || SPR1 != 1)
#error "unexpected SPCR bits"
#endif
/**
* Initialize hardware SPI
* Set SCK rate to F_CPU/pow(2, 1 + spiRate) for spiRate [0,6]
*/
void spiInit(uint8_t spiRate) {
// See avr processor documentation
CBI(
#ifdef PRR
PRR
#elif defined(PRR0)
PRR0
#endif
, PRSPI);
SPCR = _BV(SPE) | _BV(MSTR) | (spiRate >> 1);
SPSR = spiRate & 1 || spiRate == 6 ? 0 : _BV(SPI2X);
}
/** SPI receive a byte */
uint8_t spiRec() {
SPDR = 0xFF;
while (!TEST(SPSR, SPIF)) { /* Intentionally left empty */ }
return SPDR;
}
/** SPI read data */
void spiRead(uint8_t *buf, uint16_t nbyte) {
if (nbyte-- == 0) return;
SPDR = 0xFF;
for (uint16_t i = 0; i < nbyte; i++) {
while (!TEST(SPSR, SPIF)) { /* Intentionally left empty */ }
buf[i] = SPDR;
SPDR = 0xFF;
}
while (!TEST(SPSR, SPIF)) { /* Intentionally left empty */ }
buf[nbyte] = SPDR;
}
/** SPI send a byte */
void spiSend(uint8_t b) {
SPDR = b;
while (!TEST(SPSR, SPIF)) { /* Intentionally left empty */ }
}
/** SPI send block */
void spiSendBlock(uint8_t token, const uint8_t *buf) {
SPDR = token;
for (uint16_t i = 0; i < 512; i += 2) {
while (!TEST(SPSR, SPIF)) { /* Intentionally left empty */ }
SPDR = buf[i];
while (!TEST(SPSR, SPIF)) { /* Intentionally left empty */ }
SPDR = buf[i + 1];
}
while (!TEST(SPSR, SPIF)) { /* Intentionally left empty */ }
}
/** begin spi transaction */
void spiBeginTransaction(uint32_t spiClock, uint8_t bitOrder, uint8_t dataMode) {
// Based on Arduino SPI library
// Clock settings are defined as follows. Note that this shows SPI2X
// inverted, so the bits form increasing numbers. Also note that
// fosc/64 appears twice
// SPR1 SPR0 ~SPI2X Freq
// 0 0 0 fosc/2
// 0 0 1 fosc/4
// 0 1 0 fosc/8
// 0 1 1 fosc/16
// 1 0 0 fosc/32
// 1 0 1 fosc/64
// 1 1 0 fosc/64
// 1 1 1 fosc/128
// We find the fastest clock that is less than or equal to the
// given clock rate. The clock divider that results in clock_setting
// is 2 ^^ (clock_div + 1). If nothing is slow enough, we'll use the
// slowest (128 == 2 ^^ 7, so clock_div = 6).
uint8_t clockDiv;
// When the clock is known at compiletime, use this if-then-else
// cascade, which the compiler knows how to completely optimize
// away. When clock is not known, use a loop instead, which generates
// shorter code.
if (__builtin_constant_p(spiClock)) {
if (spiClock >= F_CPU / 2) clockDiv = 0;
else if (spiClock >= F_CPU / 4) clockDiv = 1;
else if (spiClock >= F_CPU / 8) clockDiv = 2;
else if (spiClock >= F_CPU / 16) clockDiv = 3;
else if (spiClock >= F_CPU / 32) clockDiv = 4;
else if (spiClock >= F_CPU / 64) clockDiv = 5;
else clockDiv = 6;
}
else {
uint32_t clockSetting = F_CPU / 2;
clockDiv = 0;
while (clockDiv < 6 && spiClock < clockSetting) {
clockSetting /= 2;
clockDiv++;
}
}
// Compensate for the duplicate fosc/64
if (clockDiv == 6) clockDiv = 7;
// Invert the SPI2X bit
clockDiv ^= 0x1;
SPCR = _BV(SPE) | _BV(MSTR) | ((bitOrder == LSBFIRST) ? _BV(DORD) : 0) |
(dataMode << CPHA) | ((clockDiv >> 1) << SPR0);
SPSR = clockDiv | 0x01;
}
#else // SOFTWARE_SPI || FORCE_SOFT_SPI
// ------------------------
// Software SPI
// ------------------------
// nop to tune soft SPI timing
#define nop asm volatile ("\tnop\n")
void spiInit(uint8_t) { /* do nothing */ }
// Begin SPI transaction, set clock, bit order, data mode
void spiBeginTransaction(uint32_t spiClock, uint8_t bitOrder, uint8_t dataMode) { /* do nothing */ }
// Soft SPI receive byte
uint8_t spiRec() {
uint8_t data = 0;
// no interrupts during byte receive - about 8µs
cli();
// output pin high - like sending 0xFF
WRITE(SD_MOSI_PIN, HIGH);
LOOP_L_N(i, 8) {
WRITE(SD_SCK_PIN, HIGH);
nop; // adjust so SCK is nice
nop;
data <<= 1;
if (READ(SD_MISO_PIN)) data |= 1;
WRITE(SD_SCK_PIN, LOW);
}
sei();
return data;
}
// Soft SPI read data
void spiRead(uint8_t *buf, uint16_t nbyte) {
for (uint16_t i = 0; i < nbyte; i++)
buf[i] = spiRec();
}
// Soft SPI send byte
void spiSend(uint8_t data) {
// no interrupts during byte send - about 8µs
cli();
LOOP_L_N(i, 8) {
WRITE(SD_SCK_PIN, LOW);
WRITE(SD_MOSI_PIN, data & 0x80);
data <<= 1;
WRITE(SD_SCK_PIN, HIGH);
}
nop; // hold SCK high for a few ns
nop;
nop;
nop;
WRITE(SD_SCK_PIN, LOW);
sei();
}
// Soft SPI send block
void spiSendBlock(uint8_t token, const uint8_t *buf) {
spiSend(token);
for (uint16_t i = 0; i < 512; i++)
spiSend(buf[i]);
}
#endif // SOFTWARE_SPI || FORCE_SOFT_SPI
#endif // __AVR__
+652
View File
@@ -0,0 +1,652 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* MarlinSerial.cpp - Hardware serial library for Wiring
* Copyright (c) 2006 Nicholas Zambetti. All right reserved.
*
* Modified 23 November 2006 by David A. Mellis
* Modified 28 September 2010 by Mark Sproul
* Modified 14 February 2016 by Andreas Hardtung (added tx buffer)
* Modified 01 October 2017 by Eduardo José Tagle (added XON/XOFF)
* Modified 10 June 2018 by Eduardo José Tagle (See #10991)
* Templatized 01 October 2018 by Eduardo José Tagle to allow multiple instances
*/
#ifdef __AVR__
// Disable HardwareSerial.cpp to support chips without a UART (Attiny, etc.)
#include "../../inc/MarlinConfig.h"
#if !defined(USBCON) && (defined(UBRRH) || defined(UBRR0H) || defined(UBRR1H) || defined(UBRR2H) || defined(UBRR3H))
#include "MarlinSerial.h"
#include "../../MarlinCore.h"
#if ENABLED(DIRECT_STEPPING)
#include "../../feature/direct_stepping.h"
#endif
template<typename Cfg> typename MarlinSerial<Cfg>::ring_buffer_r MarlinSerial<Cfg>::rx_buffer = { 0, 0, { 0 } };
template<typename Cfg> typename MarlinSerial<Cfg>::ring_buffer_t MarlinSerial<Cfg>::tx_buffer = { 0 };
template<typename Cfg> bool MarlinSerial<Cfg>::_written = false;
template<typename Cfg> uint8_t MarlinSerial<Cfg>::xon_xoff_state = MarlinSerial<Cfg>::XON_XOFF_CHAR_SENT | MarlinSerial<Cfg>::XON_CHAR;
template<typename Cfg> uint8_t MarlinSerial<Cfg>::rx_dropped_bytes = 0;
template<typename Cfg> uint8_t MarlinSerial<Cfg>::rx_buffer_overruns = 0;
template<typename Cfg> uint8_t MarlinSerial<Cfg>::rx_framing_errors = 0;
template<typename Cfg> typename MarlinSerial<Cfg>::ring_buffer_pos_t MarlinSerial<Cfg>::rx_max_enqueued = 0;
// A SW memory barrier, to ensure GCC does not overoptimize loops
#define sw_barrier() asm volatile("": : :"memory");
#include "../../feature/e_parser.h"
// "Atomically" read the RX head index value without disabling interrupts:
// This MUST be called with RX interrupts enabled, and CAN'T be called
// from the RX ISR itself!
template<typename Cfg>
FORCE_INLINE typename MarlinSerial<Cfg>::ring_buffer_pos_t MarlinSerial<Cfg>::atomic_read_rx_head() {
if (Cfg::RX_SIZE > 256) {
// Keep reading until 2 consecutive reads return the same value,
// meaning there was no update in-between caused by an interrupt.
// This works because serial RX interrupts happen at a slower rate
// than successive reads of a variable, so 2 consecutive reads with
// the same value means no interrupt updated it.
ring_buffer_pos_t vold, vnew = rx_buffer.head;
sw_barrier();
do {
vold = vnew;
vnew = rx_buffer.head;
sw_barrier();
} while (vold != vnew);
return vnew;
}
else {
// With an 8bit index, reads are always atomic. No need for special handling
return rx_buffer.head;
}
}
template<typename Cfg>
volatile bool MarlinSerial<Cfg>::rx_tail_value_not_stable = false;
template<typename Cfg>
volatile uint16_t MarlinSerial<Cfg>::rx_tail_value_backup = 0;
// Set RX tail index, taking into account the RX ISR could interrupt
// the write to this variable in the middle - So a backup strategy
// is used to ensure reads of the correct values.
// -Must NOT be called from the RX ISR -
template<typename Cfg>
FORCE_INLINE void MarlinSerial<Cfg>::atomic_set_rx_tail(typename MarlinSerial<Cfg>::ring_buffer_pos_t value) {
if (Cfg::RX_SIZE > 256) {
// Store the new value in the backup
rx_tail_value_backup = value;
sw_barrier();
// Flag we are about to change the true value
rx_tail_value_not_stable = true;
sw_barrier();
// Store the new value
rx_buffer.tail = value;
sw_barrier();
// Signal the new value is completely stored into the value
rx_tail_value_not_stable = false;
sw_barrier();
}
else
rx_buffer.tail = value;
}
// Get the RX tail index, taking into account the read could be
// interrupting in the middle of the update of that index value
// -Called from the RX ISR -
template<typename Cfg>
FORCE_INLINE typename MarlinSerial<Cfg>::ring_buffer_pos_t MarlinSerial<Cfg>::atomic_read_rx_tail() {
if (Cfg::RX_SIZE > 256) {
// If the true index is being modified, return the backup value
if (rx_tail_value_not_stable) return rx_tail_value_backup;
}
// The true index is stable, return it
return rx_buffer.tail;
}
// (called with RX interrupts disabled)
template<typename Cfg>
FORCE_INLINE void MarlinSerial<Cfg>::store_rxd_char() {
static EmergencyParser::State emergency_state; // = EP_RESET
// This must read the R_UCSRA register before reading the received byte to detect error causes
if (Cfg::DROPPED_RX && B_DOR && !++rx_dropped_bytes) --rx_dropped_bytes;
if (Cfg::RX_OVERRUNS && B_DOR && !++rx_buffer_overruns) --rx_buffer_overruns;
if (Cfg::RX_FRAMING_ERRORS && B_FE && !++rx_framing_errors) --rx_framing_errors;
// Read the character from the USART
uint8_t c = R_UDR;
#if ENABLED(DIRECT_STEPPING)
if (page_manager.maybe_store_rxd_char(c)) return;
#endif
// Get the tail - Nothing can alter its value while this ISR is executing, but there's
// a chance that this ISR interrupted the main process while it was updating the index.
// The backup mechanism ensures the correct value is always returned.
const ring_buffer_pos_t t = atomic_read_rx_tail();
// Get the head pointer - This ISR is the only one that modifies its value, so it's safe to read here
ring_buffer_pos_t h = rx_buffer.head;
// Get the next element
ring_buffer_pos_t i = (ring_buffer_pos_t)(h + 1) & (ring_buffer_pos_t)(Cfg::RX_SIZE - 1);
if (Cfg::EMERGENCYPARSER) emergency_parser.update(emergency_state, c);
// If the character is to be stored at the index just before the tail
// (such that the head would advance to the current tail), the RX FIFO is
// full, so don't write the character or advance the head.
if (i != t) {
rx_buffer.buffer[h] = c;
h = i;
}
else if (Cfg::DROPPED_RX && !++rx_dropped_bytes)
--rx_dropped_bytes;
if (Cfg::MAX_RX_QUEUED) {
// Calculate count of bytes stored into the RX buffer
const ring_buffer_pos_t rx_count = (ring_buffer_pos_t)(h - t) & (ring_buffer_pos_t)(Cfg::RX_SIZE - 1);
// Keep track of the maximum count of enqueued bytes
NOLESS(rx_max_enqueued, rx_count);
}
if (Cfg::XONOFF) {
// If the last char that was sent was an XON
if ((xon_xoff_state & XON_XOFF_CHAR_MASK) == XON_CHAR) {
// Bytes stored into the RX buffer
const ring_buffer_pos_t rx_count = (ring_buffer_pos_t)(h - t) & (ring_buffer_pos_t)(Cfg::RX_SIZE - 1);
// If over 12.5% of RX buffer capacity, send XOFF before running out of
// RX buffer space .. 325 bytes @ 250kbits/s needed to let the host react
// and stop sending bytes. This translates to 13mS propagation time.
if (rx_count >= (Cfg::RX_SIZE) / 8) {
// At this point, definitely no TX interrupt was executing, since the TX ISR can't be preempted.
// Don't enable the TX interrupt here as a means to trigger the XOFF char, because if it happens
// to be in the middle of trying to disable the RX interrupt in the main program, eventually the
// enabling of the TX interrupt could be undone. The ONLY reliable thing this can do to ensure
// the sending of the XOFF char is to send it HERE AND NOW.
// About to send the XOFF char
xon_xoff_state = XOFF_CHAR | XON_XOFF_CHAR_SENT;
// Wait until the TX register becomes empty and send it - Here there could be a problem
// - While waiting for the TX register to empty, the RX register could receive a new
// character. This must also handle that situation!
while (!B_UDRE) {
if (B_RXC) {
// A char arrived while waiting for the TX buffer to be empty - Receive and process it!
i = (ring_buffer_pos_t)(h + 1) & (ring_buffer_pos_t)(Cfg::RX_SIZE - 1);
// Read the character from the USART
c = R_UDR;
if (Cfg::EMERGENCYPARSER) emergency_parser.update(emergency_state, c);
// If the character is to be stored at the index just before the tail
// (such that the head would advance to the current tail), the FIFO is
// full, so don't write the character or advance the head.
if (i != t) {
rx_buffer.buffer[h] = c;
h = i;
}
else if (Cfg::DROPPED_RX && !++rx_dropped_bytes)
--rx_dropped_bytes;
}
sw_barrier();
}
R_UDR = XOFF_CHAR;
// Clear the TXC bit -- "can be cleared by writing a one to its bit
// location". This makes sure flush() won't return until the bytes
// actually got written
B_TXC = 1;
// At this point there could be a race condition between the write() function
// and this sending of the XOFF char. This interrupt could happen between the
// wait to be empty TX buffer loop and the actual write of the character. Since
// the TX buffer is full because it's sending the XOFF char, the only way to be
// sure the write() function will succeed is to wait for the XOFF char to be
// completely sent. Since an extra character could be received during the wait
// it must also be handled!
while (!B_UDRE) {
if (B_RXC) {
// A char arrived while waiting for the TX buffer to be empty - Receive and process it!
i = (ring_buffer_pos_t)(h + 1) & (ring_buffer_pos_t)(Cfg::RX_SIZE - 1);
// Read the character from the USART
c = R_UDR;
if (Cfg::EMERGENCYPARSER)
emergency_parser.update(emergency_state, c);
// If the character is to be stored at the index just before the tail
// (such that the head would advance to the current tail), the FIFO is
// full, so don't write the character or advance the head.
if (i != t) {
rx_buffer.buffer[h] = c;
h = i;
}
else if (Cfg::DROPPED_RX && !++rx_dropped_bytes)
--rx_dropped_bytes;
}
sw_barrier();
}
// At this point everything is ready. The write() function won't
// have any issues writing to the UART TX register if it needs to!
}
}
}
// Store the new head value - The main loop will retry until the value is stable
rx_buffer.head = h;
}
// (called with TX irqs disabled)
template<typename Cfg>
FORCE_INLINE void MarlinSerial<Cfg>::_tx_udr_empty_irq() {
if (Cfg::TX_SIZE > 0) {
// Read positions
uint8_t t = tx_buffer.tail;
const uint8_t h = tx_buffer.head;
if (Cfg::XONOFF) {
// If an XON char is pending to be sent, do it now
if (xon_xoff_state == XON_CHAR) {
// Send the character
R_UDR = XON_CHAR;
// clear the TXC bit -- "can be cleared by writing a one to its bit
// location". This makes sure flush() won't return until the bytes
// actually got written
B_TXC = 1;
// Remember we sent it.
xon_xoff_state = XON_CHAR | XON_XOFF_CHAR_SENT;
// If nothing else to transmit, just disable TX interrupts.
if (h == t) B_UDRIE = 0; // (Non-atomic, could be reenabled by the main program, but eventually this will succeed)
return;
}
}
// If nothing to transmit, just disable TX interrupts. This could
// happen as the result of the non atomicity of the disabling of RX
// interrupts that could end reenabling TX interrupts as a side effect.
if (h == t) {
B_UDRIE = 0; // (Non-atomic, could be reenabled by the main program, but eventually this will succeed)
return;
}
// There is something to TX, Send the next byte
const uint8_t c = tx_buffer.buffer[t];
t = (t + 1) & (Cfg::TX_SIZE - 1);
R_UDR = c;
tx_buffer.tail = t;
// Clear the TXC bit (by writing a one to its bit location).
// Ensures flush() won't return until the bytes are actually written/
B_TXC = 1;
// Disable interrupts if there is nothing to transmit following this byte
if (h == t) B_UDRIE = 0; // (Non-atomic, could be reenabled by the main program, but eventually this will succeed)
}
}
// Public Methods
template<typename Cfg>
void MarlinSerial<Cfg>::begin(const long baud) {
uint16_t baud_setting;
bool useU2X = true;
#if F_CPU == 16000000UL && SERIAL_PORT == 0
// Hard-coded exception for compatibility with the bootloader shipped
// with the Duemilanove and previous boards, and the firmware on the
// 8U2 on the Uno and Mega 2560.
if (baud == 57600) useU2X = false;
#endif
R_UCSRA = 0;
if (useU2X) {
B_U2X = 1;
baud_setting = (F_CPU / 4 / baud - 1) / 2;
}
else
baud_setting = (F_CPU / 8 / baud - 1) / 2;
// assign the baud_setting, a.k.a. ubbr (USART Baud Rate Register)
R_UBRRH = baud_setting >> 8;
R_UBRRL = baud_setting;
B_RXEN = 1;
B_TXEN = 1;
B_RXCIE = 1;
if (Cfg::TX_SIZE > 0) B_UDRIE = 0;
_written = false;
}
template<typename Cfg>
void MarlinSerial<Cfg>::end() {
B_RXEN = 0;
B_TXEN = 0;
B_RXCIE = 0;
B_UDRIE = 0;
}
template<typename Cfg>
int MarlinSerial<Cfg>::peek() {
const ring_buffer_pos_t h = atomic_read_rx_head(), t = rx_buffer.tail;
return h == t ? -1 : rx_buffer.buffer[t];
}
template<typename Cfg>
int MarlinSerial<Cfg>::read() {
const ring_buffer_pos_t h = atomic_read_rx_head();
// Read the tail. Main thread owns it, so it is safe to directly read it
ring_buffer_pos_t t = rx_buffer.tail;
// If nothing to read, return now
if (h == t) return -1;
// Get the next char
const int v = rx_buffer.buffer[t];
t = (ring_buffer_pos_t)(t + 1) & (Cfg::RX_SIZE - 1);
// Advance tail - Making sure the RX ISR will always get an stable value, even
// if it interrupts the writing of the value of that variable in the middle.
atomic_set_rx_tail(t);
if (Cfg::XONOFF) {
// If the XOFF char was sent, or about to be sent...
if ((xon_xoff_state & XON_XOFF_CHAR_MASK) == XOFF_CHAR) {
// Get count of bytes in the RX buffer
const ring_buffer_pos_t rx_count = (ring_buffer_pos_t)(h - t) & (ring_buffer_pos_t)(Cfg::RX_SIZE - 1);
if (rx_count < (Cfg::RX_SIZE) / 10) {
if (Cfg::TX_SIZE > 0) {
// Signal we want an XON character to be sent.
xon_xoff_state = XON_CHAR;
// Enable TX ISR. Non atomic, but it will eventually enable them
B_UDRIE = 1;
}
else {
// If not using TX interrupts, we must send the XON char now
xon_xoff_state = XON_CHAR | XON_XOFF_CHAR_SENT;
while (!B_UDRE) sw_barrier();
R_UDR = XON_CHAR;
}
}
}
}
return v;
}
template<typename Cfg>
typename MarlinSerial<Cfg>::ring_buffer_pos_t MarlinSerial<Cfg>::available() {
const ring_buffer_pos_t h = atomic_read_rx_head(), t = rx_buffer.tail;
return (ring_buffer_pos_t)(Cfg::RX_SIZE + h - t) & (Cfg::RX_SIZE - 1);
}
template<typename Cfg>
void MarlinSerial<Cfg>::flush() {
// Set the tail to the head:
// - Read the RX head index in a safe way. (See atomic_read_rx_head.)
// - Set the tail, making sure the RX ISR will always get a stable value, even
// if it interrupts the writing of the value of that variable in the middle.
atomic_set_rx_tail(atomic_read_rx_head());
if (Cfg::XONOFF) {
// If the XOFF char was sent, or about to be sent...
if ((xon_xoff_state & XON_XOFF_CHAR_MASK) == XOFF_CHAR) {
if (Cfg::TX_SIZE > 0) {
// Signal we want an XON character to be sent.
xon_xoff_state = XON_CHAR;
// Enable TX ISR. Non atomic, but it will eventually enable it.
B_UDRIE = 1;
}
else {
// If not using TX interrupts, we must send the XON char now
xon_xoff_state = XON_CHAR | XON_XOFF_CHAR_SENT;
while (!B_UDRE) sw_barrier();
R_UDR = XON_CHAR;
}
}
}
}
template<typename Cfg>
void MarlinSerial<Cfg>::write(const uint8_t c) {
if (Cfg::TX_SIZE == 0) {
_written = true;
while (!B_UDRE) sw_barrier();
R_UDR = c;
}
else {
_written = true;
// If the TX interrupts are disabled and the data register
// is empty, just write the byte to the data register and
// be done. This shortcut helps significantly improve the
// effective datarate at high (>500kbit/s) bitrates, where
// interrupt overhead becomes a slowdown.
// Yes, there is a race condition between the sending of the
// XOFF char at the RX ISR, but it is properly handled there
if (!B_UDRIE && B_UDRE) {
R_UDR = c;
// clear the TXC bit -- "can be cleared by writing a one to its bit
// location". This makes sure flush() won't return until the bytes
// actually got written
B_TXC = 1;
return;
}
const uint8_t i = (tx_buffer.head + 1) & (Cfg::TX_SIZE - 1);
// If global interrupts are disabled (as the result of being called from an ISR)...
if (!ISRS_ENABLED()) {
// Make room by polling if it is possible to transmit, and do so!
while (i == tx_buffer.tail) {
// If we can transmit another byte, do it.
if (B_UDRE) _tx_udr_empty_irq();
// Make sure compiler rereads tx_buffer.tail
sw_barrier();
}
}
else {
// Interrupts are enabled, just wait until there is space
while (i == tx_buffer.tail) sw_barrier();
}
// Store new char. head is always safe to move
tx_buffer.buffer[tx_buffer.head] = c;
tx_buffer.head = i;
// Enable TX ISR - Non atomic, but it will eventually enable TX ISR
B_UDRIE = 1;
}
}
template<typename Cfg>
void MarlinSerial<Cfg>::flushTX() {
if (Cfg::TX_SIZE == 0) {
// No bytes written, no need to flush. This special case is needed since there's
// no way to force the TXC (transmit complete) bit to 1 during initialization.
if (!_written) return;
// Wait until everything was transmitted
while (!B_TXC) sw_barrier();
// At this point nothing is queued anymore (DRIE is disabled) and
// the hardware finished transmission (TXC is set).
}
else {
// No bytes written, no need to flush. This special case is needed since there's
// no way to force the TXC (transmit complete) bit to 1 during initialization.
if (!_written) return;
// If global interrupts are disabled (as the result of being called from an ISR)...
if (!ISRS_ENABLED()) {
// Wait until everything was transmitted - We must do polling, as interrupts are disabled
while (tx_buffer.head != tx_buffer.tail || !B_TXC) {
// If there is more space, send an extra character
if (B_UDRE) _tx_udr_empty_irq();
sw_barrier();
}
}
else {
// Wait until everything was transmitted
while (tx_buffer.head != tx_buffer.tail || !B_TXC) sw_barrier();
}
// At this point nothing is queued anymore (DRIE is disabled) and
// the hardware finished transmission (TXC is set).
}
}
// Hookup ISR handlers
ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _RX_vect)) {
MarlinSerial<MarlinSerialCfg<SERIAL_PORT>>::store_rxd_char();
}
ISR(SERIAL_REGNAME(USART, SERIAL_PORT, _UDRE_vect)) {
MarlinSerial<MarlinSerialCfg<SERIAL_PORT>>::_tx_udr_empty_irq();
}
// Because of the template definition above, it's required to instantiate the template to have all methods generated
template class MarlinSerial< MarlinSerialCfg<SERIAL_PORT> >;
MSerialT1 customizedSerial1(MSerialT1::HasEmergencyParser);
#ifdef SERIAL_PORT_2
// Hookup ISR handlers
ISR(SERIAL_REGNAME(USART, SERIAL_PORT_2, _RX_vect)) {
MarlinSerial<MarlinSerialCfg<SERIAL_PORT_2>>::store_rxd_char();
}
ISR(SERIAL_REGNAME(USART, SERIAL_PORT_2, _UDRE_vect)) {
MarlinSerial<MarlinSerialCfg<SERIAL_PORT_2>>::_tx_udr_empty_irq();
}
template class MarlinSerial< MarlinSerialCfg<SERIAL_PORT_2> >;
MSerialT2 customizedSerial2(MSerialT2::HasEmergencyParser);
#endif // SERIAL_PORT_2
#ifdef SERIAL_PORT_3
// Hookup ISR handlers
ISR(SERIAL_REGNAME(USART, SERIAL_PORT_3, _RX_vect)) {
MarlinSerial<MarlinSerialCfg<SERIAL_PORT_3>>::store_rxd_char();
}
ISR(SERIAL_REGNAME(USART, SERIAL_PORT_3, _UDRE_vect)) {
MarlinSerial<MarlinSerialCfg<SERIAL_PORT_3>>::_tx_udr_empty_irq();
}
template class MarlinSerial< MarlinSerialCfg<SERIAL_PORT_3> >;
MSerialT3 customizedSerial3(MSerialT3::HasEmergencyParser);
#endif // SERIAL_PORT_3
#ifdef MMU2_SERIAL_PORT
ISR(SERIAL_REGNAME(USART, MMU2_SERIAL_PORT, _RX_vect)) {
MarlinSerial<MMU2SerialCfg<MMU2_SERIAL_PORT>>::store_rxd_char();
}
ISR(SERIAL_REGNAME(USART, MMU2_SERIAL_PORT, _UDRE_vect)) {
MarlinSerial<MMU2SerialCfg<MMU2_SERIAL_PORT>>::_tx_udr_empty_irq();
}
template class MarlinSerial< MMU2SerialCfg<MMU2_SERIAL_PORT> >;
MSerialMMU2 mmuSerial(MSerialMMU2::HasEmergencyParser);
#endif // MMU2_SERIAL_PORT
#ifdef LCD_SERIAL_PORT
ISR(SERIAL_REGNAME(USART, LCD_SERIAL_PORT, _RX_vect)) {
MarlinSerial<LCDSerialCfg<LCD_SERIAL_PORT>>::store_rxd_char();
}
ISR(SERIAL_REGNAME(USART, LCD_SERIAL_PORT, _UDRE_vect)) {
MarlinSerial<LCDSerialCfg<LCD_SERIAL_PORT>>::_tx_udr_empty_irq();
}
template class MarlinSerial< LCDSerialCfg<LCD_SERIAL_PORT> >;
MSerialLCD lcdSerial(MSerialLCD::HasEmergencyParser);
#if HAS_DGUS_LCD
template<typename Cfg>
typename MarlinSerial<Cfg>::ring_buffer_pos_t MarlinSerial<Cfg>::get_tx_buffer_free() {
const ring_buffer_pos_t t = tx_buffer.tail, // next byte to send.
h = tx_buffer.head; // next pos for queue.
int ret = t - h - 1;
if (ret < 0) ret += Cfg::TX_SIZE + 1;
return ret;
}
#endif
#endif // LCD_SERIAL_PORT
#endif // !USBCON && (UBRRH || UBRR0H || UBRR1H || UBRR2H || UBRR3H)
// For AT90USB targets use the UART for BT interfacing
#if defined(USBCON) && ENABLED(BLUETOOTH)
MSerialBT bluetoothSerial(false);
#endif
#endif // __AVR__
+297
View File
@@ -0,0 +1,297 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* MarlinSerial.h - Hardware serial library for Wiring
* Copyright (c) 2006 Nicholas Zambetti. All right reserved.
*
* Modified 28 September 2010 by Mark Sproul
* Modified 14 February 2016 by Andreas Hardtung (added tx buffer)
* Modified 01 October 2017 by Eduardo José Tagle (added XON/XOFF)
* Templatized 01 October 2018 by Eduardo José Tagle to allow multiple instances
*/
#include <WString.h>
#include "../../inc/MarlinConfigPre.h"
#include "../../core/serial_hook.h"
#ifndef SERIAL_PORT
#define SERIAL_PORT 0
#endif
#ifndef USBCON
// The presence of the UBRRH register is used to detect a UART.
#define UART_PRESENT(port) ((port == 0 && (defined(UBRRH) || defined(UBRR0H))) || \
(port == 1 && defined(UBRR1H)) || (port == 2 && defined(UBRR2H)) || \
(port == 3 && defined(UBRR3H)))
// These are macros to build serial port register names for the selected SERIAL_PORT (C preprocessor
// requires two levels of indirection to expand macro values properly)
#define SERIAL_REGNAME(registerbase,number,suffix) _SERIAL_REGNAME(registerbase,number,suffix)
#if SERIAL_PORT == 0 && (!defined(UBRR0H) || !defined(UDR0)) // use un-numbered registers if necessary
#define _SERIAL_REGNAME(registerbase,number,suffix) registerbase##suffix
#else
#define _SERIAL_REGNAME(registerbase,number,suffix) registerbase##number##suffix
#endif
// Registers used by MarlinSerial class (expanded depending on selected serial port)
// Templated 8bit register (generic)
#define UART_REGISTER_DECL_BASE(registerbase, suffix) \
template<int portNr> struct R_##registerbase##x##suffix {}
// Templated 8bit register (specialization for each port)
#define UART_REGISTER_DECL(port, registerbase, suffix) \
template<> struct R_##registerbase##x##suffix<port> { \
constexpr R_##registerbase##x##suffix(int) {} \
FORCE_INLINE void operator=(uint8_t newVal) const { SERIAL_REGNAME(registerbase,port,suffix) = newVal; } \
FORCE_INLINE operator uint8_t() const { return SERIAL_REGNAME(registerbase,port,suffix); } \
}
// Templated 1bit register (generic)
#define UART_BIT_DECL_BASE(registerbase, suffix, bit) \
template<int portNr>struct B_##bit##x {}
// Templated 1bit register (specialization for each port)
#define UART_BIT_DECL(port, registerbase, suffix, bit) \
template<> struct B_##bit##x<port> { \
constexpr B_##bit##x(int) {} \
FORCE_INLINE void operator=(int newVal) const { \
if (newVal) \
SBI(SERIAL_REGNAME(registerbase,port,suffix),SERIAL_REGNAME(bit,port,)); \
else \
CBI(SERIAL_REGNAME(registerbase,port,suffix),SERIAL_REGNAME(bit,port,)); \
} \
FORCE_INLINE operator bool() const { return TEST(SERIAL_REGNAME(registerbase,port,suffix),SERIAL_REGNAME(bit,port,)); } \
}
#define UART_DECL_BASE() \
UART_REGISTER_DECL_BASE(UCSR,A);\
UART_REGISTER_DECL_BASE(UDR,);\
UART_REGISTER_DECL_BASE(UBRR,H);\
UART_REGISTER_DECL_BASE(UBRR,L);\
UART_BIT_DECL_BASE(UCSR,B,RXEN);\
UART_BIT_DECL_BASE(UCSR,B,TXEN);\
UART_BIT_DECL_BASE(UCSR,A,TXC);\
UART_BIT_DECL_BASE(UCSR,B,RXCIE);\
UART_BIT_DECL_BASE(UCSR,A,UDRE);\
UART_BIT_DECL_BASE(UCSR,A,FE);\
UART_BIT_DECL_BASE(UCSR,A,DOR);\
UART_BIT_DECL_BASE(UCSR,B,UDRIE);\
UART_BIT_DECL_BASE(UCSR,A,RXC);\
UART_BIT_DECL_BASE(UCSR,A,U2X)
#define UART_DECL(port) \
UART_REGISTER_DECL(port,UCSR,A);\
UART_REGISTER_DECL(port,UDR,);\
UART_REGISTER_DECL(port,UBRR,H);\
UART_REGISTER_DECL(port,UBRR,L);\
UART_BIT_DECL(port,UCSR,B,RXEN);\
UART_BIT_DECL(port,UCSR,B,TXEN);\
UART_BIT_DECL(port,UCSR,A,TXC);\
UART_BIT_DECL(port,UCSR,B,RXCIE);\
UART_BIT_DECL(port,UCSR,A,UDRE);\
UART_BIT_DECL(port,UCSR,A,FE);\
UART_BIT_DECL(port,UCSR,A,DOR);\
UART_BIT_DECL(port,UCSR,B,UDRIE);\
UART_BIT_DECL(port,UCSR,A,RXC);\
UART_BIT_DECL(port,UCSR,A,U2X)
// Declare empty templates
UART_DECL_BASE();
// And all the specializations for each possible serial port
#if UART_PRESENT(0)
UART_DECL(0);
#endif
#if UART_PRESENT(1)
UART_DECL(1);
#endif
#if UART_PRESENT(2)
UART_DECL(2);
#endif
#if UART_PRESENT(3)
UART_DECL(3);
#endif
#define BYTE 0
// Templated type selector
template<bool b, typename T, typename F> struct TypeSelector { typedef T type;} ;
template<typename T, typename F> struct TypeSelector<false, T, F> { typedef F type; };
template<typename Cfg>
class MarlinSerial {
protected:
// Registers
static constexpr R_UCSRxA<Cfg::PORT> R_UCSRA = 0;
static constexpr R_UDRx<Cfg::PORT> R_UDR = 0;
static constexpr R_UBRRxH<Cfg::PORT> R_UBRRH = 0;
static constexpr R_UBRRxL<Cfg::PORT> R_UBRRL = 0;
// Bits
static constexpr B_RXENx<Cfg::PORT> B_RXEN = 0;
static constexpr B_TXENx<Cfg::PORT> B_TXEN = 0;
static constexpr B_TXCx<Cfg::PORT> B_TXC = 0;
static constexpr B_RXCIEx<Cfg::PORT> B_RXCIE = 0;
static constexpr B_UDREx<Cfg::PORT> B_UDRE = 0;
static constexpr B_FEx<Cfg::PORT> B_FE = 0;
static constexpr B_DORx<Cfg::PORT> B_DOR = 0;
static constexpr B_UDRIEx<Cfg::PORT> B_UDRIE = 0;
static constexpr B_RXCx<Cfg::PORT> B_RXC = 0;
static constexpr B_U2Xx<Cfg::PORT> B_U2X = 0;
// Base size of type on buffer size
typedef typename TypeSelector<(Cfg::RX_SIZE>256), uint16_t, uint8_t>::type ring_buffer_pos_t;
struct ring_buffer_r {
volatile ring_buffer_pos_t head, tail;
unsigned char buffer[Cfg::RX_SIZE];
};
struct ring_buffer_t {
volatile uint8_t head, tail;
unsigned char buffer[Cfg::TX_SIZE];
};
static ring_buffer_r rx_buffer;
static ring_buffer_t tx_buffer;
static bool _written;
static constexpr uint8_t XON_XOFF_CHAR_SENT = 0x80, // XON / XOFF Character was sent
XON_XOFF_CHAR_MASK = 0x1F; // XON / XOFF character to send
// XON / XOFF character definitions
static constexpr uint8_t XON_CHAR = 17, XOFF_CHAR = 19;
static uint8_t xon_xoff_state,
rx_dropped_bytes,
rx_buffer_overruns,
rx_framing_errors;
static ring_buffer_pos_t rx_max_enqueued;
static FORCE_INLINE ring_buffer_pos_t atomic_read_rx_head();
static volatile bool rx_tail_value_not_stable;
static volatile uint16_t rx_tail_value_backup;
static FORCE_INLINE void atomic_set_rx_tail(ring_buffer_pos_t value);
static FORCE_INLINE ring_buffer_pos_t atomic_read_rx_tail();
public:
FORCE_INLINE static void store_rxd_char();
FORCE_INLINE static void _tx_udr_empty_irq();
public:
static void begin(const long);
static void end();
static int peek();
static int read();
static void flush();
static ring_buffer_pos_t available();
static void write(const uint8_t c);
static void flushTX();
#if HAS_DGUS_LCD
static ring_buffer_pos_t get_tx_buffer_free();
#endif
enum { HasEmergencyParser = Cfg::EMERGENCYPARSER };
static inline bool emergency_parser_enabled() { return Cfg::EMERGENCYPARSER; }
FORCE_INLINE static uint8_t dropped() { return Cfg::DROPPED_RX ? rx_dropped_bytes : 0; }
FORCE_INLINE static uint8_t buffer_overruns() { return Cfg::RX_OVERRUNS ? rx_buffer_overruns : 0; }
FORCE_INLINE static uint8_t framing_errors() { return Cfg::RX_FRAMING_ERRORS ? rx_framing_errors : 0; }
FORCE_INLINE static ring_buffer_pos_t rxMaxEnqueued() { return Cfg::MAX_RX_QUEUED ? rx_max_enqueued : 0; }
};
template <uint8_t serial>
struct MarlinSerialCfg {
static constexpr int PORT = serial;
static constexpr unsigned int RX_SIZE = RX_BUFFER_SIZE;
static constexpr unsigned int TX_SIZE = TX_BUFFER_SIZE;
static constexpr bool XONOFF = ENABLED(SERIAL_XON_XOFF);
static constexpr bool EMERGENCYPARSER = ENABLED(EMERGENCY_PARSER);
static constexpr bool DROPPED_RX = ENABLED(SERIAL_STATS_DROPPED_RX);
static constexpr bool RX_OVERRUNS = ENABLED(SERIAL_STATS_RX_BUFFER_OVERRUNS);
static constexpr bool RX_FRAMING_ERRORS = ENABLED(SERIAL_STATS_RX_FRAMING_ERRORS);
static constexpr bool MAX_RX_QUEUED = ENABLED(SERIAL_STATS_MAX_RX_QUEUED);
};
typedef Serial1Class< MarlinSerial< MarlinSerialCfg<SERIAL_PORT> > > MSerialT1;
extern MSerialT1 customizedSerial1;
#ifdef SERIAL_PORT_2
typedef Serial1Class< MarlinSerial< MarlinSerialCfg<SERIAL_PORT_2> > > MSerialT2;
extern MSerialT2 customizedSerial2;
#endif
#ifdef SERIAL_PORT_3
typedef Serial1Class< MarlinSerial< MarlinSerialCfg<SERIAL_PORT_3> > > MSerialT3;
extern MSerialT3 customizedSerial3;
#endif
#endif // !USBCON
#ifdef MMU2_SERIAL_PORT
template <uint8_t serial>
struct MMU2SerialCfg {
static constexpr int PORT = serial;
static constexpr unsigned int RX_SIZE = 32;
static constexpr unsigned int TX_SIZE = 32;
static constexpr bool XONOFF = false;
static constexpr bool EMERGENCYPARSER = false;
static constexpr bool DROPPED_RX = false;
static constexpr bool RX_FRAMING_ERRORS = false;
static constexpr bool MAX_RX_QUEUED = false;
static constexpr bool RX_OVERRUNS = false;
};
typedef Serial1Class< MarlinSerial< MMU2SerialCfg<MMU2_SERIAL_PORT> > > MSerialMMU2;
extern MSerialMMU2 mmuSerial;
#endif
#ifdef LCD_SERIAL_PORT
template <uint8_t serial>
struct LCDSerialCfg {
static constexpr int PORT = serial;
static constexpr unsigned int RX_SIZE = TERN(HAS_DGUS_LCD, DGUS_RX_BUFFER_SIZE, 64);
static constexpr unsigned int TX_SIZE = TERN(HAS_DGUS_LCD, DGUS_TX_BUFFER_SIZE, 128);
static constexpr bool XONOFF = false;
static constexpr bool EMERGENCYPARSER = ENABLED(EMERGENCY_PARSER);
static constexpr bool DROPPED_RX = false;
static constexpr bool RX_FRAMING_ERRORS = false;
static constexpr bool MAX_RX_QUEUED = false;
static constexpr bool RX_OVERRUNS = BOTH(HAS_DGUS_LCD, SERIAL_STATS_RX_BUFFER_OVERRUNS);
};
typedef Serial1Class< MarlinSerial< LCDSerialCfg<LCD_SERIAL_PORT> > > MSerialLCD;
extern MSerialLCD lcdSerial;
#endif
// Use the UART for Bluetooth in AT90USB configurations
#if defined(USBCON) && ENABLED(BLUETOOTH)
typedef Serial1Class<HardwareSerial> MSerialBT;
extern MSerialBT bluetoothSerial;
#endif
+216
View File
@@ -0,0 +1,216 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* servo.cpp - Interrupt driven Servo library for Arduino using 16 bit timers- Version 2
* Copyright (c) 2009 Michael Margolis. All right reserved.
*/
/**
* A servo is activated by creating an instance of the Servo class passing the desired pin to the attach() method.
* The servos are pulsed in the background using the value most recently written using the write() method
*
* Note that analogWrite of PWM on pins associated with the timer are disabled when the first servo is attached.
* Timers are seized as needed in groups of 12 servos - 24 servos use two timers, 48 servos will use four.
*
* The methods are:
*
* Servo - Class for manipulating servo motors connected to Arduino pins.
*
* attach(pin) - Attach a servo motor to an i/o pin.
* attach(pin, min, max) - Attach to a pin, setting min and max values in microseconds
* Default min is 544, max is 2400
*
* write() - Set the servo angle in degrees. (Invalid angles —over MIN_PULSE_WIDTH— are treated as µs.)
* writeMicroseconds() - Set the servo pulse width in microseconds.
* move(pin, angle) - Sequence of attach(pin), write(angle), safe_delay(servo_delay[servoIndex]).
* With DEACTIVATE_SERVOS_AFTER_MOVE it detaches after servo_delay[servoIndex].
* read() - Get the last-written servo pulse width as an angle between 0 and 180.
* readMicroseconds() - Get the last-written servo pulse width in microseconds.
* attached() - Return true if a servo is attached.
* detach() - Stop an attached servo from pulsing its i/o pin.
*/
#ifdef __AVR__
#include "../../inc/MarlinConfig.h"
#if HAS_SERVOS
#include <avr/interrupt.h>
#include "../shared/servo.h"
#include "../shared/servo_private.h"
static volatile int8_t Channel[_Nbr_16timers]; // counter for the servo being pulsed for each timer (or -1 if refresh interval)
/************ static functions common to all instances ***********************/
static inline void handle_interrupts(timer16_Sequence_t timer, volatile uint16_t* TCNTn, volatile uint16_t* OCRnA) {
if (Channel[timer] < 0)
*TCNTn = 0; // channel set to -1 indicated that refresh interval completed so reset the timer
else {
if (SERVO_INDEX(timer, Channel[timer]) < ServoCount && SERVO(timer, Channel[timer]).Pin.isActive)
extDigitalWrite(SERVO(timer, Channel[timer]).Pin.nbr, LOW); // pulse this channel low if activated
}
Channel[timer]++; // increment to the next channel
if (SERVO_INDEX(timer, Channel[timer]) < ServoCount && Channel[timer] < SERVOS_PER_TIMER) {
*OCRnA = *TCNTn + SERVO(timer, Channel[timer]).ticks;
if (SERVO(timer, Channel[timer]).Pin.isActive) // check if activated
extDigitalWrite(SERVO(timer, Channel[timer]).Pin.nbr, HIGH); // it's an active channel so pulse it high
}
else {
// finished all channels so wait for the refresh period to expire before starting over
if (((unsigned)*TCNTn) + 4 < usToTicks(REFRESH_INTERVAL)) // allow a few ticks to ensure the next OCR1A not missed
*OCRnA = (unsigned int)usToTicks(REFRESH_INTERVAL);
else
*OCRnA = *TCNTn + 4; // at least REFRESH_INTERVAL has elapsed
Channel[timer] = -1; // this will get incremented at the end of the refresh period to start again at the first channel
}
}
#ifndef WIRING // Wiring pre-defines signal handlers so don't define any if compiling for the Wiring platform
// Interrupt handlers for Arduino
#ifdef _useTimer1
SIGNAL(TIMER1_COMPA_vect) { handle_interrupts(_timer1, &TCNT1, &OCR1A); }
#endif
#ifdef _useTimer3
SIGNAL(TIMER3_COMPA_vect) { handle_interrupts(_timer3, &TCNT3, &OCR3A); }
#endif
#ifdef _useTimer4
SIGNAL(TIMER4_COMPA_vect) { handle_interrupts(_timer4, &TCNT4, &OCR4A); }
#endif
#ifdef _useTimer5
SIGNAL(TIMER5_COMPA_vect) { handle_interrupts(_timer5, &TCNT5, &OCR5A); }
#endif
#else // WIRING
// Interrupt handlers for Wiring
#ifdef _useTimer1
void Timer1Service() { handle_interrupts(_timer1, &TCNT1, &OCR1A); }
#endif
#ifdef _useTimer3
void Timer3Service() { handle_interrupts(_timer3, &TCNT3, &OCR3A); }
#endif
#endif // WIRING
/****************** end of static functions ******************************/
void initISR(timer16_Sequence_t timer) {
#ifdef _useTimer1
if (timer == _timer1) {
TCCR1A = 0; // normal counting mode
TCCR1B = _BV(CS11); // set prescaler of 8
TCNT1 = 0; // clear the timer count
#if defined(__AVR_ATmega8__) || defined(__AVR_ATmega128__)
SBI(TIFR, OCF1A); // clear any pending interrupts;
SBI(TIMSK, OCIE1A); // enable the output compare interrupt
#else
// here if not ATmega8 or ATmega128
SBI(TIFR1, OCF1A); // clear any pending interrupts;
SBI(TIMSK1, OCIE1A); // enable the output compare interrupt
#endif
#ifdef WIRING
timerAttach(TIMER1OUTCOMPAREA_INT, Timer1Service);
#endif
}
#endif
#ifdef _useTimer3
if (timer == _timer3) {
TCCR3A = 0; // normal counting mode
TCCR3B = _BV(CS31); // set prescaler of 8
TCNT3 = 0; // clear the timer count
#ifdef __AVR_ATmega128__
SBI(TIFR, OCF3A); // clear any pending interrupts;
SBI(ETIMSK, OCIE3A); // enable the output compare interrupt
#else
SBI(TIFR3, OCF3A); // clear any pending interrupts;
SBI(TIMSK3, OCIE3A); // enable the output compare interrupt
#endif
#ifdef WIRING
timerAttach(TIMER3OUTCOMPAREA_INT, Timer3Service); // for Wiring platform only
#endif
}
#endif
#ifdef _useTimer4
if (timer == _timer4) {
TCCR4A = 0; // normal counting mode
TCCR4B = _BV(CS41); // set prescaler of 8
TCNT4 = 0; // clear the timer count
TIFR4 = _BV(OCF4A); // clear any pending interrupts;
TIMSK4 = _BV(OCIE4A); // enable the output compare interrupt
}
#endif
#ifdef _useTimer5
if (timer == _timer5) {
TCCR5A = 0; // normal counting mode
TCCR5B = _BV(CS51); // set prescaler of 8
TCNT5 = 0; // clear the timer count
TIFR5 = _BV(OCF5A); // clear any pending interrupts;
TIMSK5 = _BV(OCIE5A); // enable the output compare interrupt
}
#endif
}
void finISR(timer16_Sequence_t timer) {
// Disable use of the given timer
#ifdef WIRING
if (timer == _timer1) {
CBI(
#if defined(__AVR_ATmega1281__) || defined(__AVR_ATmega2561__)
TIMSK1
#else
TIMSK
#endif
, OCIE1A); // disable timer 1 output compare interrupt
timerDetach(TIMER1OUTCOMPAREA_INT);
}
else if (timer == _timer3) {
CBI(
#if defined(__AVR_ATmega1281__) || defined(__AVR_ATmega2561__)
TIMSK3
#else
ETIMSK
#endif
, OCIE3A); // disable the timer3 output compare A interrupt
timerDetach(TIMER3OUTCOMPAREA_INT);
}
#else // !WIRING
// For arduino - in future: call here to a currently undefined function to reset the timer
UNUSED(timer);
#endif
}
#endif // HAS_SERVOS
#endif // __AVR__
+93
View File
@@ -0,0 +1,93 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* ServoTimers.h - Interrupt driven Servo library for Arduino using 16 bit timers- Version 2
* Copyright (c) 2009 Michael Margolis. All right reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* Defines for 16 bit timers used with Servo library
*
* If _useTimerX is defined then TimerX is a 16 bit timer on the current board
* timer16_Sequence_t enumerates the sequence that the timers should be allocated
* _Nbr_16timers indicates how many 16 bit timers are available.
*/
/**
* AVR Only definitions
* --------------------
*/
#define TRIM_DURATION 2 // compensation ticks to trim adjust for digitalWrite delays
#define SERVO_TIMER_PRESCALER 8 // timer prescaler
// Say which 16 bit timers can be used and in what order
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
//#define _useTimer1
#define _useTimer4
#if NUM_SERVOS > SERVOS_PER_TIMER
#define _useTimer3
#if !HAS_MOTOR_CURRENT_PWM && SERVOS > 2 * SERVOS_PER_TIMER
#define _useTimer5 // Timer 5 is used for motor current PWM and can't be used for servos.
#endif
#endif
#elif defined(__AVR_ATmega32U4__)
#define _useTimer3
#elif defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)
#define _useTimer3
#elif defined(__AVR_ATmega128__) || defined(__AVR_ATmega1281__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega2561__)
#define _useTimer3
#else
// everything else
#endif
typedef enum {
#ifdef _useTimer1
_timer1,
#endif
#ifdef _useTimer3
_timer3,
#endif
#ifdef _useTimer4
_timer4,
#endif
#ifdef _useTimer5
_timer5,
#endif
_Nbr_16timers
} timer16_Sequence_t;
+74
View File
@@ -0,0 +1,74 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#ifdef __AVR__
#include "../../inc/MarlinConfig.h"
#if EITHER(EEPROM_SETTINGS, SD_FIRMWARE_UPDATE)
/**
* PersistentStore for Arduino-style EEPROM interface
* with implementations supplied by the framework.
*/
#include "../shared/eeprom_api.h"
#ifndef MARLIN_EEPROM_SIZE
#define MARLIN_EEPROM_SIZE size_t(E2END + 1)
#endif
size_t PersistentStore::capacity() { return MARLIN_EEPROM_SIZE; }
bool PersistentStore::access_start() { return true; }
bool PersistentStore::access_finish() { return true; }
bool PersistentStore::write_data(int &pos, const uint8_t *value, size_t size, uint16_t *crc) {
uint16_t written = 0;
while (size--) {
uint8_t * const p = (uint8_t * const)pos;
uint8_t v = *value;
if (v != eeprom_read_byte(p)) { // EEPROM has only ~100,000 write cycles, so only write bytes that have changed!
eeprom_write_byte(p, v);
if (++written & 0x7F) delay(2); else safe_delay(2); // Avoid triggering watchdog during long EEPROM writes
if (eeprom_read_byte(p) != v) {
SERIAL_ECHO_MSG(STR_ERR_EEPROM_WRITE);
return true;
}
}
crc16(crc, &v, 1);
pos++;
value++;
}
return false;
}
bool PersistentStore::read_data(int &pos, uint8_t *value, size_t size, uint16_t *crc, const bool writing/*=true*/) {
do {
uint8_t c = eeprom_read_byte((uint8_t*)pos);
if (writing) *value = c;
crc16(crc, &c, 1);
pos++;
value++;
} while (--size);
return false; // always assume success for AVR's
}
#endif // EEPROM_SETTINGS || SD_FIRMWARE_UPDATE
#endif // __AVR__
+305
View File
@@ -0,0 +1,305 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* Endstop Interrupts
*
* Without endstop interrupts the endstop pins must be polled continually in
* the temperature-ISR via endstops.update(), most of the time finding no change.
* With this feature endstops.update() is called only when we know that at
* least one endstop has changed state, saving valuable CPU cycles.
*
* This feature only works when all used endstop pins can generate either an
* 'external interrupt' or a 'pin change interrupt'.
*
* Test whether pins issue interrupts on your board by flashing 'pin_interrupt_test.ino'.
* (Located in Marlin/buildroot/share/pin_interrupt_test/pin_interrupt_test.ino)
*/
#include "../../module/endstops.h"
#include <stdint.h>
// One ISR for all EXT-Interrupts
void endstop_ISR() { endstops.update(); }
/**
* Patch for pins_arduino.h (...\Arduino\hardware\arduino\avr\variants\mega\pins_arduino.h)
*
* These macros for the Arduino MEGA do not include the two connected pins on Port J (D14, D15).
* So we extend them here because these are the normal pins for Y_MIN and Y_MAX on RAMPS.
* There are more PCI-enabled processor pins on Port J, but they are not connected to Arduino MEGA.
*/
#if defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_AVR_MEGA)
#define digitalPinHasPCICR(p) (WITHIN(p, 10, 15) || WITHIN(p, 50, 53) || WITHIN(p, 62, 69))
#undef digitalPinToPCICR
#define digitalPinToPCICR(p) (digitalPinHasPCICR(p) ? (&PCICR) : nullptr)
#undef digitalPinToPCICRbit
#define digitalPinToPCICRbit(p) (WITHIN(p, 10, 13) || WITHIN(p, 50, 53) ? 0 : \
WITHIN(p, 14, 15) ? 1 : \
WITHIN(p, 62, 69) ? 2 : \
0)
#undef digitalPinToPCMSK
#define digitalPinToPCMSK(p) (WITHIN(p, 10, 13) || WITHIN(p, 50, 53) ? (&PCMSK0) : \
WITHIN(p, 14, 15) ? (&PCMSK1) : \
WITHIN(p, 62, 69) ? (&PCMSK2) : \
nullptr)
#undef digitalPinToPCMSKbit
#define digitalPinToPCMSKbit(p) (WITHIN(p, 10, 13) ? ((p) - 6) : \
(p) == 14 || (p) == 51 ? 2 : \
(p) == 15 || (p) == 52 ? 1 : \
(p) == 50 ? 3 : \
(p) == 53 ? 0 : \
WITHIN(p, 62, 69) ? ((p) - 62) : \
0)
#elif defined(__AVR_ATmega164A__) || defined(__AVR_ATmega164P__) || defined(__AVR_ATmega324A__) || \
defined(__AVR_ATmega324P__) || defined(__AVR_ATmega324PA__) || defined(__AVR_ATmega324PB__) || \
defined(__AVR_ATmega644A__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284__) || \
defined(__AVR_ATmega1284P__)
#define digitalPinHasPCICR(p) WITHIN(p, 0, NUM_DIGITAL_PINS)
#else
#error "Unsupported AVR variant!"
#endif
// Install Pin change interrupt for a pin. Can be called multiple times.
void pciSetup(const int8_t pin) {
if (digitalPinHasPCICR(pin)) {
SBI(*digitalPinToPCMSK(pin), digitalPinToPCMSKbit(pin)); // enable pin
SBI(PCIFR, digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
SBI(PCICR, digitalPinToPCICRbit(pin)); // enable interrupt for the group
}
}
// Handlers for pin change interrupts
#ifdef PCINT0_vect
ISR(PCINT0_vect) { endstop_ISR(); }
#endif
#ifdef PCINT1_vect
ISR(PCINT1_vect, ISR_ALIASOF(PCINT0_vect));
#endif
#ifdef PCINT2_vect
ISR(PCINT2_vect, ISR_ALIASOF(PCINT0_vect));
#endif
#ifdef PCINT3_vect
ISR(PCINT3_vect, ISR_ALIASOF(PCINT0_vect));
#endif
void setup_endstop_interrupts() {
#define _ATTACH(P) attachInterrupt(digitalPinToInterrupt(P), endstop_ISR, CHANGE)
#if HAS_X_MAX
#if (digitalPinToInterrupt(X_MAX_PIN) != NOT_AN_INTERRUPT)
_ATTACH(X_MAX_PIN);
#else
static_assert(digitalPinHasPCICR(X_MAX_PIN), "X_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(X_MAX_PIN);
#endif
#endif
#if HAS_X_MIN
#if (digitalPinToInterrupt(X_MIN_PIN) != NOT_AN_INTERRUPT)
_ATTACH(X_MIN_PIN);
#else
static_assert(digitalPinHasPCICR(X_MIN_PIN), "X_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(X_MIN_PIN);
#endif
#endif
#if HAS_Y_MAX
#if (digitalPinToInterrupt(Y_MAX_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Y_MAX_PIN);
#else
static_assert(digitalPinHasPCICR(Y_MAX_PIN), "Y_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Y_MAX_PIN);
#endif
#endif
#if HAS_Y_MIN
#if (digitalPinToInterrupt(Y_MIN_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Y_MIN_PIN);
#else
static_assert(digitalPinHasPCICR(Y_MIN_PIN), "Y_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Y_MIN_PIN);
#endif
#endif
#if HAS_Z_MAX
#if (digitalPinToInterrupt(Z_MAX_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Z_MAX_PIN);
#else
static_assert(digitalPinHasPCICR(Z_MAX_PIN), "Z_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Z_MAX_PIN);
#endif
#endif
#if HAS_Z_MIN
#if (digitalPinToInterrupt(Z_MIN_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Z_MIN_PIN);
#else
static_assert(digitalPinHasPCICR(Z_MIN_PIN), "Z_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Z_MIN_PIN);
#endif
#endif
#if HAS_I_MAX
#if (digitalPinToInterrupt(I_MAX_PIN) != NOT_AN_INTERRUPT)
_ATTACH(I_MAX_PIN);
#else
static_assert(digitalPinHasPCICR(I_MAX_PIN), "I_MAX_PIN is not interrupt-capable");
pciSetup(I_MAX_PIN);
#endif
#elif HAS_I_MIN
#if (digitalPinToInterrupt(I_MIN_PIN) != NOT_AN_INTERRUPT)
_ATTACH(I_MIN_PIN);
#else
static_assert(digitalPinHasPCICR(I_MIN_PIN), "I_MIN_PIN is not interrupt-capable");
pciSetup(I_MIN_PIN);
#endif
#endif
#if HAS_J_MAX
#if (digitalPinToInterrupt(J_MAX_PIN) != NOT_AN_INTERRUPT)
_ATTACH(J_MAX_PIN);
#else
static_assert(digitalPinHasPCICR(J_MAX_PIN), "J_MAX_PIN is not interrupt-capable");
pciSetup(J_MAX_PIN);
#endif
#elif HAS_J_MIN
#if (digitalPinToInterrupt(J_MIN_PIN) != NOT_AN_INTERRUPT)
_ATTACH(J_MIN_PIN);
#else
static_assert(digitalPinHasPCICR(J_MIN_PIN), "J_MIN_PIN is not interrupt-capable");
pciSetup(J_MIN_PIN);
#endif
#endif
#if HAS_K_MAX
#if (digitalPinToInterrupt(K_MAX_PIN) != NOT_AN_INTERRUPT)
_ATTACH(K_MAX_PIN);
#else
static_assert(digitalPinHasPCICR(K_MAX_PIN), "K_MAX_PIN is not interrupt-capable");
pciSetup(K_MAX_PIN);
#endif
#elif HAS_K_MIN
#if (digitalPinToInterrupt(K_MIN_PIN) != NOT_AN_INTERRUPT)
_ATTACH(K_MIN_PIN);
#else
static_assert(digitalPinHasPCICR(K_MIN_PIN), "K_MIN_PIN is not interrupt-capable");
pciSetup(K_MIN_PIN);
#endif
#endif
#if HAS_X2_MAX
#if (digitalPinToInterrupt(X2_MAX_PIN) != NOT_AN_INTERRUPT)
_ATTACH(X2_MAX_PIN);
#else
static_assert(digitalPinHasPCICR(X2_MAX_PIN), "X2_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(X2_MAX_PIN);
#endif
#endif
#if HAS_X2_MIN
#if (digitalPinToInterrupt(X2_MIN_PIN) != NOT_AN_INTERRUPT)
_ATTACH(X2_MIN_PIN);
#else
static_assert(digitalPinHasPCICR(X2_MIN_PIN), "X2_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(X2_MIN_PIN);
#endif
#endif
#if HAS_Y2_MAX
#if (digitalPinToInterrupt(Y2_MAX_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Y2_MAX_PIN);
#else
static_assert(digitalPinHasPCICR(Y2_MAX_PIN), "Y2_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Y2_MAX_PIN);
#endif
#endif
#if HAS_Y2_MIN
#if (digitalPinToInterrupt(Y2_MIN_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Y2_MIN_PIN);
#else
static_assert(digitalPinHasPCICR(Y2_MIN_PIN), "Y2_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Y2_MIN_PIN);
#endif
#endif
#if HAS_Z2_MAX
#if (digitalPinToInterrupt(Z2_MAX_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Z2_MAX_PIN);
#else
static_assert(digitalPinHasPCICR(Z2_MAX_PIN), "Z2_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Z2_MAX_PIN);
#endif
#endif
#if HAS_Z2_MIN
#if (digitalPinToInterrupt(Z2_MIN_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Z2_MIN_PIN);
#else
static_assert(digitalPinHasPCICR(Z2_MIN_PIN), "Z2_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Z2_MIN_PIN);
#endif
#endif
#if HAS_Z3_MAX
#if (digitalPinToInterrupt(Z3_MAX_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Z3_MAX_PIN);
#else
static_assert(digitalPinHasPCICR(Z3_MAX_PIN), "Z3_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Z3_MAX_PIN);
#endif
#endif
#if HAS_Z3_MIN
#if (digitalPinToInterrupt(Z3_MIN_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Z3_MIN_PIN);
#else
static_assert(digitalPinHasPCICR(Z3_MIN_PIN), "Z3_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Z3_MIN_PIN);
#endif
#endif
#if HAS_Z4_MAX
#if (digitalPinToInterrupt(Z4_MAX_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Z4_MAX_PIN);
#else
static_assert(digitalPinHasPCICR(Z4_MAX_PIN), "Z4_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Z4_MAX_PIN);
#endif
#endif
#if HAS_Z4_MIN
#if (digitalPinToInterrupt(Z4_MIN_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Z4_MIN_PIN);
#else
static_assert(digitalPinHasPCICR(Z4_MIN_PIN), "Z4_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Z4_MIN_PIN);
#endif
#endif
#if HAS_Z_MIN_PROBE_PIN
#if (digitalPinToInterrupt(Z_MIN_PROBE_PIN) != NOT_AN_INTERRUPT)
_ATTACH(Z_MIN_PROBE_PIN);
#else
static_assert(digitalPinHasPCICR(Z_MIN_PROBE_PIN), "Z_MIN_PROBE_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
pciSetup(Z_MIN_PROBE_PIN);
#endif
#endif
// If we arrive here without raising an assertion, each pin has either an EXT-interrupt or a PCI.
}
+282
View File
@@ -0,0 +1,282 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#ifdef __AVR__
#include "../../inc/MarlinConfigPre.h"
#if NEEDS_HARDWARE_PWM // Specific meta-flag for features that mandate PWM
#include "HAL.h"
struct Timer {
volatile uint8_t* TCCRnQ[3]; // max 3 TCCR registers per timer
volatile uint16_t* OCRnQ[3]; // max 3 OCR registers per timer
volatile uint16_t* ICRn; // max 1 ICR register per timer
uint8_t n; // the timer number [0->5]
uint8_t q; // the timer output [0->2] (A->C)
};
/**
* get_pwm_timer
* Get the timer information and register of the provided pin.
* Return a Timer struct containing this information.
* Used by set_pwm_frequency, set_pwm_duty
*/
Timer get_pwm_timer(const pin_t pin) {
uint8_t q = 0;
switch (digitalPinToTimer(pin)) {
// Protect reserved timers (TIMER0 & TIMER1)
#ifdef TCCR0A
#if !AVR_AT90USB1286_FAMILY
case TIMER0A:
#endif
case TIMER0B:
#endif
#ifdef TCCR1A
case TIMER1A: case TIMER1B:
#endif
break;
#if defined(TCCR2) || defined(TCCR2A)
#ifdef TCCR2
case TIMER2: {
Timer timer = {
/*TCCRnQ*/ { &TCCR2, nullptr, nullptr },
/*OCRnQ*/ { (uint16_t*)&OCR2, nullptr, nullptr },
/*ICRn*/ nullptr,
/*n, q*/ 2, 0
};
}
#elif defined(TCCR2A)
#if ENABLED(USE_OCR2A_AS_TOP)
case TIMER2A: break; // protect TIMER2A
case TIMER2B: {
Timer timer = {
/*TCCRnQ*/ { &TCCR2A, &TCCR2B, nullptr },
/*OCRnQ*/ { (uint16_t*)&OCR2A, (uint16_t*)&OCR2B, nullptr },
/*ICRn*/ nullptr,
/*n, q*/ 2, 1
};
return timer;
}
#else
case TIMER2B: ++q;
case TIMER2A: {
Timer timer = {
/*TCCRnQ*/ { &TCCR2A, &TCCR2B, nullptr },
/*OCRnQ*/ { (uint16_t*)&OCR2A, (uint16_t*)&OCR2B, nullptr },
/*ICRn*/ nullptr,
2, q
};
return timer;
}
#endif
#endif
#endif
#ifdef OCR3C
case TIMER3C: ++q;
case TIMER3B: ++q;
case TIMER3A: {
Timer timer = {
/*TCCRnQ*/ { &TCCR3A, &TCCR3B, &TCCR3C },
/*OCRnQ*/ { &OCR3A, &OCR3B, &OCR3C },
/*ICRn*/ &ICR3,
/*n, q*/ 3, q
};
return timer;
}
#elif defined(OCR3B)
case TIMER3B: ++q;
case TIMER3A: {
Timer timer = {
/*TCCRnQ*/ { &TCCR3A, &TCCR3B, nullptr },
/*OCRnQ*/ { &OCR3A, &OCR3B, nullptr },
/*ICRn*/ &ICR3,
/*n, q*/ 3, q
};
return timer;
}
#endif
#ifdef TCCR4A
case TIMER4C: ++q;
case TIMER4B: ++q;
case TIMER4A: {
Timer timer = {
/*TCCRnQ*/ { &TCCR4A, &TCCR4B, &TCCR4C },
/*OCRnQ*/ { &OCR4A, &OCR4B, &OCR4C },
/*ICRn*/ &ICR4,
/*n, q*/ 4, q
};
return timer;
}
#endif
#ifdef TCCR5A
case TIMER5C: ++q;
case TIMER5B: ++q;
case TIMER5A: {
Timer timer = {
/*TCCRnQ*/ { &TCCR5A, &TCCR5B, &TCCR5C },
/*OCRnQ*/ { &OCR5A, &OCR5B, &OCR5C },
/*ICRn*/ &ICR5,
/*n, q*/ 5, q
};
return timer;
}
#endif
}
Timer timer = {
/*TCCRnQ*/ { nullptr, nullptr, nullptr },
/*OCRnQ*/ { nullptr, nullptr, nullptr },
/*ICRn*/ nullptr,
0, 0
};
return timer;
}
void set_pwm_frequency(const pin_t pin, int f_desired) {
Timer timer = get_pwm_timer(pin);
if (timer.n == 0) return; // Don't proceed if protected timer or not recognised
uint16_t size;
if (timer.n == 2) size = 255; else size = 65535;
uint16_t res = 255; // resolution (TOP value)
uint8_t j = 0; // prescaler index
uint8_t wgm = 1; // waveform generation mode
// Calculating the prescaler and resolution to use to achieve closest frequency
if (f_desired != 0) {
int f = (F_CPU) / (2 * 1024 * size) + 1; // Initialize frequency as lowest (non-zero) achievable
uint16_t prescaler[] = { 0, 1, 8, /*TIMER2 ONLY*/32, 64, /*TIMER2 ONLY*/128, 256, 1024 };
// loop over prescaler values
LOOP_S_L_N(i, 1, 8) {
uint16_t res_temp_fast = 255, res_temp_phase_correct = 255;
if (timer.n == 2) {
// No resolution calculation for TIMER2 unless enabled USE_OCR2A_AS_TOP
#if ENABLED(USE_OCR2A_AS_TOP)
const uint16_t rtf = (F_CPU) / (prescaler[i] * f_desired);
res_temp_fast = rtf - 1;
res_temp_phase_correct = rtf / 2;
#endif
}
else {
// Skip TIMER2 specific prescalers when not TIMER2
if (i == 3 || i == 5) continue;
const uint16_t rtf = (F_CPU) / (prescaler[i] * f_desired);
res_temp_fast = rtf - 1;
res_temp_phase_correct = rtf / 2;
}
LIMIT(res_temp_fast, 1U, size);
LIMIT(res_temp_phase_correct, 1U, size);
// Calculate frequencies of test prescaler and resolution values
const int f_temp_fast = (F_CPU) / (prescaler[i] * (1 + res_temp_fast)),
f_temp_phase_correct = (F_CPU) / (2 * prescaler[i] * res_temp_phase_correct),
f_diff = ABS(f - f_desired),
f_fast_diff = ABS(f_temp_fast - f_desired),
f_phase_diff = ABS(f_temp_phase_correct - f_desired);
// If FAST values are closest to desired f
if (f_fast_diff < f_diff && f_fast_diff <= f_phase_diff) {
// Remember this combination
f = f_temp_fast;
res = res_temp_fast;
j = i;
// Set the Wave Generation Mode to FAST PWM
if (timer.n == 2) {
wgm = (
#if ENABLED(USE_OCR2A_AS_TOP)
WGM2_FAST_PWM_OCR2A
#else
WGM2_FAST_PWM
#endif
);
}
else wgm = WGM_FAST_PWM_ICRn;
}
// If PHASE CORRECT values are closes to desired f
else if (f_phase_diff < f_diff) {
f = f_temp_phase_correct;
res = res_temp_phase_correct;
j = i;
// Set the Wave Generation Mode to PWM PHASE CORRECT
if (timer.n == 2) {
wgm = (
#if ENABLED(USE_OCR2A_AS_TOP)
WGM2_PWM_PC_OCR2A
#else
WGM2_PWM_PC
#endif
);
}
else wgm = WGM_PWM_PC_ICRn;
}
}
}
_SET_WGMnQ(timer.TCCRnQ, wgm);
_SET_CSn(timer.TCCRnQ, j);
if (timer.n == 2) {
#if ENABLED(USE_OCR2A_AS_TOP)
_SET_OCRnQ(timer.OCRnQ, 0, res); // Set OCR2A value (TOP) = res
#endif
}
else
_SET_ICRn(timer.ICRn, res); // Set ICRn value (TOP) = res
}
void set_pwm_duty(const pin_t pin, const uint16_t v, const uint16_t v_size/*=255*/, const bool invert/*=false*/) {
// If v is 0 or v_size (max), digitalWrite to LOW or HIGH.
// Note that digitalWrite also disables pwm output for us (sets COM bit to 0)
if (v == 0)
digitalWrite(pin, invert);
else if (v == v_size)
digitalWrite(pin, !invert);
else {
Timer timer = get_pwm_timer(pin);
if (timer.n == 0) return; // Don't proceed if protected timer or not recognised
// Set compare output mode to CLEAR -> SET or SET -> CLEAR (if inverted)
_SET_COMnQ(timer.TCCRnQ, (timer.q
#ifdef TCCR2
+ (timer.q == 2) // COM20 is on bit 4 of TCCR2, thus requires q + 1 in the macro
#endif
), COM_CLEAR_SET + invert
);
uint16_t top;
if (timer.n == 2) { // if TIMER2
top = (
#if ENABLED(USE_OCR2A_AS_TOP)
*timer.OCRnQ[0] // top = OCR2A
#else
255 // top = 0xFF (max)
#endif
);
}
else
top = *timer.ICRn; // top = ICRn
_SET_OCRnQ(timer.OCRnQ, timer.q, v * float(top) / float(v_size)); // Scale 8/16-bit v to top value
}
}
#endif // NEEDS_HARDWARE_PWM
#endif // __AVR__
+288
View File
@@ -0,0 +1,288 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* Fast I/O for extended pins
*/
#ifdef __AVR__
#include "fastio.h"
#ifdef FASTIO_EXT_START
#include "../shared/Marduino.h"
#define _IS_EXT(P) WITHIN(P, FASTIO_EXT_START, FASTIO_EXT_END)
void extDigitalWrite(const int8_t pin, const uint8_t state) {
#define _WCASE(N) case N: WRITE(N, state); break
switch (pin) {
default: digitalWrite(pin, state);
#if _IS_EXT(70)
_WCASE(70);
#endif
#if _IS_EXT(71)
_WCASE(71);
#endif
#if _IS_EXT(72)
_WCASE(72);
#endif
#if _IS_EXT(73)
_WCASE(73);
#endif
#if _IS_EXT(74)
_WCASE(74);
#endif
#if _IS_EXT(75)
_WCASE(75);
#endif
#if _IS_EXT(76)
_WCASE(76);
#endif
#if _IS_EXT(77)
_WCASE(77);
#endif
#if _IS_EXT(78)
_WCASE(78);
#endif
#if _IS_EXT(79)
_WCASE(79);
#endif
#if _IS_EXT(80)
_WCASE(80);
#endif
#if _IS_EXT(81)
_WCASE(81);
#endif
#if _IS_EXT(82)
_WCASE(82);
#endif
#if _IS_EXT(83)
_WCASE(83);
#endif
#if _IS_EXT(84)
_WCASE(84);
#endif
#if _IS_EXT(85)
_WCASE(85);
#endif
#if _IS_EXT(86)
_WCASE(86);
#endif
#if _IS_EXT(87)
_WCASE(87);
#endif
#if _IS_EXT(88)
_WCASE(88);
#endif
#if _IS_EXT(89)
_WCASE(89);
#endif
#if _IS_EXT(90)
_WCASE(90);
#endif
#if _IS_EXT(91)
_WCASE(91);
#endif
#if _IS_EXT(92)
_WCASE(92);
#endif
#if _IS_EXT(93)
_WCASE(93);
#endif
#if _IS_EXT(94)
_WCASE(94);
#endif
#if _IS_EXT(95)
_WCASE(95);
#endif
#if _IS_EXT(96)
_WCASE(96);
#endif
#if _IS_EXT(97)
_WCASE(97);
#endif
#if _IS_EXT(98)
_WCASE(98);
#endif
#if _IS_EXT(99)
_WCASE(99);
#endif
#if _IS_EXT(100)
_WCASE(100);
#endif
}
}
uint8_t extDigitalRead(const int8_t pin) {
#define _RCASE(N) case N: return READ(N)
switch (pin) {
default: return digitalRead(pin);
#if _IS_EXT(70)
_RCASE(70);
#endif
#if _IS_EXT(71)
_RCASE(71);
#endif
#if _IS_EXT(72)
_RCASE(72);
#endif
#if _IS_EXT(73)
_RCASE(73);
#endif
#if _IS_EXT(74)
_RCASE(74);
#endif
#if _IS_EXT(75)
_RCASE(75);
#endif
#if _IS_EXT(76)
_RCASE(76);
#endif
#if _IS_EXT(77)
_RCASE(77);
#endif
#if _IS_EXT(78)
_RCASE(78);
#endif
#if _IS_EXT(79)
_RCASE(79);
#endif
#if _IS_EXT(80)
_RCASE(80);
#endif
#if _IS_EXT(81)
_RCASE(81);
#endif
#if _IS_EXT(82)
_RCASE(82);
#endif
#if _IS_EXT(83)
_RCASE(83);
#endif
#if _IS_EXT(84)
_RCASE(84);
#endif
#if _IS_EXT(85)
_RCASE(85);
#endif
#if _IS_EXT(86)
_RCASE(86);
#endif
#if _IS_EXT(87)
_RCASE(87);
#endif
#if _IS_EXT(88)
_RCASE(88);
#endif
#if _IS_EXT(89)
_RCASE(89);
#endif
#if _IS_EXT(90)
_RCASE(90);
#endif
#if _IS_EXT(91)
_RCASE(91);
#endif
#if _IS_EXT(92)
_RCASE(92);
#endif
#if _IS_EXT(93)
_RCASE(93);
#endif
#if _IS_EXT(94)
_RCASE(94);
#endif
#if _IS_EXT(95)
_RCASE(95);
#endif
#if _IS_EXT(96)
_RCASE(96);
#endif
#if _IS_EXT(97)
_RCASE(97);
#endif
#if _IS_EXT(98)
_RCASE(98);
#endif
#if _IS_EXT(99)
_RCASE(99);
#endif
#if _IS_EXT(100)
_RCASE(100);
#endif
}
}
#if 0
/**
* Set Timer 5 PWM frequency in Hz, from 3.8Hz up to ~16MHz
* with a minimum resolution of 100 steps.
*
* DC values -1.0 to 1.0. Negative duty cycle inverts the pulse.
*/
uint16_t set_pwm_frequency_hz(const_float_t hz, const float dca, const float dcb, const float dcc) {
float count = 0;
if (hz > 0 && (dca || dcb || dcc)) {
count = float(F_CPU) / hz; // 1x prescaler, TOP for 16MHz base freq.
uint16_t prescaler; // Range of 30.5Hz (65535) 64.5KHz (>31)
if (count >= 255. * 256.) { prescaler = 1024; SET_CS(5, PRESCALER_1024); }
else if (count >= 255. * 64.) { prescaler = 256; SET_CS(5, PRESCALER_256); }
else if (count >= 255. * 8.) { prescaler = 64; SET_CS(5, PRESCALER_64); }
else if (count >= 255.) { prescaler = 8; SET_CS(5, PRESCALER_8); }
else { prescaler = 1; SET_CS(5, PRESCALER_1); }
count /= float(prescaler);
const float pwm_top = round(count); // Get the rounded count
ICR5 = (uint16_t)pwm_top - 1; // Subtract 1 for TOP
OCR5A = pwm_top * ABS(dca); // Update and scale DCs
OCR5B = pwm_top * ABS(dcb);
OCR5C = pwm_top * ABS(dcc);
_SET_COM(5, A, dca ? (dca < 0 ? COM_SET_CLEAR : COM_CLEAR_SET) : COM_NORMAL); // Set compare modes
_SET_COM(5, B, dcb ? (dcb < 0 ? COM_SET_CLEAR : COM_CLEAR_SET) : COM_NORMAL);
_SET_COM(5, C, dcc ? (dcc < 0 ? COM_SET_CLEAR : COM_CLEAR_SET) : COM_NORMAL);
SET_WGM(5, FAST_PWM_ICRn); // Fast PWM with ICR5 as TOP
//SERIAL_ECHOLNPGM("Timer 5 Settings:");
//SERIAL_ECHOLNPAIR(" Prescaler=", prescaler);
//SERIAL_ECHOLNPAIR(" TOP=", ICR5);
//SERIAL_ECHOLNPAIR(" OCR5A=", OCR5A);
//SERIAL_ECHOLNPAIR(" OCR5B=", OCR5B);
//SERIAL_ECHOLNPAIR(" OCR5C=", OCR5C);
}
else {
// Restore the default for Timer 5
SET_WGM(5, PWM_PC_8); // PWM 8-bit (Phase Correct)
SET_COMS(5, NORMAL, NORMAL, NORMAL); // Do nothing
SET_CS(5, PRESCALER_64); // 16MHz / 64 = 250KHz
OCR5A = OCR5B = OCR5C = 0;
}
return round(count);
}
#endif
#endif // FASTIO_EXT_START
#endif // __AVR__
+373
View File
@@ -0,0 +1,373 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* Fast I/O Routines for AVR
* Use direct port manipulation to save scads of processor time.
* Contributed by Triffid_Hunter and modified by Kliment, thinkyhead, Bob-the-Kuhn, et.al.
*/
#include <avr/io.h>
#if defined(__AVR_AT90USB1287__) || defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1286P__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB646P__) || defined(__AVR_AT90USB647__)
#define AVR_AT90USB1286_FAMILY 1
#elif defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__) || defined(__AVR_ATmega1284P__)
#define AVR_ATmega1284_FAMILY 1
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#define AVR_ATmega2560_FAMILY 1
#elif defined(__AVR_ATmega1281__) || defined(__AVR_ATmega2561__)
#define AVR_ATmega2561_FAMILY 1
#elif defined(__AVR_ATmega168__) || defined(__AVR_ATmega328__) || defined(__AVR_ATmega328P__)
#define AVR_ATmega328_FAMILY 1
#endif
/**
* Include Ports and Functions
*/
#if AVR_ATmega328_FAMILY
#include "fastio/fastio_168.h"
#elif AVR_ATmega1284_FAMILY
#include "fastio/fastio_644.h"
#elif AVR_ATmega2560_FAMILY
#include "fastio/fastio_1280.h"
#elif AVR_AT90USB1286_FAMILY
#include "fastio/fastio_AT90USB.h"
#elif AVR_ATmega2561_FAMILY
#include "fastio/fastio_1281.h"
#else
#error "No FastIO definition for the selected AVR Board."
#endif
/**
* Magic I/O routines
*
* Now you can simply SET_OUTPUT(PIN); WRITE(PIN, HIGH); WRITE(PIN, LOW);
*
* Why double up on these macros? see https://gcc.gnu.org/onlinedocs/cpp/Stringification.html
*/
#define _READ(IO) TEST(DIO ## IO ## _RPORT, DIO ## IO ## _PIN)
#define _WRITE_NC(IO,V) do{ \
if (V) SBI(DIO ## IO ## _WPORT, DIO ## IO ## _PIN); \
else CBI(DIO ## IO ## _WPORT, DIO ## IO ## _PIN); \
}while(0)
#define _WRITE_C(IO,V) do{ \
uint8_t port_bits = DIO ## IO ## _WPORT; /* Get a mask from the current port bits */ \
if (V) port_bits = ~port_bits; /* For setting bits, invert the mask */ \
DIO ## IO ## _RPORT = port_bits & _BV(DIO ## IO ## _PIN); /* Atomically toggle the output port bits */ \
}while(0)
#define _WRITE(IO,V) do{ if (&(DIO ## IO ## _RPORT) < (uint8_t*)0x100) _WRITE_NC(IO,V); else _WRITE_C(IO,V); }while(0)
#define _TOGGLE(IO) (DIO ## IO ## _RPORT = _BV(DIO ## IO ## _PIN))
#define _SET_INPUT(IO) CBI(DIO ## IO ## _DDR, DIO ## IO ## _PIN)
#define _SET_OUTPUT(IO) SBI(DIO ## IO ## _DDR, DIO ## IO ## _PIN)
#define _IS_INPUT(IO) !TEST(DIO ## IO ## _DDR, DIO ## IO ## _PIN)
#define _IS_OUTPUT(IO) TEST(DIO ## IO ## _DDR, DIO ## IO ## _PIN)
// digitalRead/Write wrappers
#ifdef FASTIO_EXT_START
void extDigitalWrite(const int8_t pin, const uint8_t state);
uint8_t extDigitalRead(const int8_t pin);
#else
#define extDigitalWrite(IO,V) digitalWrite(IO,V)
#define extDigitalRead(IO) digitalRead(IO)
#endif
#define READ(IO) _READ(IO)
#define WRITE(IO,V) _WRITE(IO,V)
#define TOGGLE(IO) _TOGGLE(IO)
#define SET_INPUT(IO) _SET_INPUT(IO)
#define SET_INPUT_PULLUP(IO) do{ _SET_INPUT(IO); _WRITE(IO, HIGH); }while(0)
#define SET_INPUT_PULLDOWN SET_INPUT
#define SET_OUTPUT(IO) _SET_OUTPUT(IO)
#define SET_PWM SET_OUTPUT
#define IS_INPUT(IO) _IS_INPUT(IO)
#define IS_OUTPUT(IO) _IS_OUTPUT(IO)
#define OUT_WRITE(IO,V) do{ SET_OUTPUT(IO); WRITE(IO,V); }while(0)
/**
* Timer and Interrupt Control
*/
// Waveform Generation Modes
enum WaveGenMode : char {
WGM_NORMAL, // 0
WGM_PWM_PC_8, // 1
WGM_PWM_PC_9, // 2
WGM_PWM_PC_10, // 3
WGM_CTC_OCRnA, // 4 COM OCnx
WGM_FAST_PWM_8, // 5
WGM_FAST_PWM_9, // 6
WGM_FAST_PWM_10, // 7
WGM_PWM_PC_FC_ICRn, // 8
WGM_PWM_PC_FC_OCRnA, // 9 COM OCnA
WGM_PWM_PC_ICRn, // 10
WGM_PWM_PC_OCRnA, // 11 COM OCnA
WGM_CTC_ICRn, // 12 COM OCnx
WGM_reserved, // 13
WGM_FAST_PWM_ICRn, // 14 COM OCnA
WGM_FAST_PWM_OCRnA // 15 COM OCnA
};
// Wavefore Generation Modes (Timer 2 only)
enum WaveGenMode2 : char {
WGM2_NORMAL, // 0
WGM2_PWM_PC, // 1
WGM2_CTC_OCR2A, // 2
WGM2_FAST_PWM, // 3
WGM2_reserved_1, // 4
WGM2_PWM_PC_OCR2A, // 5
WGM2_reserved_2, // 6
WGM2_FAST_PWM_OCR2A, // 7
};
// Compare Modes
enum CompareMode : char {
COM_NORMAL, // 0
COM_TOGGLE, // 1 Non-PWM: OCnx ... Both PWM (WGM 9,11,14,15): OCnA only ... else NORMAL
COM_CLEAR_SET, // 2 Non-PWM: OCnx ... Fast PWM: OCnx/Bottom ... PF-FC: OCnx Up/Down
COM_SET_CLEAR // 3 Non-PWM: OCnx ... Fast PWM: OCnx/Bottom ... PF-FC: OCnx Up/Down
};
// Clock Sources
enum ClockSource : char {
CS_NONE, // 0
CS_PRESCALER_1, // 1
CS_PRESCALER_8, // 2
CS_PRESCALER_64, // 3
CS_PRESCALER_256, // 4
CS_PRESCALER_1024, // 5
CS_EXT_FALLING, // 6
CS_EXT_RISING // 7
};
// Clock Sources (Timer 2 only)
enum ClockSource2 : char {
CS2_NONE, // 0
CS2_PRESCALER_1, // 1
CS2_PRESCALER_8, // 2
CS2_PRESCALER_32, // 3
CS2_PRESCALER_64, // 4
CS2_PRESCALER_128, // 5
CS2_PRESCALER_256, // 6
CS2_PRESCALER_1024 // 7
};
// Get interrupt bits in an orderly way
// Ex: cs = GET_CS(0); coma1 = GET_COM(A,1);
#define GET_WGM(T) (((TCCR##T##A >> WGM##T##0) & 0x3) | ((TCCR##T##B >> WGM##T##2 << 2) & 0xC))
#define GET_CS(T) ((TCCR##T##B >> CS##T##0) & 0x7)
#define GET_COM(T,Q) ((TCCR##T##Q >> COM##T##Q##0) & 0x3)
#define GET_COMA(T) GET_COM(T,A)
#define GET_COMB(T) GET_COM(T,B)
#define GET_COMC(T) GET_COM(T,C)
#define GET_ICNC(T) (!!(TCCR##T##B & _BV(ICNC##T)))
#define GET_ICES(T) (!!(TCCR##T##B & _BV(ICES##T)))
#define GET_FOC(T,Q) (!!(TCCR##T##C & _BV(FOC##T##Q)))
#define GET_FOCA(T) GET_FOC(T,A)
#define GET_FOCB(T) GET_FOC(T,B)
#define GET_FOCC(T) GET_FOC(T,C)
// Set Wave Generation Mode bits
// Ex: SET_WGM(5,CTC_ICRn);
#define _SET_WGM(T,V) do{ \
TCCR##T##A = (TCCR##T##A & ~(0x3 << WGM##T##0)) | (( int(V) & 0x3) << WGM##T##0); \
TCCR##T##B = (TCCR##T##B & ~(0x3 << WGM##T##2)) | (((int(V) >> 2) & 0x3) << WGM##T##2); \
}while(0)
#define SET_WGM(T,V) _SET_WGM(T,WGM_##V)
// Runtime (see set_pwm_frequency):
#define _SET_WGMnQ(TCCRnQ, V) do{ \
*(TCCRnQ)[0] = (*(TCCRnQ)[0] & ~(0x3 << 0)) | (( int(V) & 0x3) << 0); \
*(TCCRnQ)[1] = (*(TCCRnQ)[1] & ~(0x3 << 3)) | (((int(V) >> 2) & 0x3) << 3); \
}while(0)
// Set Clock Select bits
// Ex: SET_CS3(PRESCALER_64);
#define _SET_CS(T,V) (TCCR##T##B = (TCCR##T##B & ~(0x7 << CS##T##0)) | ((int(V) & 0x7) << CS##T##0))
#define _SET_CS0(V) _SET_CS(0,V)
#define _SET_CS1(V) _SET_CS(1,V)
#ifdef TCCR2
#define _SET_CS2(V) (TCCR2 = (TCCR2 & ~(0x7 << CS20)) | (int(V) << CS20))
#else
#define _SET_CS2(V) _SET_CS(2,V)
#endif
#define _SET_CS3(V) _SET_CS(3,V)
#define _SET_CS4(V) _SET_CS(4,V)
#define _SET_CS5(V) _SET_CS(5,V)
#define SET_CS0(V) _SET_CS0(CS_##V)
#define SET_CS1(V) _SET_CS1(CS_##V)
#ifdef TCCR2
#define SET_CS2(V) _SET_CS2(CS2_##V)
#else
#define SET_CS2(V) _SET_CS2(CS_##V)
#endif
#define SET_CS3(V) _SET_CS3(CS_##V)
#define SET_CS4(V) _SET_CS4(CS_##V)
#define SET_CS5(V) _SET_CS5(CS_##V)
#define SET_CS(T,V) SET_CS##T(V)
// Runtime (see set_pwm_frequency)
#define _SET_CSn(TCCRnQ, V) do{ \
(*(TCCRnQ)[1] = (*(TCCRnQ[1]) & ~(0x7 << 0)) | ((int(V) & 0x7) << 0)); \
}while(0)
// Set Compare Mode bits
// Ex: SET_COMS(4,CLEAR_SET,CLEAR_SET,CLEAR_SET);
#define _SET_COM(T,Q,V) (TCCR##T##Q = (TCCR##T##Q & ~(0x3 << COM##T##Q##0)) | (int(V) << COM##T##Q##0))
#define SET_COM(T,Q,V) _SET_COM(T,Q,COM_##V)
#define SET_COMA(T,V) SET_COM(T,A,V)
#define SET_COMB(T,V) SET_COM(T,B,V)
#define SET_COMC(T,V) SET_COM(T,C,V)
#define SET_COMS(T,V1,V2,V3) do{ SET_COMA(T,V1); SET_COMB(T,V2); SET_COMC(T,V3); }while(0)
// Runtime (see set_pwm_duty)
#define _SET_COMnQ(TCCRnQ, Q, V) do{ \
(*(TCCRnQ)[0] = (*(TCCRnQ)[0] & ~(0x3 << (6-2*(Q)))) | (int(V) << (6-2*(Q)))); \
}while(0)
// Set OCRnQ register
// Runtime (see set_pwm_duty):
#define _SET_OCRnQ(OCRnQ, Q, V) do{ \
(*(OCRnQ)[(Q)] = (0x0000) | (int(V) & 0xFFFF)); \
}while(0)
// Set ICRn register (one per timer)
// Runtime (see set_pwm_frequency)
#define _SET_ICRn(ICRn, V) do{ \
(*(ICRn) = (0x0000) | (int(V) & 0xFFFF)); \
}while(0)
// Set Noise Canceler bit
// Ex: SET_ICNC(2,1)
#define SET_ICNC(T,V) (TCCR##T##B = (V) ? TCCR##T##B | _BV(ICNC##T) : TCCR##T##B & ~_BV(ICNC##T))
// Set Input Capture Edge Select bit
// Ex: SET_ICES(5,0)
#define SET_ICES(T,V) (TCCR##T##B = (V) ? TCCR##T##B | _BV(ICES##T) : TCCR##T##B & ~_BV(ICES##T))
// Set Force Output Compare bit
// Ex: SET_FOC(3,A,1)
#define SET_FOC(T,Q,V) (TCCR##T##C = (V) ? TCCR##T##C | _BV(FOC##T##Q) : TCCR##T##C & ~_BV(FOC##T##Q))
#define SET_FOCA(T,V) SET_FOC(T,A,V)
#define SET_FOCB(T,V) SET_FOC(T,B,V)
#define SET_FOCC(T,V) SET_FOC(T,C,V)
#if 0
/**
* PWM availability macros
*/
// Determine which harware PWMs are already in use
#define _PWM_CHK_FAN_B(P) (P == E0_AUTO_FAN_PIN || P == E1_AUTO_FAN_PIN || P == E2_AUTO_FAN_PIN || P == E3_AUTO_FAN_PIN || P == E4_AUTO_FAN_PIN || P == E5_AUTO_FAN_PIN || P == E6_AUTO_FAN_PIN || P == E7_AUTO_FAN_PIN || P == CHAMBER_AUTO_FAN_PIN || P == COOLER_AUTO_FAN_PIN)
#if PIN_EXISTS(CONTROLLER_FAN)
#define PWM_CHK_FAN_B(P) (_PWM_CHK_FAN_B(P) || P == CONTROLLER_FAN_PIN)
#else
#define PWM_CHK_FAN_B(P) _PWM_CHK_FAN_B(P)
#endif
#if ANY_PIN(FAN, FAN1, FAN2, FAN3, FAN4, FAN5, FAN6, FAN7)
#if PIN_EXISTS(FAN7)
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN || P == FAN2_PIN || P == FAN3_PIN || P == FAN4_PIN || P == FAN5_PIN || P == FAN6_PIN || P == FAN7_PIN)
#elif PIN_EXISTS(FAN6)
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN || P == FAN2_PIN || P == FAN3_PIN || P == FAN4_PIN || P == FAN5_PIN || P == FAN6_PIN)
#elif PIN_EXISTS(FAN5)
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN || P == FAN2_PIN || P == FAN3_PIN || P == FAN4_PIN || P == FAN5_PIN)
#elif PIN_EXISTS(FAN4)
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN || P == FAN2_PIN || P == FAN3_PIN || P == FAN4_PIN)
#elif PIN_EXISTS(FAN3)
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN || P == FAN2_PIN || P == FAN3_PIN)
#elif PIN_EXISTS(FAN2)
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN || P == FAN2_PIN)
#elif PIN_EXISTS(FAN1)
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN)
#else
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN)
#endif
#else
#define PWM_CHK_FAN_A(P) false
#endif
#if HAS_MOTOR_CURRENT_PWM
#if PIN_EXISTS(MOTOR_CURRENT_PWM_XY)
#define PWM_CHK_MOTOR_CURRENT(P) (P == MOTOR_CURRENT_PWM_E || P == MOTOR_CURRENT_PWM_Z || P == MOTOR_CURRENT_PWM_XY)
#elif PIN_EXISTS(MOTOR_CURRENT_PWM_Z)
#define PWM_CHK_MOTOR_CURRENT(P) (P == MOTOR_CURRENT_PWM_E || P == MOTOR_CURRENT_PWM_Z)
#else
#define PWM_CHK_MOTOR_CURRENT(P) (P == MOTOR_CURRENT_PWM_E)
#endif
#else
#define PWM_CHK_MOTOR_CURRENT(P) false
#endif
#ifdef NUM_SERVOS
#if AVR_ATmega2560_FAMILY
#define PWM_CHK_SERVO(P) (P == 5 || (NUM_SERVOS > 12 && P == 6) || (NUM_SERVOS > 24 && P == 46)) // PWMS 3A, 4A & 5A
#elif AVR_ATmega2561_FAMILY
#define PWM_CHK_SERVO(P) (P == 5) // PWM3A
#elif AVR_ATmega1284_FAMILY
#define PWM_CHK_SERVO(P) false
#elif AVR_AT90USB1286_FAMILY
#define PWM_CHK_SERVO(P) (P == 16) // PWM3A
#elif AVR_ATmega328_FAMILY
#define PWM_CHK_SERVO(P) false
#endif
#else
#define PWM_CHK_SERVO(P) false
#endif
#if ENABLED(BARICUDA)
#if HAS_HEATER_1 && HAS_HEATER_2
#define PWM_CHK_HEATER(P) (P == HEATER_1_PIN || P == HEATER_2_PIN)
#elif HAS_HEATER_1
#define PWM_CHK_HEATER(P) (P == HEATER_1_PIN)
#endif
#else
#define PWM_CHK_HEATER(P) false
#endif
#define PWM_CHK(P) (PWM_CHK_HEATER(P) || PWM_CHK_SERVO(P) || PWM_CHK_MOTOR_CURRENT(P) || PWM_CHK_FAN_A(P) || PWM_CHK_FAN_B(P))
#endif // PWM_CHK is not used in Marlin
// define which hardware PWMs are available for the current CPU
// all timer 1 PWMS deleted from this list because they are never available
#if AVR_ATmega2560_FAMILY
#define PWM_PIN(P) ((P >= 2 && P <= 10) || P == 13 || P == 44 || P == 45 || P == 46)
#elif AVR_ATmega2561_FAMILY
#define PWM_PIN(P) ((P >= 2 && P <= 6) || P == 9)
#elif AVR_ATmega1284_FAMILY
#define PWM_PIN(P) (P == 3 || P == 4 || P == 14 || P == 15)
#elif AVR_AT90USB1286_FAMILY
#define PWM_PIN(P) (P == 0 || P == 1 || P == 14 || P == 15 || P == 16 || P == 24)
#elif AVR_ATmega328_FAMILY
#define PWM_PIN(P) (P == 3 || P == 5 || P == 6 || P == 11)
#else
#error "unknown CPU"
#endif
File diff suppressed because it is too large Load Diff
@@ -1,9 +1,9 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
@@ -28,7 +28,7 @@
* Port: A0 A1 A2 A3 A4 A5 A6 A7 B0 B1 B2 B3 B4 B5 B6 B7 C0 C1 C2 C3 C4 C5 C6 C7 D0 D1 D2 D3 D4 D5 D6 D7 E0 E1 E2 E3 E4 E5 E6 E7 F0 F1 F2 F3 F4 F5 F6 F7 G0 G1 G2 G3 G4 G5
*/
#include "fastio_AVR.h"
#include "../fastio.h"
// change for your board
#define DEBUG_LED DIO46
@@ -63,13 +63,13 @@
#define DIO0_RPORT PINE
#define DIO0_WPORT PORTE
#define DIO0_DDR DDRE
#define DIO0_PWM NULL
#define DIO0_PWM nullptr
#define DIO1_PIN PINE1
#define DIO1_RPORT PINE
#define DIO1_WPORT PORTE
#define DIO1_DDR DDRE
#define DIO1_PWM NULL
#define DIO1_PWM nullptr
#define DIO2_PIN PINE4
#define DIO2_RPORT PINE
@@ -123,339 +123,339 @@
#define DIO10_RPORT PINB
#define DIO10_WPORT PORTB
#define DIO10_DDR DDRB
#define DIO10_PWM NULL
#define DIO10_PWM nullptr
#define DIO11_PIN PINB2
#define DIO11_RPORT PINB
#define DIO11_WPORT PORTB
#define DIO11_DDR DDRB
#define DIO11_PWM NULL
#define DIO11_PWM nullptr
#define DIO12_PIN PINB3
#define DIO12_RPORT PINB
#define DIO12_WPORT PORTB
#define DIO12_DDR DDRB
#define DIO12_PWM NULL
#define DIO12_PWM nullptr
#define DIO13_PIN PINE2
#define DIO13_RPORT PINE
#define DIO13_WPORT PORTE
#define DIO13_DDR DDRE
#define DIO13_PWM NULL
#define DIO13_PWM nullptr
#define DIO14_PIN PINE6
#define DIO14_RPORT PINE
#define DIO14_WPORT PORTE
#define DIO14_DDR DDRE
#define DIO14_PWM NULL
#define DIO14_PWM nullptr
#define DIO15_PIN PINE7
#define DIO15_RPORT PINE
#define DIO15_WPORT PORTE
#define DIO15_DDR DDRE
#define DIO15_PWM NULL
#define DIO15_PWM nullptr
#define DIO16_PIN PINB0
#define DIO16_RPORT PINB
#define DIO16_WPORT PORTB
#define DIO16_DDR DDRB
#define DIO16_PWM NULL
#define DIO16_PWM nullptr
#define DIO17_PIN PIND0
#define DIO17_RPORT PIND
#define DIO17_WPORT PORTD
#define DIO17_DDR DDRD
#define DIO17_PWM NULL
#define DIO17_PWM nullptr
#define DIO18_PIN PIND1
#define DIO18_RPORT PIND
#define DIO18_WPORT PORTD
#define DIO18_DDR DDRD
#define DIO18_PWM NULL
#define DIO18_PWM nullptr
#define DIO19_PIN PIND2
#define DIO19_RPORT PIND
#define DIO19_WPORT PORTD
#define DIO19_DDR DDRD
#define DIO19_PWM NULL
#define DIO19_PWM nullptr
#define DIO20_PIN PIND3
#define DIO20_RPORT PIND
#define DIO20_WPORT PORTD
#define DIO20_DDR DDRD
#define DIO20_PWM NULL
#define DIO20_PWM nullptr
#define DIO21_PIN PIND4
#define DIO21_RPORT PIND
#define DIO21_WPORT PORTD
#define DIO21_DDR DDRD
#define DIO21_PWM NULL
#define DIO21_PWM nullptr
#define DIO22_PIN PIND5
#define DIO22_RPORT PIND
#define DIO22_WPORT PORTD
#define DIO22_DDR DDRD
#define DIO22_PWM NULL
#define DIO22_PWM nullptr
#define DIO23_PIN PIND6
#define DIO23_RPORT PIND
#define DIO23_WPORT PORTD
#define DIO23_DDR DDRD
#define DIO23_PWM NULL
#define DIO23_PWM nullptr
#define DIO24_PIN PIND7
#define DIO24_RPORT PIND
#define DIO24_WPORT PORTD
#define DIO24_DDR DDRD
#define DIO24_PWM NULL
#define DIO24_PWM nullptr
#define DIO25_PIN PING0
#define DIO25_RPORT PING
#define DIO25_WPORT PORTG
#define DIO25_DDR DDRG
#define DIO25_PWM NULL
#define DIO25_PWM nullptr
#define DIO26_PIN PING1
#define DIO26_RPORT PING
#define DIO26_WPORT PORTG
#define DIO26_DDR DDRG
#define DIO26_PWM NULL
#define DIO26_PWM nullptr
#define DIO27_PIN PING2
#define DIO27_RPORT PING
#define DIO27_WPORT PORTG
#define DIO27_DDR DDRG
#define DIO27_PWM NULL
#define DIO27_PWM nullptr
#define DIO28_PIN PING3
#define DIO28_RPORT PING
#define DIO28_WPORT PORTG
#define DIO28_DDR DDRG
#define DIO28_PWM NULL
#define DIO28_PWM nullptr
#define DIO29_PIN PING4
#define DIO29_RPORT PING
#define DIO29_WPORT PORTG
#define DIO29_DDR DDRG
#define DIO29_PWM NULL
#define DIO29_PWM nullptr
#define DIO30_PIN PINC0
#define DIO30_RPORT PINC
#define DIO30_WPORT PORTC
#define DIO30_DDR DDRC
#define DIO30_PWM NULL
#define DIO30_PWM nullptr
#define DIO31_PIN PINC1
#define DIO31_RPORT PINC
#define DIO31_WPORT PORTC
#define DIO31_DDR DDRC
#define DIO31_PWM NULL
#define DIO31_PWM nullptr
#define DIO32_PIN PINC2
#define DIO32_RPORT PINC
#define DIO32_WPORT PORTC
#define DIO32_DDR DDRC
#define DIO32_PWM NULL
#define DIO32_PWM nullptr
#define DIO33_PIN PINC3
#define DIO33_RPORT PINC
#define DIO33_WPORT PORTC
#define DIO33_DDR DDRC
#define DIO33_PWM NULL
#define DIO33_PWM nullptr
#define DIO34_PIN PINC4
#define DIO34_RPORT PINC
#define DIO34_WPORT PORTC
#define DIO34_DDR DDRC
#define DIO34_PWM NULL
#define DIO34_PWM nullptr
#define DIO35_PIN PINC5
#define DIO35_RPORT PINC
#define DIO35_WPORT PORTC
#define DIO35_DDR DDRC
#define DIO35_PWM NULL
#define DIO35_PWM nullptr
#define DIO36_PIN PINC6
#define DIO36_RPORT PINC
#define DIO36_WPORT PORTC
#define DIO36_DDR DDRC
#define DIO36_PWM NULL
#define DIO36_PWM nullptr
#define DIO37_PIN PINC7
#define DIO37_RPORT PINC
#define DIO37_WPORT PORTC
#define DIO37_DDR DDRC
#define DIO37_PWM NULL
#define DIO37_PWM nullptr
#define DIO38_PIN PINA0
#define DIO38_RPORT PINA
#define DIO38_WPORT PORTA
#define DIO38_DDR DDRA
#define DIO38_PWM NULL
#define DIO38_PWM nullptr
#define DIO39_PIN PINA1
#define DIO39_RPORT PINA
#define DIO39_WPORT PORTA
#define DIO39_DDR DDRA
#define DIO39_PWM NULL
#define DIO39_PWM nullptr
#define DIO40_PIN PINA2
#define DIO40_RPORT PINA
#define DIO40_WPORT PORTA
#define DIO40_DDR DDRA
#define DIO40_PWM NULL
#define DIO40_PWM nullptr
#define DIO41_PIN PINA3
#define DIO41_RPORT PINA
#define DIO41_WPORT PORTA
#define DIO41_DDR DDRA
#define DIO41_PWM NULL
#define DIO41_PWM nullptr
#define DIO42_PIN PINA4
#define DIO42_RPORT PINA
#define DIO42_WPORT PORTA
#define DIO42_DDR DDRA
#define DIO42_PWM NULL
#define DIO42_PWM nullptr
#define DIO43_PIN PINA5
#define DIO43_RPORT PINA
#define DIO43_WPORT PORTA
#define DIO43_DDR DDRA
#define DIO43_PWM NULL
#define DIO43_PWM nullptr
#define DIO44_PIN PINA6
#define DIO44_RPORT PINA
#define DIO44_WPORT PORTA
#define DIO44_DDR DDRA
#define DIO44_PWM NULL
#define DIO44_PWM nullptr
#define DIO45_PIN PINA7
#define DIO45_RPORT PINA
#define DIO45_WPORT PORTA
#define DIO45_DDR DDRA
#define DIO45_PWM NULL
#define DIO45_PWM nullptr
#define DIO46_PIN PINF0
#define DIO46_RPORT PINF
#define DIO46_WPORT PORTF
#define DIO46_DDR DDRF
#define DIO46_PWM NULL
#define DIO46_PWM nullptr
#define DIO47_PIN PINF1
#define DIO47_RPORT PINF
#define DIO47_WPORT PORTF
#define DIO47_DDR DDRF
#define DIO47_PWM NULL
#define DIO47_PWM nullptr
#define DIO48_PIN PINF2
#define DIO48_RPORT PINF
#define DIO48_WPORT PORTF
#define DIO48_DDR DDRF
#define DIO48_PWM NULL
#define DIO48_PWM nullptr
#define DIO49_PIN PINF3
#define DIO49_RPORT PINF
#define DIO49_WPORT PORTF
#define DIO49_DDR DDRF
#define DIO49_PWM NULL
#define DIO49_PWM nullptr
#define DIO50_PIN PINF4
#define DIO50_RPORT PINF
#define DIO50_WPORT PORTF
#define DIO50_DDR DDRF
#define DIO50_PWM NULL
#define DIO50_PWM nullptr
#define DIO51_PIN PINF5
#define DIO51_RPORT PINF
#define DIO51_WPORT PORTF
#define DIO51_DDR DDRF
#define DIO51_PWM NULL
#define DIO51_PWM nullptr
#define DIO52_PIN PINF6
#define DIO52_RPORT PINF
#define DIO52_WPORT PORTF
#define DIO52_DDR DDRF
#define DIO52_PWM NULL
#define DIO52_PWM nullptr
#define DIO53_PIN PINF7
#define DIO53_RPORT PINF
#define DIO53_WPORT PORTF
#define DIO53_DDR DDRF
#define DIO53_PWM NULL
#define DIO53_PWM nullptr
#undef PA0
#define PA0_PIN PINA0
#define PA0_RPORT PINA
#define PA0_WPORT PORTA
#define PA0_DDR DDRA
#define PA0_PWM NULL
#define PA0_PWM nullptr
#undef PA1
#define PA1_PIN PINA1
#define PA1_RPORT PINA
#define PA1_WPORT PORTA
#define PA1_DDR DDRA
#define PA1_PWM NULL
#define PA1_PWM nullptr
#undef PA2
#define PA2_PIN PINA2
#define PA2_RPORT PINA
#define PA2_WPORT PORTA
#define PA2_DDR DDRA
#define PA2_PWM NULL
#define PA2_PWM nullptr
#undef PA3
#define PA3_PIN PINA3
#define PA3_RPORT PINA
#define PA3_WPORT PORTA
#define PA3_DDR DDRA
#define PA3_PWM NULL
#define PA3_PWM nullptr
#undef PA4
#define PA4_PIN PINA4
#define PA4_RPORT PINA
#define PA4_WPORT PORTA
#define PA4_DDR DDRA
#define PA4_PWM NULL
#define PA4_PWM nullptr
#undef PA5
#define PA5_PIN PINA5
#define PA5_RPORT PINA
#define PA5_WPORT PORTA
#define PA5_DDR DDRA
#define PA5_PWM NULL
#define PA5_PWM nullptr
#undef PA6
#define PA6_PIN PINA6
#define PA6_RPORT PINA
#define PA6_WPORT PORTA
#define PA6_DDR DDRA
#define PA6_PWM NULL
#define PA6_PWM nullptr
#undef PA7
#define PA7_PIN PINA7
#define PA7_RPORT PINA
#define PA7_WPORT PORTA
#define PA7_DDR DDRA
#define PA7_PWM NULL
#define PA7_PWM nullptr
#undef PB0
#define PB0_PIN PINB0
#define PB0_RPORT PINB
#define PB0_WPORT PORTB
#define PB0_DDR DDRB
#define PB0_PWM NULL
#define PB0_PWM nullptr
#undef PB1
#define PB1_PIN PINB1
#define PB1_RPORT PINB
#define PB1_WPORT PORTB
#define PB1_DDR DDRB
#define PB1_PWM NULL
#define PB1_PWM nullptr
#undef PB2
#define PB2_PIN PINB2
#define PB2_RPORT PINB
#define PB2_WPORT PORTB
#define PB2_DDR DDRB
#define PB2_PWM NULL
#define PB2_PWM nullptr
#undef PB3
#define PB3_PIN PINB3
#define PB3_RPORT PINB
#define PB3_WPORT PORTB
#define PB3_DDR DDRB
#define PB3_PWM NULL
#define PB3_PWM nullptr
#undef PB4
#define PB4_PIN PINB4
#define PB4_RPORT PINB
@@ -467,13 +467,13 @@
#define PB5_RPORT PINB
#define PB5_WPORT PORTB
#define PB5_DDR DDRB
#define PB5_PWM NULL
#define PB5_PWM nullptr
#undef PB6
#define PB6_PIN PINB6
#define PB6_RPORT PINB
#define PB6_WPORT PORTB
#define PB6_DDR DDRB
#define PB6_PWM NULL
#define PB6_PWM nullptr
#undef PB7
#define PB7_PIN PINB7
#define PB7_RPORT PINB
@@ -486,117 +486,117 @@
#define PC0_RPORT PINC
#define PC0_WPORT PORTC
#define PC0_DDR DDRC
#define PC0_PWM NULL
#define PC0_PWM nullptr
#undef PC1
#define PC1_PIN PINC1
#define PC1_RPORT PINC
#define PC1_WPORT PORTC
#define PC1_DDR DDRC
#define PC1_PWM NULL
#define PC1_PWM nullptr
#undef PC2
#define PC2_PIN PINC2
#define PC2_RPORT PINC
#define PC2_WPORT PORTC
#define PC2_DDR DDRC
#define PC2_PWM NULL
#define PC2_PWM nullptr
#undef PC3
#define PC3_PIN PINC3
#define PC3_RPORT PINC
#define PC3_WPORT PORTC
#define PC3_DDR DDRC
#define PC3_PWM NULL
#define PC3_PWM nullptr
#undef PC4
#define PC4_PIN PINC4
#define PC4_RPORT PINC
#define PC4_WPORT PORTC
#define PC4_DDR DDRC
#define PC4_PWM NULL
#define PC4_PWM nullptr
#undef PC5
#define PC5_PIN PINC5
#define PC5_RPORT PINC
#define PC5_WPORT PORTC
#define PC5_DDR DDRC
#define PC5_PWM NULL
#define PC5_PWM nullptr
#undef PC6
#define PC6_PIN PINC6
#define PC6_RPORT PINC
#define PC6_WPORT PORTC
#define PC6_DDR DDRC
#define PC6_PWM NULL
#define PC6_PWM nullptr
#undef PC7
#define PC7_PIN PINC7
#define PC7_RPORT PINC
#define PC7_WPORT PORTC
#define PC7_DDR DDRC
#define PC7_PWM NULL
#define PC7_PWM nullptr
#undef PD0
#define PD0_PIN PIND0
#define PD0_RPORT PIND
#define PD0_WPORT PORTD
#define PD0_DDR DDRD
#define PD0_PWM NULL
#define PD0_PWM nullptr
#undef PD1
#define PD1_PIN PIND1
#define PD1_RPORT PIND
#define PD1_WPORT PORTD
#define PD1_DDR DDRD
#define PD1_PWM NULL
#define PD1_PWM nullptr
#undef PD2
#define PD2_PIN PIND2
#define PD2_RPORT PIND
#define PD2_WPORT PORTD
#define PD2_DDR DDRD
#define PD2_PWM NULL
#define PD2_PWM nullptr
#undef PD3
#define PD3_PIN PIND3
#define PD3_RPORT PIND
#define PD3_WPORT PORTD
#define PD3_DDR DDRD
#define PD3_PWM NULL
#define PD3_PWM nullptr
#undef PD4
#define PD4_PIN PIND4
#define PD4_RPORT PIND
#define PD4_WPORT PORTD
#define PD4_DDR DDRD
#define PD4_PWM NULL
#define PD4_PWM nullptr
#undef PD5
#define PD5_PIN PIND5
#define PD5_RPORT PIND
#define PD5_WPORT PORTD
#define PD5_DDR DDRD
#define PD5_PWM NULL
#define PD5_PWM nullptr
#undef PD6
#define PD6_PIN PIND6
#define PD6_RPORT PIND
#define PD6_WPORT PORTD
#define PD6_DDR DDRD
#define PD6_PWM NULL
#define PD6_PWM nullptr
#undef PD7
#define PD7_PIN PIND7
#define PD7_RPORT PIND
#define PD7_WPORT PORTD
#define PD7_DDR DDRD
#define PD7_PWM NULL
#define PD7_PWM nullptr
#undef PE0
#define PE0_PIN PINE0
#define PE0_RPORT PINE
#define PE0_WPORT PORTE
#define PE0_DDR DDRE
#define PE0_PWM NULL
#define PE0_PWM nullptr
#undef PE1
#define PE1_PIN PINE1
#define PE1_RPORT PINE
#define PE1_WPORT PORTE
#define PE1_DDR DDRE
#define PE1_PWM NULL
#define PE1_PWM nullptr
#undef PE2
#define PE2_PIN PINE2
#define PE2_RPORT PINE
#define PE2_WPORT PORTE
#define PE2_DDR DDRE
#define PE2_PWM NULL
#define PE2_PWM nullptr
#undef PE3
#define PE3_PIN PINE3
#define PE3_RPORT PINE
@@ -620,93 +620,93 @@
#define PE6_RPORT PINE
#define PE6_WPORT PORTE
#define PE6_DDR DDRE
#define PE6_PWM NULL
#define PE6_PWM nullptr
#undef PE7
#define PE7_PIN PINE7
#define PE7_RPORT PINE
#define PE7_WPORT PORTE
#define PE7_DDR DDRE
#define PE7_PWM NULL
#define PE7_PWM nullptr
#undef PF0
#define PF0_PIN PINF0
#define PF0_RPORT PINF
#define PF0_WPORT PORTF
#define PF0_DDR DDRF
#define PF0_PWM NULL
#define PF0_PWM nullptr
#undef PF1
#define PF1_PIN PINF1
#define PF1_RPORT PINF
#define PF1_WPORT PORTF
#define PF1_DDR DDRF
#define PF1_PWM NULL
#define PF1_PWM nullptr
#undef PF2
#define PF2_PIN PINF2
#define PF2_RPORT PINF
#define PF2_WPORT PORTF
#define PF2_DDR DDRF
#define PF2_PWM NULL
#define PF2_PWM nullptr
#undef PF3
#define PF3_PIN PINF3
#define PF3_RPORT PINF
#define PF3_WPORT PORTF
#define PF3_DDR DDRF
#define PF3_PWM NULL
#define PF3_PWM nullptr
#undef PF4
#define PF4_PIN PINF4
#define PF4_RPORT PINF
#define PF4_WPORT PORTF
#define PF4_DDR DDRF
#define PF4_PWM NULL
#define PF4_PWM nullptr
#undef PF5
#define PF5_PIN PINF5
#define PF5_RPORT PINF
#define PF5_WPORT PORTF
#define PF5_DDR DDRF
#define PF5_PWM NULL
#define PF5_PWM nullptr
#undef PF6
#define PF6_PIN PINF6
#define PF6_RPORT PINF
#define PF6_WPORT PORTF
#define PF6_DDR DDRF
#define PF6_PWM NULL
#define PF6_PWM nullptr
#undef PF7
#define PF7_PIN PINF7
#define PF7_RPORT PINF
#define PF7_WPORT PORTF
#define PF7_DDR DDRF
#define PF7_PWM NULL
#define PF7_PWM nullptr
#undef PG0
#define PG0_PIN PING0
#define PG0_RPORT PING
#define PG0_WPORT PORTG
#define PG0_DDR DDRG
#define PG0_PWM NULL
#define PG0_PWM nullptr
#undef PG1
#define PG1_PIN PING1
#define PG1_RPORT PING
#define PG1_WPORT PORTG
#define PG1_DDR DDRG
#define PG1_PWM NULL
#define PG1_PWM nullptr
#undef PG2
#define PG2_PIN PING2
#define PG2_RPORT PING
#define PG2_WPORT PORTG
#define PG2_DDR DDRG
#define PG2_PWM NULL
#define PG2_PWM nullptr
#undef PG3
#define PG3_PIN PING3
#define PG3_RPORT PING
#define PG3_WPORT PORTG
#define PG3_DDR DDRG
#define PG3_PWM NULL
#define PG3_PWM nullptr
#undef PG4
#define PG4_PIN PING4
#define PG4_RPORT PING
#define PG4_WPORT PORTG
#define PG4_DDR DDRG
#define PG4_PWM NULL
#define PG4_PWM nullptr
#undef PG5
#define PG5_PIN PING5
#define PG5_RPORT PING
@@ -1,9 +1,9 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
@@ -28,7 +28,7 @@
* Port: B0 B1 B2 B3 B4 B5 C0 C1 C2 C3 C4 C5 C6 C7 D0 D1 D2 D3 D4 D5 D6 D7
*/
#include "fastio_AVR.h"
#include "../fastio.h"
#define DEBUG_LED AIO5
@@ -60,19 +60,19 @@
#define DIO0_RPORT PIND
#define DIO0_WPORT PORTD
#define DIO0_DDR DDRD
#define DIO0_PWM NULL
#define DIO0_PWM nullptr
#define DIO1_PIN PIND1
#define DIO1_RPORT PIND
#define DIO1_WPORT PORTD
#define DIO1_DDR DDRD
#define DIO1_PWM NULL
#define DIO1_PWM nullptr
#define DIO2_PIN PIND2
#define DIO2_RPORT PIND
#define DIO2_WPORT PORTD
#define DIO2_DDR DDRD
#define DIO2_PWM NULL
#define DIO2_PWM nullptr
#define DIO3_PIN PIND3
#define DIO3_RPORT PIND
@@ -84,7 +84,7 @@
#define DIO4_RPORT PIND
#define DIO4_WPORT PORTD
#define DIO4_DDR DDRD
#define DIO4_PWM NULL
#define DIO4_PWM nullptr
#define DIO5_PIN PIND5
#define DIO5_RPORT PIND
@@ -102,25 +102,25 @@
#define DIO7_RPORT PIND
#define DIO7_WPORT PORTD
#define DIO7_DDR DDRD
#define DIO7_PWM NULL
#define DIO7_PWM nullptr
#define DIO8_PIN PINB0
#define DIO8_RPORT PINB
#define DIO8_WPORT PORTB
#define DIO8_DDR DDRB
#define DIO8_PWM NULL
#define DIO8_PWM nullptr
#define DIO9_PIN PINB1
#define DIO9_RPORT PINB
#define DIO9_WPORT PORTB
#define DIO9_DDR DDRB
#define DIO9_PWM NULL
#define DIO9_PWM nullptr
#define DIO10_PIN PINB2
#define DIO10_RPORT PINB
#define DIO10_WPORT PORTB
#define DIO10_DDR DDRB
#define DIO10_PWM NULL
#define DIO10_PWM nullptr
#define DIO11_PIN PINB3
#define DIO11_RPORT PINB
@@ -132,82 +132,82 @@
#define DIO12_RPORT PINB
#define DIO12_WPORT PORTB
#define DIO12_DDR DDRB
#define DIO12_PWM NULL
#define DIO12_PWM nullptr
#define DIO13_PIN PINB5
#define DIO13_RPORT PINB
#define DIO13_WPORT PORTB
#define DIO13_DDR DDRB
#define DIO13_PWM NULL
#define DIO13_PWM nullptr
#define DIO14_PIN PINC0
#define DIO14_RPORT PINC
#define DIO14_WPORT PORTC
#define DIO14_DDR DDRC
#define DIO14_PWM NULL
#define DIO14_PWM nullptr
#define DIO15_PIN PINC1
#define DIO15_RPORT PINC
#define DIO15_WPORT PORTC
#define DIO15_DDR DDRC
#define DIO15_PWM NULL
#define DIO15_PWM nullptr
#define DIO16_PIN PINC2
#define DIO16_RPORT PINC
#define DIO16_WPORT PORTC
#define DIO16_DDR DDRC
#define DIO16_PWM NULL
#define DIO16_PWM nullptr
#define DIO17_PIN PINC3
#define DIO17_RPORT PINC
#define DIO17_WPORT PORTC
#define DIO17_DDR DDRC
#define DIO17_PWM NULL
#define DIO17_PWM nullptr
#define DIO18_PIN PINC4
#define DIO18_RPORT PINC
#define DIO18_WPORT PORTC
#define DIO18_DDR DDRC
#define DIO18_PWM NULL
#define DIO18_PWM nullptr
#define DIO19_PIN PINC5
#define DIO19_RPORT PINC
#define DIO19_WPORT PORTC
#define DIO19_DDR DDRC
#define DIO19_PWM NULL
#define DIO19_PWM nullptr
#define DIO20_PIN PINC6
#define DIO20_RPORT PINC
#define DIO20_WPORT PORTC
#define DIO20_DDR DDRC
#define DIO20_PWM NULL
#define DIO20_PWM nullptr
#define DIO21_PIN PINC7
#define DIO21_RPORT PINC
#define DIO21_WPORT PORTC
#define DIO21_DDR DDRC
#define DIO21_PWM NULL
#define DIO21_PWM nullptr
#undef PB0
#define PB0_PIN PINB0
#define PB0_RPORT PINB
#define PB0_WPORT PORTB
#define PB0_DDR DDRB
#define PB0_PWM NULL
#define PB0_PWM nullptr
#undef PB1
#define PB1_PIN PINB1
#define PB1_RPORT PINB
#define PB1_WPORT PORTB
#define PB1_DDR DDRB
#define PB1_PWM NULL
#define PB1_PWM nullptr
#undef PB2
#define PB2_PIN PINB2
#define PB2_RPORT PINB
#define PB2_WPORT PORTB
#define PB2_DDR DDRB
#define PB2_PWM NULL
#define PB2_PWM nullptr
#undef PB3
#define PB3_PIN PINB3
@@ -221,105 +221,105 @@
#define PB4_RPORT PINB
#define PB4_WPORT PORTB
#define PB4_DDR DDRB
#define PB4_PWM NULL
#define PB4_PWM nullptr
#undef PB5
#define PB5_PIN PINB5
#define PB5_RPORT PINB
#define PB5_WPORT PORTB
#define PB5_DDR DDRB
#define PB5_PWM NULL
#define PB5_PWM nullptr
#undef PB6
#define PB6_PIN PINB6
#define PB6_RPORT PINB
#define PB6_WPORT PORTB
#define PB6_DDR DDRB
#define PB6_PWM NULL
#define PB6_PWM nullptr
#undef PB7
#define PB7_PIN PINB7
#define PB7_RPORT PINB
#define PB7_WPORT PORTB
#define PB7_DDR DDRB
#define PB7_PWM NULL
#define PB7_PWM nullptr
#undef PC0
#define PC0_PIN PINC0
#define PC0_RPORT PINC
#define PC0_WPORT PORTC
#define PC0_DDR DDRC
#define PC0_PWM NULL
#define PC0_PWM nullptr
#undef PC1
#define PC1_PIN PINC1
#define PC1_RPORT PINC
#define PC1_WPORT PORTC
#define PC1_DDR DDRC
#define PC1_PWM NULL
#define PC1_PWM nullptr
#undef PC2
#define PC2_PIN PINC2
#define PC2_RPORT PINC
#define PC2_WPORT PORTC
#define PC2_DDR DDRC
#define PC2_PWM NULL
#define PC2_PWM nullptr
#undef PC3
#define PC3_PIN PINC3
#define PC3_RPORT PINC
#define PC3_WPORT PORTC
#define PC3_DDR DDRC
#define PC3_PWM NULL
#define PC3_PWM nullptr
#undef PC4
#define PC4_PIN PINC4
#define PC4_RPORT PINC
#define PC4_WPORT PORTC
#define PC4_DDR DDRC
#define PC4_PWM NULL
#define PC4_PWM nullptr
#undef PC5
#define PC5_PIN PINC5
#define PC5_RPORT PINC
#define PC5_WPORT PORTC
#define PC5_DDR DDRC
#define PC5_PWM NULL
#define PC5_PWM nullptr
#undef PC6
#define PC6_PIN PINC6
#define PC6_RPORT PINC
#define PC6_WPORT PORTC
#define PC6_DDR DDRC
#define PC6_PWM NULL
#define PC6_PWM nullptr
#undef PC7
#define PC7_PIN PINC7
#define PC7_RPORT PINC
#define PC7_WPORT PORTC
#define PC7_DDR DDRC
#define PC7_PWM NULL
#define PC7_PWM nullptr
#undef PD0
#define PD0_PIN PIND0
#define PD0_RPORT PIND
#define PD0_WPORT PORTD
#define PD0_DDR DDRD
#define PD0_PWM NULL
#define PD0_PWM nullptr
#undef PD1
#define PD1_PIN PIND1
#define PD1_RPORT PIND
#define PD1_WPORT PORTD
#define PD1_DDR DDRD
#define PD1_PWM NULL
#define PD1_PWM nullptr
#undef PD2
#define PD2_PIN PIND2
#define PD2_RPORT PIND
#define PD2_WPORT PORTD
#define PD2_DDR DDRD
#define PD2_PWM NULL
#define PD2_PWM nullptr
#undef PD3
#define PD3_PIN PIND3
@@ -333,7 +333,7 @@
#define PD4_RPORT PIND
#define PD4_WPORT PORTD
#define PD4_DDR DDRD
#define PD4_PWM NULL
#define PD4_PWM nullptr
#undef PD5
#define PD5_PIN PIND5
@@ -354,4 +354,4 @@
#define PD7_RPORT PIND
#define PD7_WPORT PORTD
#define PD7_DDR DDRD
#define PD7_PWM NULL
#define PD7_PWM nullptr
@@ -1,9 +1,9 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
@@ -54,7 +54,7 @@
* +--------+
*/
#include "fastio_AVR.h"
#include "../fastio.h"
#define DEBUG_LED DIO0
@@ -91,462 +91,462 @@
#define DIO0_RPORT PINB
#define DIO0_WPORT PORTB
#define DIO0_DDR DDRB
#define DIO0_PWM NULL
#define DIO0_PWM nullptr
#define DIO1_PIN PINB1
#define DIO1_RPORT PINB
#define DIO1_WPORT PORTB
#define DIO1_DDR DDRB
#define DIO1_PWM NULL
#define DIO1_PWM nullptr
#define DIO2_PIN PINB2
#define DIO2_RPORT PINB
#define DIO2_WPORT PORTB
#define DIO2_DDR DDRB
#define DIO2_PWM NULL
#define DIO2_PWM nullptr
#define DIO3_PIN PINB3
#define DIO3_RPORT PINB
#define DIO3_WPORT PORTB
#define DIO3_DDR DDRB
#define DIO3_PWM OCR0A
#define DIO3_PWM &OCR0A
#define DIO4_PIN PINB4
#define DIO4_RPORT PINB
#define DIO4_WPORT PORTB
#define DIO4_DDR DDRB
#define DIO4_PWM OCR0B
#define DIO4_PWM &OCR0B
#define DIO5_PIN PINB5
#define DIO5_RPORT PINB
#define DIO5_WPORT PORTB
#define DIO5_DDR DDRB
#define DIO5_PWM NULL
#define DIO5_PWM nullptr
#define DIO6_PIN PINB6
#define DIO6_RPORT PINB
#define DIO6_WPORT PORTB
#define DIO6_DDR DDRB
#define DIO6_PWM NULL
#define DIO6_PWM nullptr
#define DIO7_PIN PINB7
#define DIO7_RPORT PINB
#define DIO7_WPORT PORTB
#define DIO7_DDR DDRB
#define DIO7_PWM NULL
#define DIO7_PWM nullptr
#define DIO8_PIN PIND0
#define DIO8_RPORT PIND
#define DIO8_WPORT PORTD
#define DIO8_DDR DDRD
#define DIO8_PWM NULL
#define DIO8_PWM nullptr
#define DIO9_PIN PIND1
#define DIO9_RPORT PIND
#define DIO9_WPORT PORTD
#define DIO9_DDR DDRD
#define DIO9_PWM NULL
#define DIO9_PWM nullptr
#define DIO10_PIN PIND2
#define DIO10_RPORT PIND
#define DIO10_WPORT PORTD
#define DIO10_DDR DDRD
#define DIO10_PWM NULL
#define DIO10_PWM nullptr
#define DIO11_PIN PIND3
#define DIO11_RPORT PIND
#define DIO11_WPORT PORTD
#define DIO11_DDR DDRD
#define DIO11_PWM NULL
#define DIO11_PWM nullptr
#define DIO12_PIN PIND4
#define DIO12_RPORT PIND
#define DIO12_WPORT PORTD
#define DIO12_DDR DDRD
#define DIO12_PWM OCR1B
#define DIO12_PWM &OCR1B
#define DIO13_PIN PIND5
#define DIO13_RPORT PIND
#define DIO13_WPORT PORTD
#define DIO13_DDR DDRD
#define DIO13_PWM OCR1A
#define DIO13_PWM &OCR1A
#define DIO14_PIN PIND6
#define DIO14_RPORT PIND
#define DIO14_WPORT PORTD
#define DIO14_DDR DDRD
#define DIO14_PWM OCR2B
#define DIO14_PWM &OCR2B
#define DIO15_PIN PIND7
#define DIO15_RPORT PIND
#define DIO15_WPORT PORTD
#define DIO15_DDR DDRD
#define DIO15_PWM OCR2A
#define DIO15_PWM &OCR2A
#define DIO16_PIN PINC0
#define DIO16_RPORT PINC
#define DIO16_WPORT PORTC
#define DIO16_DDR DDRC
#define DIO16_PWM NULL
#define DIO16_PWM nullptr
#define DIO17_PIN PINC1
#define DIO17_RPORT PINC
#define DIO17_WPORT PORTC
#define DIO17_DDR DDRC
#define DIO17_PWM NULL
#define DIO17_PWM nullptr
#define DIO18_PIN PINC2
#define DIO18_RPORT PINC
#define DIO18_WPORT PORTC
#define DIO18_DDR DDRC
#define DIO18_PWM NULL
#define DIO18_PWM nullptr
#define DIO19_PIN PINC3
#define DIO19_RPORT PINC
#define DIO19_WPORT PORTC
#define DIO19_DDR DDRC
#define DIO19_PWM NULL
#define DIO19_PWM nullptr
#define DIO20_PIN PINC4
#define DIO20_RPORT PINC
#define DIO20_WPORT PORTC
#define DIO20_DDR DDRC
#define DIO20_PWM NULL
#define DIO20_PWM nullptr
#define DIO21_PIN PINC5
#define DIO21_RPORT PINC
#define DIO21_WPORT PORTC
#define DIO21_DDR DDRC
#define DIO21_PWM NULL
#define DIO21_PWM nullptr
#define DIO22_PIN PINC6
#define DIO22_RPORT PINC
#define DIO22_WPORT PORTC
#define DIO22_DDR DDRC
#define DIO22_PWM NULL
#define DIO22_PWM nullptr
#define DIO23_PIN PINC7
#define DIO23_RPORT PINC
#define DIO23_WPORT PORTC
#define DIO23_DDR DDRC
#define DIO23_PWM NULL
#define DIO23_PWM nullptr
#define DIO24_PIN PINA7
#define DIO24_RPORT PINA
#define DIO24_WPORT PORTA
#define DIO24_DDR DDRA
#define DIO24_PWM NULL
#define DIO24_PWM nullptr
#define DIO25_PIN PINA6
#define DIO25_RPORT PINA
#define DIO25_WPORT PORTA
#define DIO25_DDR DDRA
#define DIO25_PWM NULL
#define DIO25_PWM nullptr
#define DIO26_PIN PINA5
#define DIO26_RPORT PINA
#define DIO26_WPORT PORTA
#define DIO26_DDR DDRA
#define DIO26_PWM NULL
#define DIO26_PWM nullptr
#define DIO27_PIN PINA4
#define DIO27_RPORT PINA
#define DIO27_WPORT PORTA
#define DIO27_DDR DDRA
#define DIO27_PWM NULL
#define DIO27_PWM nullptr
#define DIO28_PIN PINA3
#define DIO28_RPORT PINA
#define DIO28_WPORT PORTA
#define DIO28_DDR DDRA
#define DIO28_PWM NULL
#define DIO28_PWM nullptr
#define DIO29_PIN PINA2
#define DIO29_RPORT PINA
#define DIO29_WPORT PORTA
#define DIO29_DDR DDRA
#define DIO29_PWM NULL
#define DIO29_PWM nullptr
#define DIO30_PIN PINA1
#define DIO30_RPORT PINA
#define DIO30_WPORT PORTA
#define DIO30_DDR DDRA
#define DIO30_PWM NULL
#define DIO30_PWM nullptr
#define DIO31_PIN PINA0
#define DIO31_RPORT PINA
#define DIO31_WPORT PORTA
#define DIO31_DDR DDRA
#define DIO31_PWM NULL
#define DIO31_PWM nullptr
#define AIO0_PIN PINA0
#define AIO0_RPORT PINA
#define AIO0_WPORT PORTA
#define AIO0_DDR DDRA
#define AIO0_PWM NULL
#define AIO0_PWM nullptr
#define AIO1_PIN PINA1
#define AIO1_RPORT PINA
#define AIO1_WPORT PORTA
#define AIO1_DDR DDRA
#define AIO1_PWM NULL
#define AIO1_PWM nullptr
#define AIO2_PIN PINA2
#define AIO2_RPORT PINA
#define AIO2_WPORT PORTA
#define AIO2_DDR DDRA
#define AIO2_PWM NULL
#define AIO2_PWM nullptr
#define AIO3_PIN PINA3
#define AIO3_RPORT PINA
#define AIO3_WPORT PORTA
#define AIO3_DDR DDRA
#define AIO3_PWM NULL
#define AIO3_PWM nullptr
#define AIO4_PIN PINA4
#define AIO4_RPORT PINA
#define AIO4_WPORT PORTA
#define AIO4_DDR DDRA
#define AIO4_PWM NULL
#define AIO4_PWM nullptr
#define AIO5_PIN PINA5
#define AIO5_RPORT PINA
#define AIO5_WPORT PORTA
#define AIO5_DDR DDRA
#define AIO5_PWM NULL
#define AIO5_PWM nullptr
#define AIO6_PIN PINA6
#define AIO6_RPORT PINA
#define AIO6_WPORT PORTA
#define AIO6_DDR DDRA
#define AIO6_PWM NULL
#define AIO6_PWM nullptr
#define AIO7_PIN PINA7
#define AIO7_RPORT PINA
#define AIO7_WPORT PORTA
#define AIO7_DDR DDRA
#define AIO7_PWM NULL
#define AIO7_PWM nullptr
#undef PA0
#define PA0_PIN PINA0
#define PA0_RPORT PINA
#define PA0_WPORT PORTA
#define PA0_DDR DDRA
#define PA0_PWM NULL
#define PA0_PWM nullptr
#undef PA1
#define PA1_PIN PINA1
#define PA1_RPORT PINA
#define PA1_WPORT PORTA
#define PA1_DDR DDRA
#define PA1_PWM NULL
#define PA1_PWM nullptr
#undef PA2
#define PA2_PIN PINA2
#define PA2_RPORT PINA
#define PA2_WPORT PORTA
#define PA2_DDR DDRA
#define PA2_PWM NULL
#define PA2_PWM nullptr
#undef PA3
#define PA3_PIN PINA3
#define PA3_RPORT PINA
#define PA3_WPORT PORTA
#define PA3_DDR DDRA
#define PA3_PWM NULL
#define PA3_PWM nullptr
#undef PA4
#define PA4_PIN PINA4
#define PA4_RPORT PINA
#define PA4_WPORT PORTA
#define PA4_DDR DDRA
#define PA4_PWM NULL
#define PA4_PWM nullptr
#undef PA5
#define PA5_PIN PINA5
#define PA5_RPORT PINA
#define PA5_WPORT PORTA
#define PA5_DDR DDRA
#define PA5_PWM NULL
#define PA5_PWM nullptr
#undef PA6
#define PA6_PIN PINA6
#define PA6_RPORT PINA
#define PA6_WPORT PORTA
#define PA6_DDR DDRA
#define PA6_PWM NULL
#define PA6_PWM nullptr
#undef PA7
#define PA7_PIN PINA7
#define PA7_RPORT PINA
#define PA7_WPORT PORTA
#define PA7_DDR DDRA
#define PA7_PWM NULL
#define PA7_PWM nullptr
#undef PB0
#define PB0_PIN PINB0
#define PB0_RPORT PINB
#define PB0_WPORT PORTB
#define PB0_DDR DDRB
#define PB0_PWM NULL
#define PB0_PWM nullptr
#undef PB1
#define PB1_PIN PINB1
#define PB1_RPORT PINB
#define PB1_WPORT PORTB
#define PB1_DDR DDRB
#define PB1_PWM NULL
#define PB1_PWM nullptr
#undef PB2
#define PB2_PIN PINB2
#define PB2_RPORT PINB
#define PB2_WPORT PORTB
#define PB2_DDR DDRB
#define PB2_PWM NULL
#define PB2_PWM nullptr
#undef PB3
#define PB3_PIN PINB3
#define PB3_RPORT PINB
#define PB3_WPORT PORTB
#define PB3_DDR DDRB
#define PB3_PWM OCR0A
#define PB3_PWM &OCR0A
#undef PB4
#define PB4_PIN PINB4
#define PB4_RPORT PINB
#define PB4_WPORT PORTB
#define PB4_DDR DDRB
#define PB4_PWM OCR0B
#define PB4_PWM &OCR0B
#undef PB5
#define PB5_PIN PINB5
#define PB5_RPORT PINB
#define PB5_WPORT PORTB
#define PB5_DDR DDRB
#define PB5_PWM NULL
#define PB5_PWM nullptr
#undef PB6
#define PB6_PIN PINB6
#define PB6_RPORT PINB
#define PB6_WPORT PORTB
#define PB6_DDR DDRB
#define PB6_PWM NULL
#define PB6_PWM nullptr
#undef PB7
#define PB7_PIN PINB7
#define PB7_RPORT PINB
#define PB7_WPORT PORTB
#define PB7_DDR DDRB
#define PB7_PWM NULL
#define PB7_PWM nullptr
#undef PC0
#define PC0_PIN PINC0
#define PC0_RPORT PINC
#define PC0_WPORT PORTC
#define PC0_DDR DDRC
#define PC0_PWM NULL
#define PC0_PWM nullptr
#undef PC1
#define PC1_PIN PINC1
#define PC1_RPORT PINC
#define PC1_WPORT PORTC
#define PC1_DDR DDRC
#define PC1_PWM NULL
#define PC1_PWM nullptr
#undef PC2
#define PC2_PIN PINC2
#define PC2_RPORT PINC
#define PC2_WPORT PORTC
#define PC2_DDR DDRC
#define PC2_PWM NULL
#define PC2_PWM nullptr
#undef PC3
#define PC3_PIN PINC3
#define PC3_RPORT PINC
#define PC3_WPORT PORTC
#define PC3_DDR DDRC
#define PC3_PWM NULL
#define PC3_PWM nullptr
#undef PC4
#define PC4_PIN PINC4
#define PC4_RPORT PINC
#define PC4_WPORT PORTC
#define PC4_DDR DDRC
#define PC4_PWM NULL
#define PC4_PWM nullptr
#undef PC5
#define PC5_PIN PINC5
#define PC5_RPORT PINC
#define PC5_WPORT PORTC
#define PC5_DDR DDRC
#define PC5_PWM NULL
#define PC5_PWM nullptr
#undef PC6
#define PC6_PIN PINC6
#define PC6_RPORT PINC
#define PC6_WPORT PORTC
#define PC6_DDR DDRC
#define PC6_PWM NULL
#define PC6_PWM nullptr
#undef PC7
#define PC7_PIN PINC7
#define PC7_RPORT PINC
#define PC7_WPORT PORTC
#define PC7_DDR DDRC
#define PC7_PWM NULL
#define PC7_PWM nullptr
#undef PD0
#define PD0_PIN PIND0
#define PD0_RPORT PIND
#define PD0_WPORT PORTD
#define PD0_DDR DDRD
#define PD0_PWM NULL
#define PD0_PWM nullptr
#undef PD1
#define PD1_PIN PIND1
#define PD1_RPORT PIND
#define PD1_WPORT PORTD
#define PD1_DDR DDRD
#define PD1_PWM NULL
#define PD1_PWM nullptr
#undef PD2
#define PD2_PIN PIND2
#define PD2_RPORT PIND
#define PD2_WPORT PORTD
#define PD2_DDR DDRD
#define PD2_PWM NULL
#define PD2_PWM nullptr
#undef PD3
#define PD3_PIN PIND3
#define PD3_RPORT PIND
#define PD3_WPORT PORTD
#define PD3_DDR DDRD
#define PD3_PWM NULL
#define PD3_PWM nullptr
#undef PD4
#define PD4_PIN PIND4
#define PD4_RPORT PIND
#define PD4_WPORT PORTD
#define PD4_DDR DDRD
#define PD4_PWM NULL
#define PD4_PWM nullptr
#undef PD5
#define PD5_PIN PIND5
#define PD5_RPORT PIND
#define PD5_WPORT PORTD
#define PD5_DDR DDRD
#define PD5_PWM NULL
#define PD5_PWM nullptr
#undef PD6
#define PD6_PIN PIND6
#define PD6_RPORT PIND
#define PD6_WPORT PORTD
#define PD6_DDR DDRD
#define PD6_PWM OCR2B
#define PD6_PWM &OCR2B
#undef PD7
#define PD7_PIN PIND7
#define PD7_RPORT PIND
#define PD7_WPORT PORTD
#define PD7_DDR DDRD
#define PD7_PWM OCR2A
#define PD7_PWM &OCR2A
@@ -1,9 +1,9 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
@@ -29,7 +29,7 @@
* The logical pins 46 and 47 are not supported by Teensyduino, but are supported below as E2 and E3
*/
#include "fastio_AVR.h"
#include "../fastio.h"
// change for your board
#define DEBUG_LED DIO31 /* led D5 red */
@@ -45,325 +45,325 @@
#define DIO0_PIN PIND0
#define DIO0_RPORT PIND
#define DIO0_WPORT PORTD
#define DIO0_PWM NULL
#define DIO0_PWM 0
#define DIO0_DDR DDRD
#define DIO1_PIN PIND1
#define DIO1_RPORT PIND
#define DIO1_WPORT PORTD
#define DIO1_PWM NULL
#define DIO1_PWM 0
#define DIO1_DDR DDRD
#define DIO2_PIN PIND2
#define DIO2_RPORT PIND
#define DIO2_WPORT PORTD
#define DIO2_PWM NULL
#define DIO2_PWM 0
#define DIO2_DDR DDRD
#define DIO3_PIN PIND3
#define DIO3_RPORT PIND
#define DIO3_WPORT PORTD
#define DIO3_PWM NULL
#define DIO3_PWM 0
#define DIO3_DDR DDRD
#define DIO4_PIN PIND4
#define DIO4_RPORT PIND
#define DIO4_WPORT PORTD
#define DIO4_PWM NULL
#define DIO4_PWM 0
#define DIO4_DDR DDRD
#define DIO5_PIN PIND5
#define DIO5_RPORT PIND
#define DIO5_WPORT PORTD
#define DIO5_PWM NULL
#define DIO5_PWM 0
#define DIO5_DDR DDRD
#define DIO6_PIN PIND6
#define DIO6_RPORT PIND
#define DIO6_WPORT PORTD
#define DIO6_PWM NULL
#define DIO6_PWM 0
#define DIO6_DDR DDRD
#define DIO7_PIN PIND7
#define DIO7_RPORT PIND
#define DIO7_WPORT PORTD
#define DIO7_PWM NULL
#define DIO7_PWM 0
#define DIO7_DDR DDRD
#define DIO8_PIN PINE0
#define DIO8_RPORT PINE
#define DIO8_WPORT PORTE
#define DIO8_PWM NULL
#define DIO8_PWM 0
#define DIO8_DDR DDRE
#define DIO9_PIN PINE1
#define DIO9_RPORT PINE
#define DIO9_WPORT PORTE
#define DIO9_PWM NULL
#define DIO9_PWM 0
#define DIO9_DDR DDRE
#define DIO10_PIN PINC0
#define DIO10_RPORT PINC
#define DIO10_WPORT PORTC
#define DIO10_PWM NULL
#define DIO10_PWM 0
#define DIO10_DDR DDRC
#define DIO11_PIN PINC1
#define DIO11_RPORT PINC
#define DIO11_WPORT PORTC
#define DIO11_PWM NULL
#define DIO11_PWM 0
#define DIO11_DDR DDRC
#define DIO12_PIN PINC2
#define DIO12_RPORT PINC
#define DIO12_WPORT PORTC
#define DIO12_PWM NULL
#define DIO12_PWM 0
#define DIO12_DDR DDRC
#define DIO13_PIN PINC3
#define DIO13_RPORT PINC
#define DIO13_WPORT PORTC
#define DIO13_PWM NULL
#define DIO13_PWM 0
#define DIO13_DDR DDRC
#define DIO14_PIN PINC4
#define DIO14_RPORT PINC
#define DIO14_WPORT PORTC
#define DIO14_PWM NULL
#define DIO14_PWM 0 // OC3C
#define DIO14_DDR DDRC
#define DIO15_PIN PINC5
#define DIO15_RPORT PINC
#define DIO15_WPORT PORTC
#define DIO15_PWM NULL
#define DIO15_PWM 0 // OC3B
#define DIO15_DDR DDRC
#define DIO16_PIN PINC6
#define DIO16_RPORT PINC
#define DIO16_WPORT PORTC
#define DIO16_PWM NULL
#define DIO16_PWM 0 // OC3A
#define DIO16_DDR DDRC
#define DIO17_PIN PINC7
#define DIO17_RPORT PINC
#define DIO17_WPORT PORTC
#define DIO17_PWM NULL
#define DIO17_PWM 0
#define DIO17_DDR DDRC
#define DIO18_PIN PINE6
#define DIO18_RPORT PINE
#define DIO18_WPORT PORTE
#define DIO18_PWM NULL
#define DIO18_PWM 0
#define DIO18_DDR DDRE
#define DIO19_PIN PINE7
#define DIO19_RPORT PINE
#define DIO19_WPORT PORTE
#define DIO19_PWM NULL
#define DIO19_PWM 0
#define DIO19_DDR DDRE
#define DIO20_PIN PINB0
#define DIO20_RPORT PINB
#define DIO20_WPORT PORTB
#define DIO20_PWM NULL
#define DIO20_PWM 0
#define DIO20_DDR DDRB
#define DIO21_PIN PINB1
#define DIO21_RPORT PINB
#define DIO21_WPORT PORTB
#define DIO21_PWM NULL
#define DIO21_PWM 0
#define DIO21_DDR DDRB
#define DIO22_PIN PINB2
#define DIO22_RPORT PINB
#define DIO22_WPORT PORTB
#define DIO22_PWM NULL
#define DIO22_PWM 0
#define DIO22_DDR DDRB
#define DIO23_PIN PINB3
#define DIO23_RPORT PINB
#define DIO23_WPORT PORTB
#define DIO23_PWM NULL
#define DIO23_PWM 0
#define DIO23_DDR DDRB
#define DIO24_PIN PINB4
#define DIO24_RPORT PINB
#define DIO24_WPORT PORTB
#define DIO24_PWM NULL
#define DIO24_PWM 0 // OC2A
#define DIO24_DDR DDRB
#define DIO25_PIN PINB5
#define DIO25_RPORT PINB
#define DIO25_WPORT PORTB
#define DIO25_PWM NULL
#define DIO25_PWM 0 // OC1A
#define DIO25_DDR DDRB
#define DIO26_PIN PINB6
#define DIO26_RPORT PINB
#define DIO26_WPORT PORTB
#define DIO26_PWM NULL
#define DIO26_PWM 0 // OC1B
#define DIO26_DDR DDRB
#define DIO27_PIN PINB7
#define DIO27_RPORT PINB
#define DIO27_WPORT PORTB
#define DIO27_PWM NULL
#define DIO27_PWM 0 // OC1C
#define DIO27_DDR DDRB
#define DIO28_PIN PINA0
#define DIO28_RPORT PINA
#define DIO28_WPORT PORTA
#define DIO28_PWM NULL
#define DIO28_PWM 0
#define DIO28_DDR DDRA
#define DIO29_PIN PINA1
#define DIO29_RPORT PINA
#define DIO29_WPORT PORTA
#define DIO29_PWM NULL
#define DIO29_PWM 0
#define DIO29_DDR DDRA
#define DIO30_PIN PINA2
#define DIO30_RPORT PINA
#define DIO30_WPORT PORTA
#define DIO30_PWM NULL
#define DIO30_PWM 0
#define DIO30_DDR DDRA
#define DIO31_PIN PINA3
#define DIO31_RPORT PINA
#define DIO31_WPORT PORTA
#define DIO31_PWM NULL
#define DIO31_PWM 0
#define DIO31_DDR DDRA
#define DIO32_PIN PINA4
#define DIO32_RPORT PINA
#define DIO32_WPORT PORTA
#define DIO32_PWM NULL
#define DIO32_PWM 0
#define DIO32_DDR DDRA
#define DIO33_PIN PINA5
#define DIO33_RPORT PINA
#define DIO33_WPORT PORTA
#define DIO33_PWM NULL
#define DIO33_PWM 0
#define DIO33_DDR DDRA
#define DIO34_PIN PINA6
#define DIO34_RPORT PINA
#define DIO34_WPORT PORTA
#define DIO34_PWM NULL
#define DIO34_PWM 0
#define DIO34_DDR DDRA
#define DIO35_PIN PINA7
#define DIO35_RPORT PINA
#define DIO35_WPORT PORTA
#define DIO35_PWM NULL
#define DIO35_PWM 0
#define DIO35_DDR DDRA
#define DIO36_PIN PINE4
#define DIO36_RPORT PINE
#define DIO36_WPORT PORTE
#define DIO36_PWM NULL
#define DIO36_PWM 0
#define DIO36_DDR DDRE
#define DIO37_PIN PINE5
#define DIO37_RPORT PINE
#define DIO37_WPORT PORTE
#define DIO37_PWM NULL
#define DIO37_PWM 0
#define DIO37_DDR DDRE
#define DIO38_PIN PINF0
#define DIO38_RPORT PINF
#define DIO38_WPORT PORTF
#define DIO38_PWM NULL
#define DIO38_PWM 0
#define DIO38_DDR DDRF
#define DIO39_PIN PINF1
#define DIO39_RPORT PINF
#define DIO39_WPORT PORTF
#define DIO39_PWM NULL
#define DIO39_PWM 0
#define DIO39_DDR DDRF
#define DIO40_PIN PINF2
#define DIO40_RPORT PINF
#define DIO40_WPORT PORTF
#define DIO40_PWM NULL
#define DIO40_PWM 0
#define DIO40_DDR DDRF
#define DIO41_PIN PINF3
#define DIO41_RPORT PINF
#define DIO41_WPORT PORTF
#define DIO41_PWM NULL
#define DIO41_PWM 0
#define DIO41_DDR DDRF
#define DIO42_PIN PINF4
#define DIO42_RPORT PINF
#define DIO42_WPORT PORTF
#define DIO42_PWM NULL
#define DIO42_PWM 0
#define DIO42_DDR DDRF
#define DIO43_PIN PINF5
#define DIO43_RPORT PINF
#define DIO43_WPORT PORTF
#define DIO43_PWM NULL
#define DIO43_PWM 0
#define DIO43_DDR DDRF
#define DIO44_PIN PINF6
#define DIO44_RPORT PINF
#define DIO44_WPORT PORTF
#define DIO44_PWM NULL
#define DIO44_PWM 0
#define DIO44_DDR DDRF
#define DIO45_PIN PINF7
#define DIO45_RPORT PINF
#define DIO45_WPORT PORTF
#define DIO45_PWM NULL
#define DIO45_PWM 0
#define DIO45_DDR DDRF
#define AIO0_PIN PINF0
#define AIO0_RPORT PINF
#define AIO0_WPORT PORTF
#define AIO0_PWM NULL
#define AIO0_PWM 0
#define AIO0_DDR DDRF
#define AIO1_PIN PINF1
#define AIO1_RPORT PINF
#define AIO1_WPORT PORTF
#define AIO1_PWM NULL
#define AIO1_PWM 0
#define AIO1_DDR DDRF
#define AIO2_PIN PINF2
#define AIO2_RPORT PINF
#define AIO2_WPORT PORTF
#define AIO2_PWM NULL
#define AIO2_PWM 0
#define AIO2_DDR DDRF
#define AIO3_PIN PINF3
#define AIO3_RPORT PINF
#define AIO3_WPORT PORTF
#define AIO3_PWM NULL
#define AIO3_PWM 0
#define AIO3_DDR DDRF
#define AIO4_PIN PINF4
#define AIO4_RPORT PINF
#define AIO4_WPORT PORTF
#define AIO4_PWM NULL
#define AIO4_PWM 0
#define AIO4_DDR DDRF
#define AIO5_PIN PINF5
#define AIO5_RPORT PINF
#define AIO5_WPORT PORTF
#define AIO5_PWM NULL
#define AIO5_PWM 0
#define AIO5_DDR DDRF
#define AIO6_PIN PINF6
#define AIO6_RPORT PINF
#define AIO6_WPORT PORTF
#define AIO6_PWM NULL
#define AIO6_PWM 0
#define AIO6_DDR DDRF
#define AIO7_PIN PINF7
#define AIO7_RPORT PINF
#define AIO7_WPORT PORTF
#define AIO7_PWM NULL
#define AIO7_PWM 0
#define AIO7_DDR DDRF
//-- Begin not supported by Teensyduino
@@ -371,13 +371,13 @@
#define DIO46_PIN PINE2
#define DIO46_RPORT PINE
#define DIO46_WPORT PORTE
#define DIO46_PWM NULL
#define DIO46_PWM 0
#define DIO46_DDR DDRE
#define DIO47_PIN PINE3
#define DIO47_RPORT PINE
#define DIO47_WPORT PORTE
#define DIO47_PWM NULL
#define DIO47_PWM 0
#define DIO47_DDR DDRE
#define TEENSY_E2 46
@@ -389,300 +389,300 @@
#define PA0_PIN PINA0
#define PA0_RPORT PINA
#define PA0_WPORT PORTA
#define PA0_PWM NULL
#define PA0_PWM 0
#define PA0_DDR DDRA
#undef PA1
#define PA1_PIN PINA1
#define PA1_RPORT PINA
#define PA1_WPORT PORTA
#define PA1_PWM NULL
#define PA1_PWM 0
#define PA1_DDR DDRA
#undef PA2
#define PA2_PIN PINA2
#define PA2_RPORT PINA
#define PA2_WPORT PORTA
#define PA2_PWM NULL
#define PA2_PWM 0
#define PA2_DDR DDRA
#undef PA3
#define PA3_PIN PINA3
#define PA3_RPORT PINA
#define PA3_WPORT PORTA
#define PA3_PWM NULL
#define PA3_PWM 0
#define PA3_DDR DDRA
#undef PA4
#define PA4_PIN PINA4
#define PA4_RPORT PINA
#define PA4_WPORT PORTA
#define PA4_PWM NULL
#define PA4_PWM 0
#define PA4_DDR DDRA
#undef PA5
#define PA5_PIN PINA5
#define PA5_RPORT PINA
#define PA5_WPORT PORTA
#define PA5_PWM NULL
#define PA5_PWM 0
#define PA5_DDR DDRA
#undef PA6
#define PA6_PIN PINA6
#define PA6_RPORT PINA
#define PA6_WPORT PORTA
#define PA6_PWM NULL
#define PA6_PWM 0
#define PA6_DDR DDRA
#undef PA7
#define PA7_PIN PINA7
#define PA7_RPORT PINA
#define PA7_WPORT PORTA
#define PA7_PWM NULL
#define PA7_PWM 0
#define PA7_DDR DDRA
#undef PB0
#define PB0_PIN PINB0
#define PB0_RPORT PINB
#define PB0_WPORT PORTB
#define PB0_PWM NULL
#define PB0_PWM 0
#define PB0_DDR DDRB
#undef PB1
#define PB1_PIN PINB1
#define PB1_RPORT PINB
#define PB1_WPORT PORTB
#define PB1_PWM NULL
#define PB1_PWM 0
#define PB1_DDR DDRB
#undef PB2
#define PB2_PIN PINB2
#define PB2_RPORT PINB
#define PB2_WPORT PORTB
#define PB2_PWM NULL
#define PB2_PWM 0
#define PB2_DDR DDRB
#undef PB3
#define PB3_PIN PINB3
#define PB3_RPORT PINB
#define PB3_WPORT PORTB
#define PB3_PWM NULL
#define PB3_PWM 0
#define PB3_DDR DDRB
#undef PB4
#define PB4_PIN PINB4
#define PB4_RPORT PINB
#define PB4_WPORT PORTB
#define PB4_PWM NULL
#define PB4_PWM 0
#define PB4_DDR DDRB
#undef PB5
#define PB5_PIN PINB5
#define PB5_RPORT PINB
#define PB5_WPORT PORTB
#define PB5_PWM NULL
#define PB5_PWM 0
#define PB5_DDR DDRB
#undef PB6
#define PB6_PIN PINB6
#define PB6_RPORT PINB
#define PB6_WPORT PORTB
#define PB6_PWM NULL
#define PB6_PWM 0
#define PB6_DDR DDRB
#undef PB7
#define PB7_PIN PINB7
#define PB7_RPORT PINB
#define PB7_WPORT PORTB
#define PB7_PWM NULL
#define PB7_PWM 0
#define PB7_DDR DDRB
#undef PC0
#define PC0_PIN PINC0
#define PC0_RPORT PINC
#define PC0_WPORT PORTC
#define PC0_PWM NULL
#define PC0_PWM 0
#define PC0_DDR DDRC
#undef PC1
#define PC1_PIN PINC1
#define PC1_RPORT PINC
#define PC1_WPORT PORTC
#define PC1_PWM NULL
#define PC1_PWM 0
#define PC1_DDR DDRC
#undef PC2
#define PC2_PIN PINC2
#define PC2_RPORT PINC
#define PC2_WPORT PORTC
#define PC2_PWM NULL
#define PC2_PWM 0
#define PC2_DDR DDRC
#undef PC3
#define PC3_PIN PINC3
#define PC3_RPORT PINC
#define PC3_WPORT PORTC
#define PC3_PWM NULL
#define PC3_PWM 0
#define PC3_DDR DDRC
#undef PC4
#define PC4_PIN PINC4
#define PC4_RPORT PINC
#define PC4_WPORT PORTC
#define PC4_PWM NULL
#define PC4_PWM 0
#define PC4_DDR DDRC
#undef PC5
#define PC5_PIN PINC5
#define PC5_RPORT PINC
#define PC5_WPORT PORTC
#define PC5_PWM NULL
#define PC5_PWM 0
#define PC5_DDR DDRC
#undef PC6
#define PC6_PIN PINC6
#define PC6_RPORT PINC
#define PC6_WPORT PORTC
#define PC6_PWM NULL
#define PC6_PWM 0
#define PC6_DDR DDRC
#undef PC7
#define PC7_PIN PINC7
#define PC7_RPORT PINC
#define PC7_WPORT PORTC
#define PC7_PWM NULL
#define PC7_PWM 0
#define PC7_DDR DDRC
#undef PD0
#define PD0_PIN PIND0
#define PD0_RPORT PIND
#define PD0_WPORT PORTD
#define PD0_PWM NULL
#define PD0_PWM 0 // OC0B
#define PD0_DDR DDRD
#undef PD1
#define PD1_PIN PIND1
#define PD1_RPORT PIND
#define PD1_WPORT PORTD
#define PD1_PWM NULL
#define PD1_PWM 0 // OC2B
#define PD1_DDR DDRD
#undef PD2
#define PD2_PIN PIND2
#define PD2_RPORT PIND
#define PD2_WPORT PORTD
#define PD2_PWM NULL
#define PD2_PWM 0
#define PD2_DDR DDRD
#undef PD3
#define PD3_PIN PIND3
#define PD3_RPORT PIND
#define PD3_WPORT PORTD
#define PD3_PWM NULL
#define PD3_PWM 0
#define PD3_DDR DDRD
#undef PD4
#define PD4_PIN PIND4
#define PD4_RPORT PIND
#define PD4_WPORT PORTD
#define PD4_PWM NULL
#define PD4_PWM 0
#define PD4_DDR DDRD
#undef PD5
#define PD5_PIN PIND5
#define PD5_RPORT PIND
#define PD5_WPORT PORTD
#define PD5_PWM NULL
#define PD5_PWM 0
#define PD5_DDR DDRD
#undef PD6
#define PD6_PIN PIND6
#define PD6_RPORT PIND
#define PD6_WPORT PORTD
#define PD6_PWM NULL
#define PD6_PWM 0
#define PD6_DDR DDRD
#undef PD7
#define PD7_PIN PIND7
#define PD7_RPORT PIND
#define PD7_WPORT PORTD
#define PD7_PWM NULL
#define PD7_PWM 0
#define PD7_DDR DDRD
#undef PE0
#define PE0_PIN PINE0
#define PE0_RPORT PINE
#define PE0_WPORT PORTE
#define PE0_PWM NULL
#define PE0_PWM 0
#define PE0_DDR DDRE
#undef PE1
#define PE1_PIN PINE1
#define PE1_RPORT PINE
#define PE1_WPORT PORTE
#define PE1_PWM NULL
#define PE1_PWM 0
#define PE1_DDR DDRE
#undef PE2
#define PE2_PIN PINE2
#define PE2_RPORT PINE
#define PE2_WPORT PORTE
#define PE2_PWM NULL
#define PE2_PWM 0
#define PE2_DDR DDRE
#undef PE3
#define PE3_PIN PINE3
#define PE3_RPORT PINE
#define PE3_WPORT PORTE
#define PE3_PWM NULL
#define PE3_PWM 0
#define PE3_DDR DDRE
#undef PE4
#define PE4_PIN PINE4
#define PE4_RPORT PINE
#define PE4_WPORT PORTE
#define PE4_PWM NULL
#define PE4_PWM 0
#define PE4_DDR DDRE
#undef PE5
#define PE5_PIN PINE5
#define PE5_RPORT PINE
#define PE5_WPORT PORTE
#define PE5_PWM NULL
#define PE5_PWM 0
#define PE5_DDR DDRE
#undef PE6
#define PE6_PIN PINE6
#define PE6_RPORT PINE
#define PE6_WPORT PORTE
#define PE6_PWM NULL
#define PE6_PWM 0
#define PE6_DDR DDRE
#undef PE7
#define PE7_PIN PINE7
#define PE7_RPORT PINE
#define PE7_WPORT PORTE
#define PE7_PWM NULL
#define PE7_PWM 0
#define PE7_DDR DDRE
#undef PF0
#define PF0_PIN PINF0
#define PF0_RPORT PINF
#define PF0_WPORT PORTF
#define PF0_PWM NULL
#define PF0_PWM 0
#define PF0_DDR DDRF
#undef PF1
#define PF1_PIN PINF1
#define PF1_RPORT PINF
#define PF1_WPORT PORTF
#define PF1_PWM NULL
#define PF1_PWM 0
#define PF1_DDR DDRF
#undef PF2
#define PF2_PIN PINF2
#define PF2_RPORT PINF
#define PF2_WPORT PORTF
#define PF2_PWM NULL
#define PF2_PWM 0
#define PF2_DDR DDRF
#undef PF3
#define PF3_PIN PINF3
#define PF3_RPORT PINF
#define PF3_WPORT PORTF
#define PF3_PWM NULL
#define PF3_PWM 0
#define PF3_DDR DDRF
#undef PF4
#define PF4_PIN PINF4
#define PF4_RPORT PINF
#define PF4_WPORT PORTF
#define PF4_PWM NULL
#define PF4_PWM 0
#define PF4_DDR DDRF
#undef PF5
#define PF5_PIN PINF5
#define PF5_RPORT PINF
#define PF5_WPORT PORTF
#define PF5_PWM NULL
#define PF5_PWM 0
#define PF5_DDR DDRF
#undef PF6
#define PF6_PIN PINF6
#define PF6_RPORT PINF
#define PF6_WPORT PORTF
#define PF6_PWM NULL
#define PF6_PWM 0
#define PF6_DDR DDRF
#undef PF7
#define PF7_PIN PINF7
#define PF7_RPORT PINF
#define PF7_WPORT PORTF
#define PF7_PWM NULL
#define PF7_PWM 0
#define PF7_DDR DDRF
/**
* some of the pin mapping functions of the Teensduino extension to the Arduino IDE
* do not function the same as the other Arduino extensions
* Some of the pin mapping functions of the Teensduino extension to the Arduino IDE
* do not function the same as the other Arduino extensions.
*/
//digitalPinToTimer(pin) function works like Arduino but Timers are not defined
+26
View File
@@ -0,0 +1,26 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#if HAS_SPI_TFT || HAS_FSMC_TFT
#error "Sorry! TFT displays are not available for HAL/AVR."
#endif
+22
View File
@@ -0,0 +1,22 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
@@ -0,0 +1,22 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
+65
View File
@@ -0,0 +1,65 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* Test AVR-specific configuration values for errors at compile-time.
*/
/**
* Checks for FAST PWM
*/
#if ENABLED(FAST_PWM_FAN) && (ENABLED(USE_OCR2A_AS_TOP) && defined(TCCR2))
#error "USE_OCR2A_AS_TOP does not apply to devices with a single output TIMER2"
#endif
/**
* Sanity checks for Spindle / Laser PWM
*/
#if ENABLED(SPINDLE_LASER_PWM)
#include "../ServoTimers.h" // Needed to check timer availability (_useTimer3)
#if SPINDLE_LASER_PWM_PIN == 4 || WITHIN(SPINDLE_LASER_PWM_PIN, 11, 13)
#error "Counter/Timer for SPINDLE_LASER_PWM_PIN is used by a system interrupt."
#elif NUM_SERVOS > 0 && defined(_useTimer3) && (WITHIN(SPINDLE_LASER_PWM_PIN, 2, 3) || SPINDLE_LASER_PWM_PIN == 5)
#error "Counter/Timer for SPINDLE_LASER_PWM_PIN is used by the servo system."
#endif
#elif defined(SPINDLE_LASER_FREQUENCY)
#error "SPINDLE_LASER_FREQUENCY requires SPINDLE_LASER_PWM."
#endif
/**
* The Trinamic library includes SoftwareSerial.h, leading to a compile error.
*/
#if BOTH(HAS_TRINAMIC_CONFIG, ENDSTOP_INTERRUPTS_FEATURE)
#error "TMCStepper includes SoftwareSerial.h which is incompatible with ENDSTOP_INTERRUPTS_FEATURE. Disable ENDSTOP_INTERRUPTS_FEATURE to continue."
#endif
#if BOTH(HAS_TMC_SW_SERIAL, MONITOR_DRIVER_STATUS)
#error "MONITOR_DRIVER_STATUS causes performance issues when used with SoftwareSerial-connected drivers. Disable MONITOR_DRIVER_STATUS or use hardware serial to continue."
#endif
/**
* Postmortem debugging
*/
#if ENABLED(POSTMORTEM_DEBUGGING)
#error "POSTMORTEM_DEBUGGING is not supported on AVR boards."
#endif
+113
View File
@@ -0,0 +1,113 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* Optimized math functions for AVR
*/
// intRes = longIn1 * longIn2 >> 24
// uses:
// A[tmp] to store 0
// B[tmp] to store bits 16-23 of the 48bit result. The top bit is used to round the two byte result.
// note that the lower two bytes and the upper byte of the 48bit result are not calculated.
// this can cause the result to be out by one as the lower bytes may cause carries into the upper ones.
// B A are bits 24-39 and are the returned value
// C B A is longIn1
// D C B A is longIn2
//
static FORCE_INLINE uint16_t MultiU24X32toH16(uint32_t longIn1, uint32_t longIn2) {
uint8_t tmp1;
uint8_t tmp2;
uint16_t intRes;
__asm__ __volatile__(
A("clr %[tmp1]")
A("mul %A[longIn1], %B[longIn2]")
A("mov %[tmp2], r1")
A("mul %B[longIn1], %C[longIn2]")
A("movw %A[intRes], r0")
A("mul %C[longIn1], %C[longIn2]")
A("add %B[intRes], r0")
A("mul %C[longIn1], %B[longIn2]")
A("add %A[intRes], r0")
A("adc %B[intRes], r1")
A("mul %A[longIn1], %C[longIn2]")
A("add %[tmp2], r0")
A("adc %A[intRes], r1")
A("adc %B[intRes], %[tmp1]")
A("mul %B[longIn1], %B[longIn2]")
A("add %[tmp2], r0")
A("adc %A[intRes], r1")
A("adc %B[intRes], %[tmp1]")
A("mul %C[longIn1], %A[longIn2]")
A("add %[tmp2], r0")
A("adc %A[intRes], r1")
A("adc %B[intRes], %[tmp1]")
A("mul %B[longIn1], %A[longIn2]")
A("add %[tmp2], r1")
A("adc %A[intRes], %[tmp1]")
A("adc %B[intRes], %[tmp1]")
A("lsr %[tmp2]")
A("adc %A[intRes], %[tmp1]")
A("adc %B[intRes], %[tmp1]")
A("mul %D[longIn2], %A[longIn1]")
A("add %A[intRes], r0")
A("adc %B[intRes], r1")
A("mul %D[longIn2], %B[longIn1]")
A("add %B[intRes], r0")
A("clr r1")
: [intRes] "=&r" (intRes),
[tmp1] "=&r" (tmp1),
[tmp2] "=&r" (tmp2)
: [longIn1] "d" (longIn1),
[longIn2] "d" (longIn2)
: "cc"
);
return intRes;
}
// intRes = intIn1 * intIn2 >> 16
// uses:
// r26 to store 0
// r27 to store the byte 1 of the 24 bit result
static FORCE_INLINE uint16_t MultiU16X8toH16(uint8_t charIn1, uint16_t intIn2) {
uint8_t tmp;
uint16_t intRes;
__asm__ __volatile__ (
A("clr %[tmp]")
A("mul %[charIn1], %B[intIn2]")
A("movw %A[intRes], r0")
A("mul %[charIn1], %A[intIn2]")
A("add %A[intRes], r1")
A("adc %B[intRes], %[tmp]")
A("lsr r0")
A("adc %A[intRes], %[tmp]")
A("adc %B[intRes], %[tmp]")
A("clr r1")
: [intRes] "=&r" (intRes),
[tmp] "=&r" (tmp)
: [charIn1] "d" (charIn1),
[intIn2] "d" (intIn2)
: "cc"
);
return intRes;
}
+395
View File
@@ -0,0 +1,395 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* PWM print routines for Atmel 8 bit AVR CPUs
*/
#include "../../inc/MarlinConfig.h"
#define NUMBER_PINS_TOTAL NUM_DIGITAL_PINS
#if MB(BQ_ZUM_MEGA_3D, MIGHTYBOARD_REVE, MINIRAMBO, SCOOVO_X9H, TRIGORILLA_14)
#define AVR_ATmega2560_FAMILY_PLUS_70 1
#endif
#if AVR_AT90USB1286_FAMILY
// Working with Teensyduino extension so need to re-define some things
#include "pinsDebug_Teensyduino.h"
// Can't use the "digitalPinToPort" function from the Teensyduino type IDEs
// portModeRegister takes a different argument
#define digitalPinToTimer_DEBUG(p) digitalPinToTimer(p)
#define digitalPinToBitMask_DEBUG(p) digitalPinToBitMask(p)
#define digitalPinToPort_DEBUG(p) digitalPinToPort(p)
#define GET_PINMODE(pin) (*portModeRegister(pin) & digitalPinToBitMask_DEBUG(pin))
#elif AVR_ATmega2560_FAMILY_PLUS_70 // So we can access/display all the pins on boards using more than 70
#include "pinsDebug_plus_70.h"
#define digitalPinToTimer_DEBUG(p) digitalPinToTimer_plus_70(p)
#define digitalPinToBitMask_DEBUG(p) digitalPinToBitMask_plus_70(p)
#define digitalPinToPort_DEBUG(p) digitalPinToPort_plus_70(p)
bool GET_PINMODE(int8_t pin) {return *portModeRegister(digitalPinToPort_DEBUG(pin)) & digitalPinToBitMask_DEBUG(pin); }
#else
#define digitalPinToTimer_DEBUG(p) digitalPinToTimer(p)
#define digitalPinToBitMask_DEBUG(p) digitalPinToBitMask(p)
#define digitalPinToPort_DEBUG(p) digitalPinToPort(p)
bool GET_PINMODE(int8_t pin) {return *portModeRegister(digitalPinToPort_DEBUG(pin)) & digitalPinToBitMask_DEBUG(pin); }
#define GET_ARRAY_PIN(p) pgm_read_byte(&pin_array[p].pin)
#endif
#define VALID_PIN(pin) (pin >= 0 && pin < NUM_DIGITAL_PINS ? 1 : 0)
#if AVR_ATmega1284_FAMILY
#define DIGITAL_PIN_TO_ANALOG_PIN(P) int(analogInputToDigitalPin(0) - (P))
#define IS_ANALOG(P) ((P) >= analogInputToDigitalPin(7) && (P) <= analogInputToDigitalPin(0))
#else
#define DIGITAL_PIN_TO_ANALOG_PIN(P) int((P) - analogInputToDigitalPin(0))
#define IS_ANALOG(P) ((P) >= analogInputToDigitalPin(0) && ((P) <= analogInputToDigitalPin(15) || (P) <= analogInputToDigitalPin(7)))
#endif
#define GET_ARRAY_PIN(p) pgm_read_byte(&pin_array[p].pin)
#define MULTI_NAME_PAD 26 // space needed to be pretty if not first name assigned to a pin
void PRINT_ARRAY_NAME(uint8_t x) {
char *name_mem_pointer = (char*)pgm_read_ptr(&pin_array[x].name);
LOOP_L_N(y, MAX_NAME_LENGTH) {
char temp_char = pgm_read_byte(name_mem_pointer + y);
if (temp_char != 0)
SERIAL_CHAR(temp_char);
else {
LOOP_L_N(i, MAX_NAME_LENGTH - y) SERIAL_CHAR(' ');
break;
}
}
}
#define GET_ARRAY_IS_DIGITAL(x) pgm_read_byte(&pin_array[x].is_digital)
#if defined(__AVR_ATmega1284P__) // 1284 IDE extensions set this to the number of
#undef NUM_DIGITAL_PINS // digital only pins while all other CPUs have it
#define NUM_DIGITAL_PINS 32 // set to digital only + digital/analog
#endif
#define PWM_PRINT(V) do{ sprintf_P(buffer, PSTR("PWM: %4d"), V); SERIAL_ECHO(buffer); }while(0)
#define PWM_CASE(N,Z) \
case TIMER##N##Z: \
if (TCCR##N##A & (_BV(COM##N##Z##1) | _BV(COM##N##Z##0))) { \
PWM_PRINT(OCR##N##Z); \
return true; \
} else return false
/**
* Print a pin's PWM status.
* Return true if it's currently a PWM pin.
*/
static bool pwm_status(uint8_t pin) {
char buffer[20]; // for the sprintf statements
switch (digitalPinToTimer_DEBUG(pin)) {
#if defined(TCCR0A) && defined(COM0A1)
#ifdef TIMER0A
#if !AVR_AT90USB1286_FAMILY // not available in Teensyduino type IDEs
PWM_CASE(0, A);
#endif
#endif
PWM_CASE(0, B);
#endif
#if defined(TCCR1A) && defined(COM1A1)
PWM_CASE(1, A);
PWM_CASE(1, B);
#if defined(COM1C1) && defined(TIMER1C)
PWM_CASE(1, C);
#endif
#endif
#if defined(TCCR2A) && defined(COM2A1)
PWM_CASE(2, A);
PWM_CASE(2, B);
#endif
#if defined(TCCR3A) && defined(COM3A1)
PWM_CASE(3, A);
PWM_CASE(3, B);
#ifdef COM3C1
PWM_CASE(3, C);
#endif
#endif
#ifdef TCCR4A
PWM_CASE(4, A);
PWM_CASE(4, B);
PWM_CASE(4, C);
#endif
#if defined(TCCR5A) && defined(COM5A1)
PWM_CASE(5, A);
PWM_CASE(5, B);
PWM_CASE(5, C);
#endif
case NOT_ON_TIMER:
default:
return false;
}
SERIAL_ECHO_SP(2);
} // pwm_status
const volatile uint8_t* const PWM_other[][3] PROGMEM = {
{ &TCCR0A, &TCCR0B, &TIMSK0 },
{ &TCCR1A, &TCCR1B, &TIMSK1 },
#if defined(TCCR2A) && defined(COM2A1)
{ &TCCR2A, &TCCR2B, &TIMSK2 },
#endif
#if defined(TCCR3A) && defined(COM3A1)
{ &TCCR3A, &TCCR3B, &TIMSK3 },
#endif
#ifdef TCCR4A
{ &TCCR4A, &TCCR4B, &TIMSK4 },
#endif
#if defined(TCCR5A) && defined(COM5A1)
{ &TCCR5A, &TCCR5B, &TIMSK5 },
#endif
};
const volatile uint8_t* const PWM_OCR[][3] PROGMEM = {
#ifdef TIMER0A
{ &OCR0A, &OCR0B, 0 },
#else
{ 0, &OCR0B, 0 },
#endif
#if defined(COM1C1) && defined(TIMER1C)
{ (const uint8_t*)&OCR1A, (const uint8_t*)&OCR1B, (const uint8_t*)&OCR1C },
#else
{ (const uint8_t*)&OCR1A, (const uint8_t*)&OCR1B, 0 },
#endif
#if defined(TCCR2A) && defined(COM2A1)
{ &OCR2A, &OCR2B, 0 },
#endif
#if defined(TCCR3A) && defined(COM3A1)
#ifdef COM3C1
{ (const uint8_t*)&OCR3A, (const uint8_t*)&OCR3B, (const uint8_t*)&OCR3C },
#else
{ (const uint8_t*)&OCR3A, (const uint8_t*)&OCR3B, 0 },
#endif
#endif
#ifdef TCCR4A
{ (const uint8_t*)&OCR4A, (const uint8_t*)&OCR4B, (const uint8_t*)&OCR4C },
#endif
#if defined(TCCR5A) && defined(COM5A1)
{ (const uint8_t*)&OCR5A, (const uint8_t*)&OCR5B, (const uint8_t*)&OCR5C },
#endif
};
#define TCCR_A(T) pgm_read_word(&PWM_other[T][0])
#define TCCR_B(T) pgm_read_word(&PWM_other[T][1])
#define TIMSK(T) pgm_read_word(&PWM_other[T][2])
#define CS_0 0
#define CS_1 1
#define CS_2 2
#define WGM_0 0
#define WGM_1 1
#define WGM_2 3
#define WGM_3 4
#define TOIE 0
#define OCR_VAL(T, L) pgm_read_word(&PWM_OCR[T][L])
static void err_is_counter() { SERIAL_ECHOPGM(" non-standard PWM mode"); }
static void err_is_interrupt() { SERIAL_ECHOPGM(" compare interrupt enabled"); }
static void err_prob_interrupt() { SERIAL_ECHOPGM(" overflow interrupt enabled"); }
static void print_is_also_tied() { SERIAL_ECHOPGM(" is also tied to this pin"); SERIAL_ECHO_SP(14); }
inline void com_print(const uint8_t N, const uint8_t Z) {
const uint8_t *TCCRA = (uint8_t*)TCCR_A(N);
SERIAL_ECHOPAIR(" COM", AS_CHAR('0' + N));
SERIAL_CHAR(Z);
SERIAL_ECHOPAIR(": ", int((*TCCRA >> (6 - Z * 2)) & 0x03));
}
void timer_prefix(uint8_t T, char L, uint8_t N) { // T - timer L - pwm N - WGM bit layout
char buffer[20]; // for the sprintf statements
const uint8_t *TCCRB = (uint8_t*)TCCR_B(T),
*TCCRA = (uint8_t*)TCCR_A(T);
uint8_t WGM = (((*TCCRB & _BV(WGM_2)) >> 1) | (*TCCRA & (_BV(WGM_0) | _BV(WGM_1))));
if (N == 4) WGM |= ((*TCCRB & _BV(WGM_3)) >> 1);
SERIAL_ECHOPAIR(" TIMER", AS_CHAR(T + '0'));
SERIAL_CHAR(L);
SERIAL_ECHO_SP(3);
if (N == 3) {
const uint8_t *OCRVAL8 = (uint8_t*)OCR_VAL(T, L - 'A');
PWM_PRINT(*OCRVAL8);
}
else {
const uint16_t *OCRVAL16 = (uint16_t*)OCR_VAL(T, L - 'A');
PWM_PRINT(*OCRVAL16);
}
SERIAL_ECHOPAIR(" WGM: ", WGM);
com_print(T,L);
SERIAL_ECHOPAIR(" CS: ", (*TCCRB & (_BV(CS_0) | _BV(CS_1) | _BV(CS_2)) ));
SERIAL_ECHOPAIR(" TCCR", AS_CHAR(T + '0'), "A: ", *TCCRA);
SERIAL_ECHOPAIR(" TCCR", AS_CHAR(T + '0'), "B: ", *TCCRB);
const uint8_t *TMSK = (uint8_t*)TIMSK(T);
SERIAL_ECHOPAIR(" TIMSK", AS_CHAR(T + '0'), ": ", *TMSK);
const uint8_t OCIE = L - 'A' + 1;
if (N == 3) { if (WGM == 0 || WGM == 2 || WGM == 4 || WGM == 6) err_is_counter(); }
else { if (WGM == 0 || WGM == 4 || WGM == 12 || WGM == 13) err_is_counter(); }
if (TEST(*TMSK, OCIE)) err_is_interrupt();
if (TEST(*TMSK, TOIE)) err_prob_interrupt();
}
static void pwm_details(uint8_t pin) {
switch (digitalPinToTimer_DEBUG(pin)) {
#if defined(TCCR0A) && defined(COM0A1)
#ifdef TIMER0A
#if !AVR_AT90USB1286_FAMILY // not available in Teensyduino type IDEs
case TIMER0A: timer_prefix(0, 'A', 3); break;
#endif
#endif
case TIMER0B: timer_prefix(0, 'B', 3); break;
#endif
#if defined(TCCR1A) && defined(COM1A1)
case TIMER1A: timer_prefix(1, 'A', 4); break;
case TIMER1B: timer_prefix(1, 'B', 4); break;
#if defined(COM1C1) && defined(TIMER1C)
case TIMER1C: timer_prefix(1, 'C', 4); break;
#endif
#endif
#if defined(TCCR2A) && defined(COM2A1)
case TIMER2A: timer_prefix(2, 'A', 3); break;
case TIMER2B: timer_prefix(2, 'B', 3); break;
#endif
#if defined(TCCR3A) && defined(COM3A1)
case TIMER3A: timer_prefix(3, 'A', 4); break;
case TIMER3B: timer_prefix(3, 'B', 4); break;
#ifdef COM3C1
case TIMER3C: timer_prefix(3, 'C', 4); break;
#endif
#endif
#ifdef TCCR4A
case TIMER4A: timer_prefix(4, 'A', 4); break;
case TIMER4B: timer_prefix(4, 'B', 4); break;
case TIMER4C: timer_prefix(4, 'C', 4); break;
#endif
#if defined(TCCR5A) && defined(COM5A1)
case TIMER5A: timer_prefix(5, 'A', 4); break;
case TIMER5B: timer_prefix(5, 'B', 4); break;
case TIMER5C: timer_prefix(5, 'C', 4); break;
#endif
case NOT_ON_TIMER: break;
}
SERIAL_ECHOPGM(" ");
// on pins that have two PWMs, print info on second PWM
#if AVR_ATmega2560_FAMILY || AVR_AT90USB1286_FAMILY
// looking for port B7 - PWMs 0A and 1C
if (digitalPinToPort_DEBUG(pin) == 'B' - 64 && 0x80 == digitalPinToBitMask_DEBUG(pin)) {
#if !AVR_AT90USB1286_FAMILY
SERIAL_ECHOPGM("\n .");
SERIAL_ECHO_SP(18);
SERIAL_ECHOPGM("TIMER1C");
print_is_also_tied();
timer_prefix(1, 'C', 4);
#else
SERIAL_ECHOPGM("\n .");
SERIAL_ECHO_SP(18);
SERIAL_ECHOPGM("TIMER0A");
print_is_also_tied();
timer_prefix(0, 'A', 3);
#endif
}
#else
UNUSED(print_is_also_tied);
#endif
} // pwm_details
#ifndef digitalRead_mod // Use Teensyduino's version of digitalRead - it doesn't disable the PWMs
int digitalRead_mod(const int8_t pin) { // same as digitalRead except the PWM stop section has been removed
const uint8_t port = digitalPinToPort_DEBUG(pin);
return (port != NOT_A_PIN) && (*portInputRegister(port) & digitalPinToBitMask_DEBUG(pin)) ? HIGH : LOW;
}
#endif
#ifndef PRINT_PORT
void print_port(int8_t pin) { // print port number
#ifdef digitalPinToPort_DEBUG
uint8_t x;
SERIAL_ECHOPGM(" Port: ");
#if AVR_AT90USB1286_FAMILY
x = (pin == 46 || pin == 47) ? 'E' : digitalPinToPort_DEBUG(pin) + 64;
#else
x = digitalPinToPort_DEBUG(pin) + 64;
#endif
SERIAL_CHAR(x);
#if AVR_AT90USB1286_FAMILY
if (pin == 46)
x = '2';
else if (pin == 47)
x = '3';
else {
uint8_t temp = digitalPinToBitMask_DEBUG(pin);
for (x = '0'; x < '9' && temp != 1; x++) temp >>= 1;
}
#else
uint8_t temp = digitalPinToBitMask_DEBUG(pin);
for (x = '0'; x < '9' && temp != 1; x++) temp >>= 1;
#endif
SERIAL_CHAR(x);
#else
SERIAL_ECHO_SP(10);
#endif
}
#define PRINT_PORT(p) print_port(p)
#endif
#define PRINT_PIN(p) do{ sprintf_P(buffer, PSTR("%3d "), p); SERIAL_ECHO(buffer); }while(0)
@@ -1,9 +1,6 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,7 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
@@ -1,9 +1,6 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,7 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
@@ -25,15 +22,12 @@
* Structures for 2560 family boards that use more than 70 pins
*/
#undef NUM_DIGITAL_PINS
#if MB(BQ_ZUM_MEGA_3D)
#if MB(BQ_ZUM_MEGA_3D, MINIRAMBO, SCOOVO_X9H, TRIGORILLA_14)
#undef NUM_DIGITAL_PINS
#define NUM_DIGITAL_PINS 85
#elif MB(MIGHTYBOARD_REVE)
#undef NUM_DIGITAL_PINS
#define NUM_DIGITAL_PINS 80
#elif MB(MINIRAMBO)
#define NUM_DIGITAL_PINS 85
#elif MB(SCOOVO_X9H)
#define NUM_DIGITAL_PINS 85
#endif
#define PA 1
@@ -50,7 +44,7 @@
const uint8_t PROGMEM digital_pin_to_port_PGM_plus_70[] = {
// PORTLIST
// -------------------------------------------
// ------------------------
PE , // PE 0 ** 0 ** USART0_RX
PE , // PE 1 ** 1 ** USART0_TX
PE , // PE 4 ** 2 ** PWM2
@@ -143,7 +137,7 @@ const uint8_t PROGMEM digital_pin_to_port_PGM_plus_70[] = {
const uint8_t PROGMEM digital_pin_to_bit_mask_PGM_plus_70[] = {
// PIN IN PORT
// -------------------------------------------
// ------------------------
_BV( 0 ) , // PE 0 ** 0 ** USART0_RX
_BV( 1 ) , // PE 1 ** 1 ** USART0_TX
_BV( 4 ) , // PE 4 ** 2 ** PWM2
@@ -237,7 +231,7 @@ const uint8_t PROGMEM digital_pin_to_bit_mask_PGM_plus_70[] = {
const uint8_t PROGMEM digital_pin_to_timer_PGM_plus_70[] = {
// TIMERS
// -------------------------------------------
// ------------------------
NOT_ON_TIMER , // PE 0 ** 0 ** USART0_RX
NOT_ON_TIMER , // PE 1 ** 1 ** USART0_TX
TIMER3B , // PE 4 ** 2 ** PWM2
+65
View File
@@ -0,0 +1,65 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* Define SPI Pins: SCK, MISO, MOSI, SS
*/
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328__) || defined(__AVR_ATmega328P__)
#define AVR_SCK_PIN 13
#define AVR_MISO_PIN 12
#define AVR_MOSI_PIN 11
#define AVR_SS_PIN 10
#elif defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__) || defined(__AVR_ATmega1284P__)
#define AVR_SCK_PIN 7
#define AVR_MISO_PIN 6
#define AVR_MOSI_PIN 5
#define AVR_SS_PIN 4
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#define AVR_SCK_PIN 52
#define AVR_MISO_PIN 50
#define AVR_MOSI_PIN 51
#define AVR_SS_PIN 53
#elif defined(__AVR_AT90USB1287__) || defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB647__)
#define AVR_SCK_PIN 21
#define AVR_MISO_PIN 23
#define AVR_MOSI_PIN 22
#define AVR_SS_PIN 20
#elif defined(__AVR_ATmega1281__) || defined(__AVR_ATmega2561__)
#define AVR_SCK_PIN 10
#define AVR_MISO_PIN 12
#define AVR_MOSI_PIN 11
#define AVR_SS_PIN 16
#endif
#ifndef SD_SCK_PIN
#define SD_SCK_PIN AVR_SCK_PIN
#endif
#ifndef SD_MISO_PIN
#define SD_MISO_PIN AVR_MISO_PIN
#endif
#ifndef SD_MOSI_PIN
#define SD_MOSI_PIN AVR_MOSI_PIN
#endif
#ifndef SD_SS_PIN
#define SD_SS_PIN AVR_SS_PIN
#endif
+260
View File
@@ -0,0 +1,260 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#include <stdint.h>
// ------------------------
// Types
// ------------------------
typedef uint16_t hal_timer_t;
#define HAL_TIMER_TYPE_MAX 0xFFFF
// ------------------------
// Defines
// ------------------------
#define HAL_TIMER_RATE ((F_CPU) / 8) // i.e., 2MHz or 2.5MHz
#ifndef STEP_TIMER_NUM
#define STEP_TIMER_NUM 1
#endif
#ifndef PULSE_TIMER_NUM
#define PULSE_TIMER_NUM STEP_TIMER_NUM
#endif
#ifndef TEMP_TIMER_NUM
#define TEMP_TIMER_NUM 0
#endif
#define TEMP_TIMER_FREQUENCY ((F_CPU) / 64.0 / 256.0)
#define STEPPER_TIMER_RATE HAL_TIMER_RATE
#define STEPPER_TIMER_PRESCALE 8
#define STEPPER_TIMER_TICKS_PER_US ((STEPPER_TIMER_RATE) / 1000000) // Cannot be of type double
#define PULSE_TIMER_RATE STEPPER_TIMER_RATE // frequency of pulse timer
#define PULSE_TIMER_PRESCALE STEPPER_TIMER_PRESCALE
#define PULSE_TIMER_TICKS_PER_US STEPPER_TIMER_TICKS_PER_US
#define ENABLE_STEPPER_DRIVER_INTERRUPT() SBI(TIMSK1, OCIE1A)
#define DISABLE_STEPPER_DRIVER_INTERRUPT() CBI(TIMSK1, OCIE1A)
#define STEPPER_ISR_ENABLED() TEST(TIMSK1, OCIE1A)
#define ENABLE_TEMPERATURE_INTERRUPT() SBI(TIMSK0, OCIE0B)
#define DISABLE_TEMPERATURE_INTERRUPT() CBI(TIMSK0, OCIE0B)
#define TEMPERATURE_ISR_ENABLED() TEST(TIMSK0, OCIE0B)
FORCE_INLINE void HAL_timer_start(const uint8_t timer_num, const uint32_t) {
switch (timer_num) {
case STEP_TIMER_NUM:
// waveform generation = 0100 = CTC
SET_WGM(1, CTC_OCRnA);
// output mode = 00 (disconnected)
SET_COMA(1, NORMAL);
// Set the timer pre-scaler
// Generally we use a divider of 8, resulting in a 2MHz timer
// frequency on a 16MHz MCU. If you are going to change this, be
// sure to regenerate speed_lookuptable.h with
// create_speed_lookuptable.py
SET_CS(1, PRESCALER_8); // CS 2 = 1/8 prescaler
// Init Stepper ISR to 122 Hz for quick starting
// (F_CPU) / (STEPPER_TIMER_PRESCALE) / frequency
OCR1A = 0x4000;
TCNT1 = 0;
break;
case TEMP_TIMER_NUM:
// Use timer0 for temperature measurement
// Interleave temperature interrupt with millies interrupt
OCR0B = 128;
break;
}
}
#define TIMER_OCR_1 OCR1A
#define TIMER_COUNTER_1 TCNT1
#define TIMER_OCR_0 OCR0A
#define TIMER_COUNTER_0 TCNT0
#define _CAT(a,V...) a##V
#define HAL_timer_set_compare(timer, compare) (_CAT(TIMER_OCR_, timer) = compare)
#define HAL_timer_get_compare(timer) _CAT(TIMER_OCR_, timer)
#define HAL_timer_get_count(timer) _CAT(TIMER_COUNTER_, timer)
/**
* On AVR there is no hardware prioritization and preemption of
* interrupts, so this emulates it. The UART has first priority
* (otherwise, characters will be lost due to UART overflow).
* Then: Stepper, Endstops, Temperature, and -finally- all others.
*/
#define HAL_timer_isr_prologue(TIMER_NUM)
#define HAL_timer_isr_epilogue(TIMER_NUM)
/* 18 cycles maximum latency */
#ifndef HAL_STEP_TIMER_ISR
#define HAL_STEP_TIMER_ISR() \
extern "C" void TIMER1_COMPA_vect() __attribute__ ((signal, naked, used, externally_visible)); \
extern "C" void TIMER1_COMPA_vect_bottom() asm ("TIMER1_COMPA_vect_bottom") __attribute__ ((used, externally_visible, noinline)); \
void TIMER1_COMPA_vect() { \
__asm__ __volatile__ ( \
A("push r16") /* 2 Save R16 */ \
A("in r16, __SREG__") /* 1 Get SREG */ \
A("push r16") /* 2 Save SREG into stack */ \
A("lds r16, %[timsk0]") /* 2 Load into R0 the Temperature timer Interrupt mask register */ \
A("push r16") /* 2 Save TIMSK0 into the stack */ \
A("andi r16,~%[msk0]") /* 1 Disable the temperature ISR */ \
A("sts %[timsk0], r16") /* 2 And set the new value */ \
A("lds r16, %[timsk1]") /* 2 Load into R0 the stepper timer Interrupt mask register [TIMSK1] */ \
A("andi r16,~%[msk1]") /* 1 Disable the stepper ISR */ \
A("sts %[timsk1], r16") /* 2 And set the new value */ \
A("push r16") /* 2 Save TIMSK1 into stack */ \
A("in r16, 0x3B") /* 1 Get RAMPZ register */ \
A("push r16") /* 2 Save RAMPZ into stack */ \
A("in r16, 0x3C") /* 1 Get EIND register */ \
A("push r0") /* C runtime can modify all the following registers without restoring them */ \
A("push r1") \
A("push r18") \
A("push r19") \
A("push r20") \
A("push r21") \
A("push r22") \
A("push r23") \
A("push r24") \
A("push r25") \
A("push r26") \
A("push r27") \
A("push r30") \
A("push r31") \
A("clr r1") /* C runtime expects this register to be 0 */ \
A("call TIMER1_COMPA_vect_bottom") /* Call the bottom handler - No inlining allowed, otherwise registers used are not saved */ \
A("pop r31") \
A("pop r30") \
A("pop r27") \
A("pop r26") \
A("pop r25") \
A("pop r24") \
A("pop r23") \
A("pop r22") \
A("pop r21") \
A("pop r20") \
A("pop r19") \
A("pop r18") \
A("pop r1") \
A("pop r0") \
A("out 0x3C, r16") /* 1 Restore EIND register */ \
A("pop r16") /* 2 Get the original RAMPZ register value */ \
A("out 0x3B, r16") /* 1 Restore RAMPZ register to its original value */ \
A("pop r16") /* 2 Get the original TIMSK1 value but with stepper ISR disabled */ \
A("ori r16,%[msk1]") /* 1 Reenable the stepper ISR */ \
A("cli") /* 1 Disable global interrupts - Reenabling Stepper ISR can reenter amd temperature can reenter, and we want that, if it happens, after this ISR has ended */ \
A("sts %[timsk1], r16") /* 2 And restore the old value - This reenables the stepper ISR */ \
A("pop r16") /* 2 Get the temperature timer Interrupt mask register [TIMSK0] */ \
A("sts %[timsk0], r16") /* 2 And restore the old value - This reenables the temperature ISR */ \
A("pop r16") /* 2 Get the old SREG value */ \
A("out __SREG__, r16") /* 1 And restore the SREG value */ \
A("pop r16") /* 2 Restore R16 value */ \
A("reti") /* 4 Return from interrupt */ \
: \
: [timsk0] "i" ((uint16_t)&TIMSK0), \
[timsk1] "i" ((uint16_t)&TIMSK1), \
[msk0] "M" ((uint8_t)(1<<OCIE0B)),\
[msk1] "M" ((uint8_t)(1<<OCIE1A)) \
: \
); \
} \
void TIMER1_COMPA_vect_bottom()
#endif // HAL_STEP_TIMER_ISR
#ifndef HAL_TEMP_TIMER_ISR
/* 14 cycles maximum latency */
#define HAL_TEMP_TIMER_ISR() \
extern "C" void TIMER0_COMPB_vect() __attribute__ ((signal, naked, used, externally_visible)); \
extern "C" void TIMER0_COMPB_vect_bottom() asm ("TIMER0_COMPB_vect_bottom") __attribute__ ((used, externally_visible, noinline)); \
void TIMER0_COMPB_vect() { \
__asm__ __volatile__ ( \
A("push r16") /* 2 Save R16 */ \
A("in r16, __SREG__") /* 1 Get SREG */ \
A("push r16") /* 2 Save SREG into stack */ \
A("lds r16, %[timsk0]") /* 2 Load into R0 the Temperature timer Interrupt mask register */ \
A("andi r16,~%[msk0]") /* 1 Disable the temperature ISR */ \
A("sts %[timsk0], r16") /* 2 And set the new value */ \
A("sei") /* 1 Enable global interrupts - It is safe, as the temperature ISR is disabled, so we cannot reenter it */ \
A("push r16") /* 2 Save TIMSK0 into stack */ \
A("in r16, 0x3B") /* 1 Get RAMPZ register */ \
A("push r16") /* 2 Save RAMPZ into stack */ \
A("in r16, 0x3C") /* 1 Get EIND register */ \
A("push r0") /* C runtime can modify all the following registers without restoring them */ \
A("push r1") \
A("push r18") \
A("push r19") \
A("push r20") \
A("push r21") \
A("push r22") \
A("push r23") \
A("push r24") \
A("push r25") \
A("push r26") \
A("push r27") \
A("push r30") \
A("push r31") \
A("clr r1") /* C runtime expects this register to be 0 */ \
A("call TIMER0_COMPB_vect_bottom") /* Call the bottom handler - No inlining allowed, otherwise registers used are not saved */ \
A("pop r31") \
A("pop r30") \
A("pop r27") \
A("pop r26") \
A("pop r25") \
A("pop r24") \
A("pop r23") \
A("pop r22") \
A("pop r21") \
A("pop r20") \
A("pop r19") \
A("pop r18") \
A("pop r1") \
A("pop r0") \
A("out 0x3C, r16") /* 1 Restore EIND register */ \
A("pop r16") /* 2 Get the original RAMPZ register value */ \
A("out 0x3B, r16") /* 1 Restore RAMPZ register to its original value */ \
A("pop r16") /* 2 Get the original TIMSK0 value but with temperature ISR disabled */ \
A("ori r16,%[msk0]") /* 1 Enable temperature ISR */ \
A("cli") /* 1 Disable global interrupts - We must do this, as we will reenable the temperature ISR, and we don't want to reenter this handler until the current one is done */ \
A("sts %[timsk0], r16") /* 2 And restore the old value */ \
A("pop r16") /* 2 Get the old SREG */ \
A("out __SREG__, r16") /* 1 And restore the SREG value */ \
A("pop r16") /* 2 Restore R16 */ \
A("reti") /* 4 Return from interrupt */ \
: \
: [timsk0] "i"((uint16_t)&TIMSK0), \
[msk0] "M" ((uint8_t)(1<<OCIE0B)) \
: \
); \
} \
void TIMER0_COMPB_vect_bottom()
#endif // HAL_TEMP_TIMER_ISR
@@ -0,0 +1,193 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* Based on u8g_com_st7920_hw_spi.c
*
* Universal 8bit Graphics Library
*
* Copyright (c) 2011, olikraus@gmail.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice, this
* list of conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#if defined(ARDUINO) && !defined(ARDUINO_ARCH_STM32) && !defined(ARDUINO_ARCH_SAM)
#include "../../inc/MarlinConfigPre.h"
#if HAS_MARLINUI_U8GLIB
#include "../shared/Marduino.h"
#include "../shared/Delay.h"
#include <U8glib.h>
uint8_t u8g_bitData, u8g_bitNotData, u8g_bitClock, u8g_bitNotClock;
volatile uint8_t *u8g_outData, *u8g_outClock;
static void u8g_com_arduino_init_shift_out(uint8_t dataPin, uint8_t clockPin) {
u8g_outData = portOutputRegister(digitalPinToPort(dataPin));
u8g_outClock = portOutputRegister(digitalPinToPort(clockPin));
u8g_bitData = digitalPinToBitMask(dataPin);
u8g_bitClock = digitalPinToBitMask(clockPin);
u8g_bitNotClock = u8g_bitClock;
u8g_bitNotClock ^= 0xFF;
u8g_bitNotData = u8g_bitData;
u8g_bitNotData ^= 0xFF;
}
void u8g_spiSend_sw_AVR_mode_0(uint8_t val) {
uint8_t bitData = u8g_bitData,
bitNotData = u8g_bitNotData,
bitClock = u8g_bitClock,
bitNotClock = u8g_bitNotClock;
volatile uint8_t *outData = u8g_outData,
*outClock = u8g_outClock;
U8G_ATOMIC_START();
LOOP_L_N(i, 8) {
if (val & 0x80)
*outData |= bitData;
else
*outData &= bitNotData;
*outClock |= bitClock;
val <<= 1;
*outClock &= bitNotClock;
}
U8G_ATOMIC_END();
}
void u8g_spiSend_sw_AVR_mode_3(uint8_t val) {
uint8_t bitData = u8g_bitData,
bitNotData = u8g_bitNotData,
bitClock = u8g_bitClock,
bitNotClock = u8g_bitNotClock;
volatile uint8_t *outData = u8g_outData,
*outClock = u8g_outClock;
U8G_ATOMIC_START();
LOOP_L_N(i, 8) {
*outClock &= bitNotClock;
if (val & 0x80)
*outData |= bitData;
else
*outData &= bitNotData;
*outClock |= bitClock;
val <<= 1;
}
U8G_ATOMIC_END();
}
#if ENABLED(FYSETC_MINI_12864)
#define SPISEND_SW_AVR u8g_spiSend_sw_AVR_mode_3
#else
#define SPISEND_SW_AVR u8g_spiSend_sw_AVR_mode_0
#endif
uint8_t u8g_com_HAL_AVR_sw_sp_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr) {
switch (msg) {
case U8G_COM_MSG_INIT:
u8g_com_arduino_init_shift_out(u8g->pin_list[U8G_PI_MOSI], u8g->pin_list[U8G_PI_SCK]);
u8g_com_arduino_assign_pin_output_high(u8g);
u8g_com_arduino_digital_write(u8g, U8G_PI_SCK, 0);
u8g_com_arduino_digital_write(u8g, U8G_PI_MOSI, 0);
break;
case U8G_COM_MSG_STOP:
break;
case U8G_COM_MSG_RESET:
if (U8G_PIN_NONE != u8g->pin_list[U8G_PI_RESET]) u8g_com_arduino_digital_write(u8g, U8G_PI_RESET, arg_val);
break;
case U8G_COM_MSG_CHIP_SELECT:
#if ENABLED(FYSETC_MINI_12864) // LCD SPI is running mode 3 while SD card is running mode 0
if (arg_val) { // SCK idle state needs to be set to the proper idle state before
// the next chip select goes active
u8g_com_arduino_digital_write(u8g, U8G_PI_SCK, 1); // Set SCK to mode 3 idle state before CS goes active
u8g_com_arduino_digital_write(u8g, U8G_PI_CS, LOW);
}
else {
u8g_com_arduino_digital_write(u8g, U8G_PI_CS, HIGH);
u8g_com_arduino_digital_write(u8g, U8G_PI_SCK, 0); // Set SCK to mode 0 idle state after CS goes inactive
}
#else
u8g_com_arduino_digital_write(u8g, U8G_PI_CS, !arg_val);
#endif
break;
case U8G_COM_MSG_WRITE_BYTE:
SPISEND_SW_AVR(arg_val);
break;
case U8G_COM_MSG_WRITE_SEQ: {
uint8_t *ptr = (uint8_t *)arg_ptr;
while (arg_val > 0) {
SPISEND_SW_AVR(*ptr++);
arg_val--;
}
}
break;
case U8G_COM_MSG_WRITE_SEQ_P: {
uint8_t *ptr = (uint8_t *)arg_ptr;
while (arg_val > 0) {
SPISEND_SW_AVR(u8g_pgm_read(ptr));
ptr++;
arg_val--;
}
}
break;
case U8G_COM_MSG_ADDRESS: /* define cmd (arg_val = 0) or data mode (arg_val = 1) */
u8g_com_arduino_digital_write(u8g, U8G_PI_A0, arg_val);
break;
}
return 1;
}
#endif // HAS_MARLINUI_U8GLIB
#endif // ARDUINO_ARCH_SAM
+70
View File
@@ -0,0 +1,70 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#ifdef __AVR__
#include "../../inc/MarlinConfig.h"
#if ENABLED(USE_WATCHDOG)
#include "watchdog.h"
#include "../../MarlinCore.h"
// Initialize watchdog with 8s timeout, if possible. Otherwise, make it 4s.
void watchdog_init() {
#if ENABLED(WATCHDOG_DURATION_8S) && defined(WDTO_8S)
#define WDTO_NS WDTO_8S
#else
#define WDTO_NS WDTO_4S
#endif
#if ENABLED(WATCHDOG_RESET_MANUAL)
// Enable the watchdog timer, but only for the interrupt.
// Take care, as this requires the correct order of operation, with interrupts disabled.
// See the datasheet of any AVR chip for details.
wdt_reset();
cli();
_WD_CONTROL_REG = _BV(_WD_CHANGE_BIT) | _BV(WDE);
_WD_CONTROL_REG = _BV(WDIE) | (WDTO_NS & 0x07) | ((WDTO_NS & 0x08) << 2); // WDTO_NS directly does not work. bit 0-2 are consecutive in the register but the highest value bit is at bit 5
// So worked for up to WDTO_2S
sei();
wdt_reset();
#else
wdt_enable(WDTO_NS); // The function handles the upper bit correct.
#endif
//delay(10000); // test it!
}
//===========================================================================
//=================================== ISR ===================================
//===========================================================================
// Watchdog timer interrupt, called if main program blocks >4sec and manual reset is enabled.
#if ENABLED(WATCHDOG_RESET_MANUAL)
ISR(WDT_vect) {
sei(); // With the interrupt driven serial we need to allow interrupts.
SERIAL_ERROR_MSG(STR_WATCHDOG_FIRED);
minkill(); // interrupt-safe final kill and infinite loop
}
#endif
#endif // USE_WATCHDOG
#endif // __AVR__
+31
View File
@@ -0,0 +1,31 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#include <avr/wdt.h>
// Initialize watchdog with a 4 second interrupt time
void watchdog_init();
// Reset watchdog. MUST be called at least every 4 seconds after the
// first watchdog_init or AVR will go into emergency procedures.
inline void HAL_watchdog_refresh() { wdt_reset(); }
+124
View File
@@ -0,0 +1,124 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* HAL for Arduino Due and compatible (SAM3X8E)
*/
#ifdef ARDUINO_ARCH_SAM
#include "../../inc/MarlinConfig.h"
#include "HAL.h"
#include <Wire.h>
#include "usb/usb_task.h"
// ------------------------
// Public Variables
// ------------------------
uint16_t HAL_adc_result;
// ------------------------
// Public functions
// ------------------------
TERN_(POSTMORTEM_DEBUGGING, extern void install_min_serial());
// HAL initialization task
void HAL_init() {
// Initialize the USB stack
#if ENABLED(SDSUPPORT)
OUT_WRITE(SDSS, HIGH); // Try to set SDSS inactive before any other SPI users start up
#endif
usb_task_init();
TERN_(POSTMORTEM_DEBUGGING, install_min_serial()); // Install the min serial handler
}
// HAL idle task
void HAL_idletask() {
// Perform USB stack housekeeping
usb_task_idle();
}
// Disable interrupts
void cli() { noInterrupts(); }
// Enable interrupts
void sei() { interrupts(); }
void HAL_clear_reset_source() { }
uint8_t HAL_get_reset_source() {
switch ((RSTC->RSTC_SR >> 8) & 0x07) {
case 0: return RST_POWER_ON;
case 1: return RST_BACKUP;
case 2: return RST_WATCHDOG;
case 3: return RST_SOFTWARE;
case 4: return RST_EXTERNAL;
default: return 0;
}
}
void HAL_reboot() { rstc_start_software_reset(RSTC); }
void _delay_ms(const int delay_ms) {
// Todo: port for Due?
delay(delay_ms);
}
extern "C" {
extern unsigned int _ebss; // end of bss section
}
// Return free memory between end of heap (or end bss) and whatever is current
int freeMemory() {
int free_memory, heap_end = (int)_sbrk(0);
return (int)&free_memory - (heap_end ?: (int)&_ebss);
}
// ------------------------
// ADC
// ------------------------
void HAL_adc_start_conversion(const uint8_t ch) {
HAL_adc_result = analogRead(ch);
}
uint16_t HAL_adc_get_result() {
// nop
return HAL_adc_result;
}
// Forward the default serial ports
#if USING_HW_SERIAL0
DefaultSerial1 MSerial0(false, Serial);
#endif
#if USING_HW_SERIAL1
DefaultSerial2 MSerial1(false, Serial1);
#endif
#if USING_HW_SERIAL2
DefaultSerial3 MSerial2(false, Serial2);
#endif
#if USING_HW_SERIAL3
DefaultSerial4 MSerial3(false, Serial3);
#endif
#endif // ARDUINO_ARCH_SAM
+188
View File
@@ -0,0 +1,188 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
* Copyright (c) 2015-2016 Nico Tonnhofer wurstnase.reprap@gmail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* HAL for Arduino Due and compatible (SAM3X8E)
*/
#define CPU_32_BIT
#include "../shared/Marduino.h"
#include "../shared/eeprom_if.h"
#include "../shared/math_32bit.h"
#include "../shared/HAL_SPI.h"
#include "fastio.h"
#include "watchdog.h"
#include <stdint.h>
#include "../../core/serial_hook.h"
typedef ForwardSerial1Class< decltype(Serial) > DefaultSerial1;
typedef ForwardSerial1Class< decltype(Serial1) > DefaultSerial2;
typedef ForwardSerial1Class< decltype(Serial2) > DefaultSerial3;
typedef ForwardSerial1Class< decltype(Serial3) > DefaultSerial4;
extern DefaultSerial1 MSerial0;
extern DefaultSerial2 MSerial1;
extern DefaultSerial3 MSerial2;
extern DefaultSerial4 MSerial3;
#define _MSERIAL(X) MSerial##X
#define MSERIAL(X) _MSERIAL(X)
#if SERIAL_PORT == -1 || ENABLED(EMERGENCY_PARSER)
#define MYSERIAL1 customizedSerial1
#elif WITHIN(SERIAL_PORT, 0, 3)
#define MYSERIAL1 MSERIAL(SERIAL_PORT)
#else
#error "The required SERIAL_PORT must be from 0 to 3, or -1 for USB Serial."
#endif
#ifdef SERIAL_PORT_2
#if SERIAL_PORT_2 == -1 || ENABLED(EMERGENCY_PARSER)
#define MYSERIAL2 customizedSerial2
#elif WITHIN(SERIAL_PORT_2, 0, 3)
#define MYSERIAL2 MSERIAL(SERIAL_PORT_2)
#else
#error "SERIAL_PORT_2 must be from 0 to 3, or -1 for USB Serial."
#endif
#endif
#ifdef SERIAL_PORT_3
#if SERIAL_PORT_3 == -1 || ENABLED(EMERGENCY_PARSER)
#define MYSERIAL3 customizedSerial3
#elif WITHIN(SERIAL_PORT_3, 0, 3)
#define MYSERIAL3 MSERIAL(SERIAL_PORT_3)
#else
#error "SERIAL_PORT_3 must be from 0 to 3, or -1 for USB Serial."
#endif
#endif
#ifdef MMU2_SERIAL_PORT
#if WITHIN(MMU2_SERIAL_PORT, 0, 3)
#define MMU2_SERIAL MSERIAL(MMU2_SERIAL_PORT)
#else
#error "MMU2_SERIAL_PORT must be from 0 to 3."
#endif
#endif
#ifdef LCD_SERIAL_PORT
#if WITHIN(LCD_SERIAL_PORT, 0, 3)
#define LCD_SERIAL MSERIAL(LCD_SERIAL_PORT)
#else
#error "LCD_SERIAL_PORT must be from 0 to 3."
#endif
#endif
#include "MarlinSerial.h"
#include "MarlinSerialUSB.h"
// On AVR this is in math.h?
#define square(x) ((x)*(x))
typedef int8_t pin_t;
#define SHARED_SERVOS HAS_SERVOS
#define HAL_SERVO_LIB Servo
//
// Interrupts
//
#define CRITICAL_SECTION_START() uint32_t primask = __get_PRIMASK(); __disable_irq()
#define CRITICAL_SECTION_END() if (!primask) __enable_irq()
#define ISRS_ENABLED() (!__get_PRIMASK())
#define ENABLE_ISRS() __enable_irq()
#define DISABLE_ISRS() __disable_irq()
void cli(); // Disable interrupts
void sei(); // Enable interrupts
void HAL_clear_reset_source(); // clear reset reason
uint8_t HAL_get_reset_source(); // get reset reason
void HAL_reboot();
//
// ADC
//
extern uint16_t HAL_adc_result; // result of last ADC conversion
#ifndef analogInputToDigitalPin
#define analogInputToDigitalPin(p) ((p < 12U) ? (p) + 54U : -1)
#endif
#define HAL_ANALOG_SELECT(ch)
inline void HAL_adc_init() {}//todo
#define HAL_ADC_VREF 3.3
#define HAL_ADC_RESOLUTION 10
#define HAL_START_ADC(ch) HAL_adc_start_conversion(ch)
#define HAL_READ_ADC() HAL_adc_result
#define HAL_ADC_READY() true
void HAL_adc_start_conversion(const uint8_t ch);
uint16_t HAL_adc_get_result();
//
// Pin Map
//
#define GET_PIN_MAP_PIN(index) index
#define GET_PIN_MAP_INDEX(pin) pin
#define PARSED_PIN_INDEX(code, dval) parser.intval(code, dval)
//
// Tone
//
void toneInit();
void tone(const pin_t _pin, const unsigned int frequency, const unsigned long duration=0);
void noTone(const pin_t _pin);
// Enable hooks into idle and setup for HAL
#define HAL_IDLETASK 1
void HAL_idletask();
void HAL_init();
//
// Utility functions
//
void _delay_ms(const int delay);
#if GCC_VERSION <= 50000
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
int freeMemory();
#if GCC_VERSION <= 50000
#pragma GCC diagnostic pop
#endif
#ifdef __cplusplus
extern "C" {
#endif
char *dtostrf(double __val, signed char __width, unsigned char __prec, char *__s);
#ifdef __cplusplus
}
#endif
+91
View File
@@ -0,0 +1,91 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#ifdef ARDUINO_ARCH_SAM
#include "../../inc/MarlinConfigPre.h"
#if ENABLED(POSTMORTEM_DEBUGGING)
#include "../shared/HAL_MinSerial.h"
#include <stdarg.h>
static void TXBegin() {
// Disable UART interrupt in NVIC
NVIC_DisableIRQ( UART_IRQn );
// We NEED memory barriers to ensure Interrupts are actually disabled!
// ( https://dzone.com/articles/nvic-disabling-interrupts-on-arm-cortex-m-and-the )
__DSB();
__ISB();
// Disable clock
pmc_disable_periph_clk( ID_UART );
// Configure PMC
pmc_enable_periph_clk( ID_UART );
// Disable PDC channel
UART->UART_PTCR = UART_PTCR_RXTDIS | UART_PTCR_TXTDIS;
// Reset and disable receiver and transmitter
UART->UART_CR = UART_CR_RSTRX | UART_CR_RSTTX | UART_CR_RXDIS | UART_CR_TXDIS;
// Configure mode: 8bit, No parity, 1 bit stop
UART->UART_MR = UART_MR_CHMODE_NORMAL | US_MR_CHRL_8_BIT | US_MR_NBSTOP_1_BIT | UART_MR_PAR_NO;
// Configure baudrate (asynchronous, no oversampling) to BAUDRATE bauds
UART->UART_BRGR = (SystemCoreClock / (BAUDRATE << 4));
// Enable receiver and transmitter
UART->UART_CR = UART_CR_RXEN | UART_CR_TXEN;
}
// A SW memory barrier, to ensure GCC does not overoptimize loops
#define sw_barrier() __asm__ volatile("": : :"memory");
static void TX(char c) {
while (!(UART->UART_SR & UART_SR_TXRDY)) { WDT_Restart(WDT); sw_barrier(); };
UART->UART_THR = c;
}
void install_min_serial() {
HAL_min_serial_init = &TXBegin;
HAL_min_serial_out = &TX;
}
#if DISABLED(DYNAMIC_VECTORTABLE)
extern "C" {
__attribute__((naked)) void JumpHandler_ASM() {
__asm__ __volatile__ (
"b CommonHandler_ASM\n"
);
}
void __attribute__((naked, alias("JumpHandler_ASM"))) HardFault_Handler();
void __attribute__((naked, alias("JumpHandler_ASM"))) BusFault_Handler();
void __attribute__((naked, alias("JumpHandler_ASM"))) UsageFault_Handler();
void __attribute__((naked, alias("JumpHandler_ASM"))) MemManage_Handler();
void __attribute__((naked, alias("JumpHandler_ASM"))) NMI_Handler();
}
#endif
#endif // POSTMORTEM_DEBUGGING
#endif // ARDUINO_ARCH_SAM
+825
View File
@@ -0,0 +1,825 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* Software SPI functions originally from Arduino Sd2Card Library
* Copyright (c) 2009 by William Greiman
*
* Completely rewritten and tuned by Eduardo José Tagle in 2017/2018
* in ARM thumb2 inline assembler and tuned for maximum speed and performance
* allowing SPI clocks of up to 12 Mhz to increase SD card read/write performance
*/
/**
* HAL for Arduino Due and compatible (SAM3X8E)
*
* For ARDUINO_ARCH_SAM
*/
#ifdef ARDUINO_ARCH_SAM
#include "../../inc/MarlinConfig.h"
#include "../shared/Delay.h"
// ------------------------
// Public functions
// ------------------------
#if EITHER(DUE_SOFTWARE_SPI, FORCE_SOFT_SPI)
// ------------------------
// Software SPI
// ------------------------
// Make sure GCC optimizes this file.
// Note that this line triggers a bug in GCC which is fixed by casting.
// See the note below.
#pragma GCC optimize (3)
typedef uint8_t (*pfnSpiTransfer)(uint8_t b);
typedef void (*pfnSpiRxBlock)(uint8_t *buf, uint32_t nbyte);
typedef void (*pfnSpiTxBlock)(const uint8_t *buf, uint32_t nbyte);
/* ---------------- Macros to be able to access definitions from asm */
#define _PORT(IO) DIO ## IO ## _WPORT
#define _PIN_MASK(IO) MASK(DIO ## IO ## _PIN)
#define _PIN_SHIFT(IO) DIO ## IO ## _PIN
#define PORT(IO) _PORT(IO)
#define PIN_MASK(IO) _PIN_MASK(IO)
#define PIN_SHIFT(IO) _PIN_SHIFT(IO)
// run at ~8 .. ~10Mhz - Tx version (Rx data discarded)
static uint8_t spiTransferTx0(uint8_t bout) { // using Mode 0
uint32_t MOSI_PORT_PLUS30 = ((uint32_t) PORT(SD_MOSI_PIN)) + 0x30; /* SODR of port */
uint32_t MOSI_MASK = PIN_MASK(SD_MOSI_PIN);
uint32_t SCK_PORT_PLUS30 = ((uint32_t) PORT(SD_SCK_PIN)) + 0x30; /* SODR of port */
uint32_t SCK_MASK = PIN_MASK(SD_SCK_PIN);
uint32_t idx = 0;
/* Negate bout, as the assembler requires a negated value */
bout = ~bout;
/* The software SPI routine */
__asm__ __volatile__(
A(".syntax unified") // is to prevent CM0,CM1 non-unified syntax
/* Bit 7 */
A("ubfx %[idx],%[txval],#7,#1") /* Place bit 7 in bit 0 of idx*/
A("str %[mosi_mask],[%[mosi_port], %[idx],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[idx],%[txval],#6,#1") /* Place bit 6 in bit 0 of idx*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 6 */
A("str %[mosi_mask],[%[mosi_port], %[idx],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[idx],%[txval],#5,#1") /* Place bit 5 in bit 0 of idx*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 5 */
A("str %[mosi_mask],[%[mosi_port], %[idx],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[idx],%[txval],#4,#1") /* Place bit 4 in bit 0 of idx*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 4 */
A("str %[mosi_mask],[%[mosi_port], %[idx],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[idx],%[txval],#3,#1") /* Place bit 3 in bit 0 of idx*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 3 */
A("str %[mosi_mask],[%[mosi_port], %[idx],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[idx],%[txval],#2,#1") /* Place bit 2 in bit 0 of idx*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 2 */
A("str %[mosi_mask],[%[mosi_port], %[idx],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[idx],%[txval],#1,#1") /* Place bit 1 in bit 0 of idx*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 1 */
A("str %[mosi_mask],[%[mosi_port], %[idx],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[idx],%[txval],#0,#1") /* Place bit 0 in bit 0 of idx*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 0 */
A("str %[mosi_mask],[%[mosi_port], %[idx],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("nop") /* Result will be 0 */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
: [idx]"+r"( idx )
: [txval]"r"( bout ) ,
[mosi_mask]"r"( MOSI_MASK ),
[mosi_port]"r"( MOSI_PORT_PLUS30 ),
[sck_mask]"r"( SCK_MASK ),
[sck_port]"r"( SCK_PORT_PLUS30 )
: "cc"
);
return 0;
}
// Calculates the bit band alias address and returns a pointer address to word.
// addr: The byte address of bitbanding bit.
// bit: The bit position of bitbanding bit.
#define BITBAND_ADDRESS(addr, bit) \
(((uint32_t)(addr) & 0xF0000000) + 0x02000000 + ((uint32_t)(addr)&0xFFFFF)*32 + (bit)*4)
// run at ~8 .. ~10Mhz - Rx version (Tx line not altered)
static uint8_t spiTransferRx0(uint8_t) { // using Mode 0
uint32_t bin = 0;
uint32_t work = 0;
uint32_t BITBAND_MISO_PORT = BITBAND_ADDRESS( ((uint32_t)PORT(SD_MISO_PIN))+0x3C, PIN_SHIFT(SD_MISO_PIN)); /* PDSR of port in bitband area */
uint32_t SCK_PORT_PLUS30 = ((uint32_t) PORT(SD_SCK_PIN)) + 0x30; /* SODR of port */
uint32_t SCK_MASK = PIN_MASK(SD_SCK_PIN);
/* The software SPI routine */
__asm__ __volatile__(
A(".syntax unified") // is to prevent CM0,CM1 non-unified syntax
/* bit 7 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#7,#1") /* Store read bit as the bit 7 */
/* bit 6 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#6,#1") /* Store read bit as the bit 6 */
/* bit 5 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#5,#1") /* Store read bit as the bit 5 */
/* bit 4 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#4,#1") /* Store read bit as the bit 4 */
/* bit 3 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#3,#1") /* Store read bit as the bit 3 */
/* bit 2 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#2,#1") /* Store read bit as the bit 2 */
/* bit 1 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#1,#1") /* Store read bit as the bit 1 */
/* bit 0 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#0,#1") /* Store read bit as the bit 0 */
: [bin]"+r"(bin),
[work]"+r"(work)
: [bitband_miso_port]"r"( BITBAND_MISO_PORT ),
[sck_mask]"r"( SCK_MASK ),
[sck_port]"r"( SCK_PORT_PLUS30 )
: "cc"
);
return bin;
}
// run at ~4Mhz
static uint8_t spiTransfer1(uint8_t b) { // using Mode 0
int bits = 8;
do {
WRITE(SD_MOSI_PIN, b & 0x80);
b <<= 1; // little setup time
WRITE(SD_SCK_PIN, HIGH);
DELAY_NS(125); // 10 cycles @ 84mhz
b |= (READ(SD_MISO_PIN) != 0);
WRITE(SD_SCK_PIN, LOW);
DELAY_NS(125); // 10 cycles @ 84mhz
} while (--bits);
return b;
}
// all the others
static uint32_t spiDelayCyclesX4 = 4 * (F_CPU) / 1000000; // 4µs => 125khz
static uint8_t spiTransferX(uint8_t b) { // using Mode 0
int bits = 8;
do {
WRITE(SD_MOSI_PIN, b & 0x80);
b <<= 1; // little setup time
WRITE(SD_SCK_PIN, HIGH);
DELAY_CYCLES(spiDelayCyclesX4);
b |= (READ(SD_MISO_PIN) != 0);
WRITE(SD_SCK_PIN, LOW);
DELAY_CYCLES(spiDelayCyclesX4);
} while (--bits);
return b;
}
// Pointers to generic functions for byte transfers
/**
* Note: The cast is unnecessary, but without it, this file triggers a GCC 4.8.3-2014 bug.
* Later GCC versions do not have this problem, but at this time (May 2018) Arduino still
* uses that buggy and obsolete GCC version!!
*/
static pfnSpiTransfer spiTransferRx = (pfnSpiTransfer)spiTransferX;
static pfnSpiTransfer spiTransferTx = (pfnSpiTransfer)spiTransferX;
// Block transfers run at ~8 .. ~10Mhz - Tx version (Rx data discarded)
static void spiTxBlock0(const uint8_t *ptr, uint32_t todo) {
uint32_t MOSI_PORT_PLUS30 = ((uint32_t) PORT(SD_MOSI_PIN)) + 0x30; /* SODR of port */
uint32_t MOSI_MASK = PIN_MASK(SD_MOSI_PIN);
uint32_t SCK_PORT_PLUS30 = ((uint32_t) PORT(SD_SCK_PIN)) + 0x30; /* SODR of port */
uint32_t SCK_MASK = PIN_MASK(SD_SCK_PIN);
uint32_t work = 0;
uint32_t txval = 0;
/* The software SPI routine */
__asm__ __volatile__(
A(".syntax unified") // is to prevent CM0,CM1 non-unified syntax
L("loop%=")
A("ldrb.w %[txval], [%[ptr]], #1") /* Load value to send, increment buffer */
A("mvn %[txval],%[txval]") /* Negate value */
/* Bit 7 */
A("ubfx %[work],%[txval],#7,#1") /* Place bit 7 in bit 0 of work*/
A("str %[mosi_mask],[%[mosi_port], %[work],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[work],%[txval],#6,#1") /* Place bit 6 in bit 0 of work*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 6 */
A("str %[mosi_mask],[%[mosi_port], %[work],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[work],%[txval],#5,#1") /* Place bit 5 in bit 0 of work*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 5 */
A("str %[mosi_mask],[%[mosi_port], %[work],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[work],%[txval],#4,#1") /* Place bit 4 in bit 0 of work*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 4 */
A("str %[mosi_mask],[%[mosi_port], %[work],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[work],%[txval],#3,#1") /* Place bit 3 in bit 0 of work*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 3 */
A("str %[mosi_mask],[%[mosi_port], %[work],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[work],%[txval],#2,#1") /* Place bit 2 in bit 0 of work*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 2 */
A("str %[mosi_mask],[%[mosi_port], %[work],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[work],%[txval],#1,#1") /* Place bit 1 in bit 0 of work*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 1 */
A("str %[mosi_mask],[%[mosi_port], %[work],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ubfx %[work],%[txval],#0,#1") /* Place bit 0 in bit 0 of work*/
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
/* Bit 0 */
A("str %[mosi_mask],[%[mosi_port], %[work],LSL #2]") /* Access the proper SODR or CODR registers based on that bit */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("subs %[todo],#1") /* Decrement count of pending words to send, update status */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bne.n loop%=") /* Repeat until done */
: [ptr]"+r" ( ptr ) ,
[todo]"+r" ( todo ) ,
[work]"+r"( work ) ,
[txval]"+r"( txval )
: [mosi_mask]"r"( MOSI_MASK ),
[mosi_port]"r"( MOSI_PORT_PLUS30 ),
[sck_mask]"r"( SCK_MASK ),
[sck_port]"r"( SCK_PORT_PLUS30 )
: "cc"
);
}
static void spiRxBlock0(uint8_t *ptr, uint32_t todo) {
uint32_t bin = 0;
uint32_t work = 0;
uint32_t BITBAND_MISO_PORT = BITBAND_ADDRESS( ((uint32_t)PORT(SD_MISO_PIN))+0x3C, PIN_SHIFT(SD_MISO_PIN)); /* PDSR of port in bitband area */
uint32_t SCK_PORT_PLUS30 = ((uint32_t) PORT(SD_SCK_PIN)) + 0x30; /* SODR of port */
uint32_t SCK_MASK = PIN_MASK(SD_SCK_PIN);
/* The software SPI routine */
__asm__ __volatile__(
A(".syntax unified") // is to prevent CM0,CM1 non-unified syntax
L("loop%=")
/* bit 7 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#7,#1") /* Store read bit as the bit 7 */
/* bit 6 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#6,#1") /* Store read bit as the bit 6 */
/* bit 5 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#5,#1") /* Store read bit as the bit 5 */
/* bit 4 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#4,#1") /* Store read bit as the bit 4 */
/* bit 3 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#3,#1") /* Store read bit as the bit 3 */
/* bit 2 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#2,#1") /* Store read bit as the bit 2 */
/* bit 1 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#1,#1") /* Store read bit as the bit 1 */
/* bit 0 */
A("str %[sck_mask],[%[sck_port]]") /* SODR */
A("ldr %[work],[%[bitband_miso_port]]") /* PDSR on bitband area for required bit: work will be 1 or 0 based on port */
A("str %[sck_mask],[%[sck_port],#0x4]") /* CODR */
A("bfi %[bin],%[work],#0,#1") /* Store read bit as the bit 0 */
A("subs %[todo],#1") /* Decrement count of pending words to send, update status */
A("strb.w %[bin], [%[ptr]], #1") /* Store read value into buffer, increment buffer pointer */
A("bne.n loop%=") /* Repeat until done */
: [ptr]"+r"(ptr),
[todo]"+r"(todo),
[bin]"+r"(bin),
[work]"+r"(work)
: [bitband_miso_port]"r"( BITBAND_MISO_PORT ),
[sck_mask]"r"( SCK_MASK ),
[sck_port]"r"( SCK_PORT_PLUS30 )
: "cc"
);
}
static void spiTxBlockX(const uint8_t *buf, uint32_t todo) {
do {
(void)spiTransferTx(*buf++);
} while (--todo);
}
static void spiRxBlockX(uint8_t *buf, uint32_t todo) {
do {
*buf++ = spiTransferRx(0xFF);
} while (--todo);
}
// Pointers to generic functions for block tranfers
static pfnSpiTxBlock spiTxBlock = (pfnSpiTxBlock)spiTxBlockX;
static pfnSpiRxBlock spiRxBlock = (pfnSpiRxBlock)spiRxBlockX;
#if MB(ALLIGATOR)
#define _SS_WRITE(S) WRITE(SD_SS_PIN, S)
#else
#define _SS_WRITE(S) NOOP
#endif
void spiBegin() {
SET_OUTPUT(SD_SS_PIN);
_SS_WRITE(HIGH);
SET_OUTPUT(SD_SCK_PIN);
SET_INPUT(SD_MISO_PIN);
SET_OUTPUT(SD_MOSI_PIN);
}
uint8_t spiRec() {
_SS_WRITE(LOW);
WRITE(SD_MOSI_PIN, HIGH); // Output 1s 1
uint8_t b = spiTransferRx(0xFF);
_SS_WRITE(HIGH);
return b;
}
void spiRead(uint8_t *buf, uint16_t nbyte) {
if (nbyte) {
_SS_WRITE(LOW);
WRITE(SD_MOSI_PIN, HIGH); // Output 1s 1
spiRxBlock(buf, nbyte);
_SS_WRITE(HIGH);
}
}
void spiSend(uint8_t b) {
_SS_WRITE(LOW);
(void)spiTransferTx(b);
_SS_WRITE(HIGH);
}
void spiSendBlock(uint8_t token, const uint8_t *buf) {
_SS_WRITE(LOW);
(void)spiTransferTx(token);
spiTxBlock(buf, 512);
_SS_WRITE(HIGH);
}
/**
* spiRate should be
* 0 : 8 - 10 MHz
* 1 : 4 - 5 MHz
* 2 : 2 - 2.5 MHz
* 3 : 1 - 1.25 MHz
* 4 : 500 - 625 kHz
* 5 : 250 - 312 kHz
* 6 : 125 - 156 kHz
*/
void spiInit(uint8_t spiRate) {
switch (spiRate) {
case 0:
spiTransferTx = (pfnSpiTransfer)spiTransferTx0;
spiTransferRx = (pfnSpiTransfer)spiTransferRx0;
spiTxBlock = (pfnSpiTxBlock)spiTxBlock0;
spiRxBlock = (pfnSpiRxBlock)spiRxBlock0;
break;
case 1:
spiTransferTx = (pfnSpiTransfer)spiTransfer1;
spiTransferRx = (pfnSpiTransfer)spiTransfer1;
spiTxBlock = (pfnSpiTxBlock)spiTxBlockX;
spiRxBlock = (pfnSpiRxBlock)spiRxBlockX;
break;
default:
spiDelayCyclesX4 = ((F_CPU) / 1000000) >> (6 - spiRate) << 2; // spiRate of 2 gives the maximum error with current CPU
spiTransferTx = (pfnSpiTransfer)spiTransferX;
spiTransferRx = (pfnSpiTransfer)spiTransferX;
spiTxBlock = (pfnSpiTxBlock)spiTxBlockX;
spiRxBlock = (pfnSpiRxBlock)spiRxBlockX;
break;
}
_SS_WRITE(HIGH);
WRITE(SD_MOSI_PIN, HIGH);
WRITE(SD_SCK_PIN, LOW);
}
/** Begin SPI transaction, set clock, bit order, data mode */
void spiBeginTransaction(uint32_t spiClock, uint8_t bitOrder, uint8_t dataMode) {
// TODO: to be implemented
}
#pragma GCC reset_options
#else // !SOFTWARE_SPI
#define WHILE_TX(N) while ((SPI0->SPI_SR & SPI_SR_TDRE) == (N))
#define WHILE_RX(N) while ((SPI0->SPI_SR & SPI_SR_RDRF) == (N))
#define FLUSH_TX() do{ WHILE_RX(1) SPI0->SPI_RDR; }while(0)
#if MB(ALLIGATOR)
// slave selects controlled by SPI controller
// doesn't support changing SPI speeds for SD card
// ------------------------
// hardware SPI
// ------------------------
static bool spiInitialized = false;
void spiInit(uint8_t spiRate) {
if (spiInitialized) return;
// 8.4 MHz, 4 MHz, 2 MHz, 1 MHz, 0.5 MHz, 0.329 MHz, 0.329 MHz
constexpr int spiDivider[] = { 10, 21, 42, 84, 168, 255, 255 };
if (spiRate > 6) spiRate = 1;
// Set SPI mode 1, clock, select not active after transfer, with delay between transfers
SPI_ConfigureNPCS(SPI0, SPI_CHAN_DAC,
SPI_CSR_CSAAT | SPI_CSR_SCBR(spiDivider[spiRate]) |
SPI_CSR_DLYBCT(1));
// Set SPI mode 0, clock, select not active after transfer, with delay between transfers
SPI_ConfigureNPCS(SPI0, SPI_CHAN_EEPROM1, SPI_CSR_NCPHA |
SPI_CSR_CSAAT | SPI_CSR_SCBR(spiDivider[spiRate]) |
SPI_CSR_DLYBCT(1));
// Set SPI mode 0, clock, select not active after transfer, with delay between transfers
SPI_ConfigureNPCS(SPI0, SPI_CHAN, SPI_CSR_NCPHA |
SPI_CSR_CSAAT | SPI_CSR_SCBR(spiDivider[spiRate]) |
SPI_CSR_DLYBCT(1));
SPI_Enable(SPI0);
spiInitialized = true;
}
void spiBegin() {
if (spiInitialized) return;
// Configure SPI pins
PIO_Configure(
g_APinDescription[SD_SCK_PIN].pPort,
g_APinDescription[SD_SCK_PIN].ulPinType,
g_APinDescription[SD_SCK_PIN].ulPin,
g_APinDescription[SD_SCK_PIN].ulPinConfiguration);
PIO_Configure(
g_APinDescription[SD_MOSI_PIN].pPort,
g_APinDescription[SD_MOSI_PIN].ulPinType,
g_APinDescription[SD_MOSI_PIN].ulPin,
g_APinDescription[SD_MOSI_PIN].ulPinConfiguration);
PIO_Configure(
g_APinDescription[SD_MISO_PIN].pPort,
g_APinDescription[SD_MISO_PIN].ulPinType,
g_APinDescription[SD_MISO_PIN].ulPin,
g_APinDescription[SD_MISO_PIN].ulPinConfiguration);
// set master mode, peripheral select, fault detection
SPI_Configure(SPI0, ID_SPI0, SPI_MR_MSTR | SPI_MR_MODFDIS | SPI_MR_PS);
SPI_Enable(SPI0);
SET_OUTPUT(DAC0_SYNC);
#if HAS_MULTI_EXTRUDER
SET_OUTPUT(DAC1_SYNC);
WRITE(DAC1_SYNC, HIGH);
#endif
SET_OUTPUT(SPI_EEPROM1_CS);
SET_OUTPUT(SPI_EEPROM2_CS);
SET_OUTPUT(SPI_FLASH_CS);
WRITE(DAC0_SYNC, HIGH);
WRITE(SPI_EEPROM1_CS, HIGH);
WRITE(SPI_EEPROM2_CS, HIGH);
WRITE(SPI_FLASH_CS, HIGH);
WRITE(SD_SS_PIN, HIGH);
OUT_WRITE(SDSS, LOW);
PIO_Configure(
g_APinDescription[SPI_PIN].pPort,
g_APinDescription[SPI_PIN].ulPinType,
g_APinDescription[SPI_PIN].ulPin,
g_APinDescription[SPI_PIN].ulPinConfiguration
);
spiInit(1);
}
// Read single byte from SPI
uint8_t spiRec() {
// write dummy byte with address and end transmission flag
SPI0->SPI_TDR = 0x000000FF | SPI_PCS(SPI_CHAN) | SPI_TDR_LASTXFER;
WHILE_TX(0);
WHILE_RX(0);
//DELAY_US(1U);
return SPI0->SPI_RDR;
}
uint8_t spiRec(uint32_t chan) {
WHILE_TX(0);
FLUSH_RX();
// write dummy byte with address and end transmission flag
SPI0->SPI_TDR = 0x000000FF | SPI_PCS(chan) | SPI_TDR_LASTXFER;
WHILE_RX(0);
return SPI0->SPI_RDR;
}
// Read from SPI into buffer
void spiRead(uint8_t *buf, uint16_t nbyte) {
if (!nbyte) return;
--nbyte;
for (int i = 0; i < nbyte; i++) {
//WHILE_TX(0);
SPI0->SPI_TDR = 0x000000FF | SPI_PCS(SPI_CHAN);
WHILE_RX(0);
buf[i] = SPI0->SPI_RDR;
//DELAY_US(1U);
}
buf[nbyte] = spiRec();
}
// Write single byte to SPI
void spiSend(const byte b) {
// write byte with address and end transmission flag
SPI0->SPI_TDR = (uint32_t)b | SPI_PCS(SPI_CHAN) | SPI_TDR_LASTXFER;
WHILE_TX(0);
WHILE_RX(0);
SPI0->SPI_RDR;
//DELAY_US(1U);
}
void spiSend(const uint8_t *buf, size_t nbyte) {
if (!nbyte) return;
--nbyte;
for (size_t i = 0; i < nbyte; i++) {
SPI0->SPI_TDR = (uint32_t)buf[i] | SPI_PCS(SPI_CHAN);
WHILE_TX(0);
WHILE_RX(0);
SPI0->SPI_RDR;
//DELAY_US(1U);
}
spiSend(buf[nbyte]);
}
void spiSend(uint32_t chan, byte b) {
WHILE_TX(0);
// write byte with address and end transmission flag
SPI0->SPI_TDR = (uint32_t)b | SPI_PCS(chan) | SPI_TDR_LASTXFER;
WHILE_RX(0);
FLUSH_RX();
}
void spiSend(uint32_t chan, const uint8_t *buf, size_t nbyte) {
if (!nbyte) return;
--nbyte;
for (size_t i = 0; i < nbyte; i++) {
WHILE_TX(0);
SPI0->SPI_TDR = (uint32_t)buf[i] | SPI_PCS(chan);
WHILE_RX(0);
FLUSH_RX();
}
spiSend(chan, buf[nbyte]);
}
// Write from buffer to SPI
void spiSendBlock(uint8_t token, const uint8_t *buf) {
SPI0->SPI_TDR = (uint32_t)token | SPI_PCS(SPI_CHAN);
WHILE_TX(0);
//WHILE_RX(0);
//SPI0->SPI_RDR;
for (int i = 0; i < 511; i++) {
SPI0->SPI_TDR = (uint32_t)buf[i] | SPI_PCS(SPI_CHAN);
WHILE_TX(0);
WHILE_RX(0);
SPI0->SPI_RDR;
//DELAY_US(1U);
}
spiSend(buf[511]);
}
/** Begin SPI transaction, set clock, bit order, data mode */
void spiBeginTransaction(uint32_t spiClock, uint8_t bitOrder, uint8_t dataMode) {
// TODO: to be implemented
}
#else // U8G compatible hardware SPI
#define SPI_MODE_0_DUE_HW 2 // DUE CPHA control bit is inverted
#define SPI_MODE_1_DUE_HW 3
#define SPI_MODE_2_DUE_HW 0
#define SPI_MODE_3_DUE_HW 1
/**
* The DUE SPI controller is set up so the upper word of the longword
* written to the transmit data register selects which SPI Chip Select
* Register is used. This allows different streams to have different SPI
* settings.
*
* In practice it's spooky. Some combinations hang the system, while others
* upset the peripheral device.
*
* SPI mode should be the same for all streams. The FYSETC_MINI_12864 gets
* upset if the clock phase changes after chip select goes active.
*
* SPI_CSR_CSAAT should be set for all streams. If not the WHILE_TX(0)
* macro returns immediately which can result in the SPI chip select going
* inactive before all the data has been sent.
*
* The TMC2130 library uses SPI0->SPI_CSR[3].
*
* The U8G hardware SPI uses SPI0->SPI_CSR[0]. The system hangs and/or the
* FYSETC_MINI_12864 gets upset if lower baud rates are used and the SD card
* is inserted or removed.
*
* The SD card uses SPI0->SPI_CSR[3]. Efforts were made to use [1] and [2]
* but they all resulted in hangs or garbage on the LCD.
*
* The SPI controlled chip selects are NOT enabled in the GPIO controller.
* The application must control the chip select.
*
* All of the above can be avoided by defining FORCE_SOFT_SPI to force the
* display to use software SPI.
*/
void spiInit(uint8_t spiRate=6) { // Default to slowest rate if not specified)
// Also sets U8G SPI rate to 4MHz and the SPI mode to 3
// 8.4 MHz, 4 MHz, 2 MHz, 1 MHz, 0.5 MHz, 0.329 MHz, 0.329 MHz
constexpr int spiDivider[] = { 10, 21, 42, 84, 168, 255, 255 };
if (spiRate > 6) spiRate = 1;
// Enable PIOA and SPI0
REG_PMC_PCER0 = (1UL << ID_PIOA) | (1UL << ID_SPI0);
// Disable PIO on A26 and A27
REG_PIOA_PDR = 0x0C000000;
OUT_WRITE(SDSS, HIGH);
// Reset SPI0 (from sam lib)
SPI0->SPI_CR = SPI_CR_SPIDIS;
SPI0->SPI_CR = SPI_CR_SWRST;
SPI0->SPI_CR = SPI_CR_SWRST;
SPI0->SPI_CR = SPI_CR_SPIEN;
// TMC2103 compatible setup
// Master mode, no fault detection, PCS bits in data written to TDR select CSR register
SPI0->SPI_MR = SPI_MR_MSTR | SPI_MR_PS | SPI_MR_MODFDIS;
// SPI mode 3, 8 Bit data transfer, baud rate
SPI0->SPI_CSR[3] = SPI_CSR_SCBR(spiDivider[spiRate]) | SPI_CSR_CSAAT | SPI_MODE_3_DUE_HW; // use same CSR as TMC2130
SPI0->SPI_CSR[0] = SPI_CSR_SCBR(spiDivider[1]) | SPI_CSR_CSAAT | SPI_MODE_3_DUE_HW; // U8G default to 4MHz
}
void spiBegin() { spiInit(); }
static uint8_t spiTransfer(uint8_t data) {
WHILE_TX(0);
SPI0->SPI_TDR = (uint32_t)data | 0x00070000UL; // Add TMC2130 PCS bits to every byte (use SPI0->SPI_CSR[3])
WHILE_TX(0);
WHILE_RX(0);
return SPI0->SPI_RDR;
}
uint8_t spiRec() { return (uint8_t)spiTransfer(0xFF); }
void spiRead(uint8_t *buf, uint16_t nbyte) {
for (int i = 0; i < nbyte; i++)
buf[i] = spiTransfer(0xFF);
}
void spiSend(uint8_t data) { spiTransfer(data); }
void spiSend(const uint8_t *buf, size_t nbyte) {
for (uint16_t i = 0; i < nbyte; i++)
spiTransfer(buf[i]);
}
void spiSendBlock(uint8_t token, const uint8_t *buf) {
spiTransfer(token);
for (uint16_t i = 0; i < 512; i++)
spiTransfer(buf[i]);
}
#endif // !ALLIGATOR
#endif // !SOFTWARE_SPI
#endif // ARDUINO_ARCH_SAM
+98
View File
@@ -0,0 +1,98 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* InterruptVectors_Due.cpp - This module relocates the Interrupt vector table to SRAM,
* allowing to register new interrupt handlers at runtime. Specially valuable and needed
* because Arduino runtime allocates some interrupt handlers that we NEED to override to
* properly support extended functionality, as for example, USB host or USB device (MSD, MTP)
* and custom serial port handlers, and we don't actually want to modify and/or recompile the
* Arduino runtime. We just want to run as much as possible on Stock Arduino
*
* Copyright (c) 2017 Eduardo José Tagle. All right reserved
*/
#ifdef ARDUINO_ARCH_SAM
#include "../../inc/MarlinConfig.h"
#include "HAL.h"
#include "InterruptVectors.h"
/* The relocated Exception/Interrupt Table - According to the ARM
reference manual, alignment to 128 bytes should suffice, but in
practice, we need alignment to 256 bytes to make this work in all
cases */
__attribute__ ((aligned(256)))
static DeviceVectors ram_tab = { nullptr };
/**
* This function checks if the exception/interrupt table is already in SRAM or not.
* If it is not, then it copies the ROM table to the SRAM and relocates the table
* by reprogramming the NVIC registers
*/
static pfnISR_Handler* get_relocated_table_addr() {
// Get the address of the interrupt/exception table
uint32_t isrtab = SCB->VTOR;
// If already relocated, we are done!
if (isrtab >= IRAM0_ADDR)
return (pfnISR_Handler*)isrtab;
// Get the address of the table stored in FLASH
const pfnISR_Handler* romtab = (const pfnISR_Handler*)isrtab;
// Copy it to SRAM
memcpy(&ram_tab, romtab, sizeof(ram_tab));
// Disable global interrupts
CRITICAL_SECTION_START();
// Set the vector table base address to the SRAM copy
SCB->VTOR = (uint32_t)(&ram_tab);
// Reenable interrupts
CRITICAL_SECTION_END();
// Return the address of the table
return (pfnISR_Handler*)(&ram_tab);
}
pfnISR_Handler install_isr(IRQn_Type irq, pfnISR_Handler newHandler) {
// Get the address of the relocated table
pfnISR_Handler *isrtab = get_relocated_table_addr();
// Disable global interrupts
CRITICAL_SECTION_START();
// Get the original handler
pfnISR_Handler oldHandler = isrtab[irq + 16];
// Install the new one
isrtab[irq + 16] = newHandler;
// Reenable interrupts
CRITICAL_SECTION_END();
// Return the original one
return oldHandler;
}
#endif
+45
View File
@@ -0,0 +1,45 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* InterruptVectors_Due.h
*
* This module relocates the Interrupt vector table to SRAM, allowing new
* interrupt handlers to be added at runtime. This is required because the
* Arduino runtime steals interrupt handlers that Marlin MUST use to support
* extended functionality such as USB hosts and USB devices (MSD, MTP) and
* custom serial port handlers. Rather than modifying and/or recompiling the
* Arduino runtime, We just want to run as much as possible on Stock Arduino.
*
* Copyright (c) 2017 Eduardo José Tagle. All right reserved
*/
#ifdef ARDUINO_ARCH_SAM
// ISR handler type
typedef void (*pfnISR_Handler)();
// Install a new interrupt vector handler for the given irq, returning the old one
pfnISR_Handler install_isr(IRQn_Type irq, pfnISR_Handler newHandler);
#endif // ARDUINO_ARCH_SAM
+494
View File
@@ -0,0 +1,494 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* MarlinSerial_Due.cpp - Hardware serial library for Arduino DUE
* Copyright (c) 2017 Eduardo José Tagle. All right reserved
* Based on MarlinSerial for AVR, copyright (c) 2006 Nicholas Zambetti. All right reserved.
*/
#ifdef ARDUINO_ARCH_SAM
#include "../../inc/MarlinConfig.h"
#include "MarlinSerial.h"
#include "InterruptVectors.h"
#include "../../MarlinCore.h"
template<typename Cfg> typename MarlinSerial<Cfg>::ring_buffer_r MarlinSerial<Cfg>::rx_buffer = { 0, 0, { 0 } };
template<typename Cfg> typename MarlinSerial<Cfg>::ring_buffer_t MarlinSerial<Cfg>::tx_buffer = { 0 };
template<typename Cfg> bool MarlinSerial<Cfg>::_written = false;
template<typename Cfg> uint8_t MarlinSerial<Cfg>::xon_xoff_state = MarlinSerial<Cfg>::XON_XOFF_CHAR_SENT | MarlinSerial<Cfg>::XON_CHAR;
template<typename Cfg> uint8_t MarlinSerial<Cfg>::rx_dropped_bytes = 0;
template<typename Cfg> uint8_t MarlinSerial<Cfg>::rx_buffer_overruns = 0;
template<typename Cfg> uint8_t MarlinSerial<Cfg>::rx_framing_errors = 0;
template<typename Cfg> typename MarlinSerial<Cfg>::ring_buffer_pos_t MarlinSerial<Cfg>::rx_max_enqueued = 0;
// A SW memory barrier, to ensure GCC does not overoptimize loops
#define sw_barrier() asm volatile("": : :"memory");
#include "../../feature/e_parser.h"
// (called with RX interrupts disabled)
template<typename Cfg>
FORCE_INLINE void MarlinSerial<Cfg>::store_rxd_char() {
static EmergencyParser::State emergency_state; // = EP_RESET
// Get the tail - Nothing can alter its value while we are at this ISR
const ring_buffer_pos_t t = rx_buffer.tail;
// Get the head pointer
ring_buffer_pos_t h = rx_buffer.head;
// Get the next element
ring_buffer_pos_t i = (ring_buffer_pos_t)(h + 1) & (ring_buffer_pos_t)(Cfg::RX_SIZE - 1);
// Read the character from the USART
uint8_t c = HWUART->UART_RHR;
if (Cfg::EMERGENCYPARSER) emergency_parser.update(emergency_state, c);
// If the character is to be stored at the index just before the tail
// (such that the head would advance to the current tail), the RX FIFO is
// full, so don't write the character or advance the head.
if (i != t) {
rx_buffer.buffer[h] = c;
h = i;
}
else if (Cfg::DROPPED_RX && !++rx_dropped_bytes)
--rx_dropped_bytes;
const ring_buffer_pos_t rx_count = (ring_buffer_pos_t)(h - t) & (ring_buffer_pos_t)(Cfg::RX_SIZE - 1);
// Calculate count of bytes stored into the RX buffer
// Keep track of the maximum count of enqueued bytes
if (Cfg::MAX_RX_QUEUED) NOLESS(rx_max_enqueued, rx_count);
if (Cfg::XONOFF) {
// If the last char that was sent was an XON
if ((xon_xoff_state & XON_XOFF_CHAR_MASK) == XON_CHAR) {
// Bytes stored into the RX buffer
const ring_buffer_pos_t rx_count = (ring_buffer_pos_t)(h - t) & (ring_buffer_pos_t)(Cfg::RX_SIZE - 1);
// If over 12.5% of RX buffer capacity, send XOFF before running out of
// RX buffer space .. 325 bytes @ 250kbits/s needed to let the host react
// and stop sending bytes. This translates to 13mS propagation time.
if (rx_count >= (Cfg::RX_SIZE) / 8) {
// At this point, definitely no TX interrupt was executing, since the TX isr can't be preempted.
// Don't enable the TX interrupt here as a means to trigger the XOFF char, because if it happens
// to be in the middle of trying to disable the RX interrupt in the main program, eventually the
// enabling of the TX interrupt could be undone. The ONLY reliable thing this can do to ensure
// the sending of the XOFF char is to send it HERE AND NOW.
// About to send the XOFF char
xon_xoff_state = XOFF_CHAR | XON_XOFF_CHAR_SENT;
// Wait until the TX register becomes empty and send it - Here there could be a problem
// - While waiting for the TX register to empty, the RX register could receive a new
// character. This must also handle that situation!
uint32_t status;
while (!((status = HWUART->UART_SR) & UART_SR_TXRDY)) {
if (status & UART_SR_RXRDY) {
// We received a char while waiting for the TX buffer to be empty - Receive and process it!
i = (ring_buffer_pos_t)(h + 1) & (ring_buffer_pos_t)(Cfg::RX_SIZE - 1);
// Read the character from the USART
c = HWUART->UART_RHR;
if (Cfg::EMERGENCYPARSER) emergency_parser.update(emergency_state, c);
// If the character is to be stored at the index just before the tail
// (such that the head would advance to the current tail), the FIFO is
// full, so don't write the character or advance the head.
if (i != t) {
rx_buffer.buffer[h] = c;
h = i;
}
else if (Cfg::DROPPED_RX && !++rx_dropped_bytes)
--rx_dropped_bytes;
}
sw_barrier();
}
HWUART->UART_THR = XOFF_CHAR;
// At this point there could be a race condition between the write() function
// and this sending of the XOFF char. This interrupt could happen between the
// wait to be empty TX buffer loop and the actual write of the character. Since
// the TX buffer is full because it's sending the XOFF char, the only way to be
// sure the write() function will succeed is to wait for the XOFF char to be
// completely sent. Since an extra character could be received during the wait
// it must also be handled!
while (!((status = HWUART->UART_SR) & UART_SR_TXRDY)) {
if (status & UART_SR_RXRDY) {
// A char arrived while waiting for the TX buffer to be empty - Receive and process it!
i = (ring_buffer_pos_t)(h + 1) & (ring_buffer_pos_t)(Cfg::RX_SIZE - 1);
// Read the character from the USART
c = HWUART->UART_RHR;
if (Cfg::EMERGENCYPARSER) emergency_parser.update(emergency_state, c);
// If the character is to be stored at the index just before the tail
// (such that the head would advance to the current tail), the FIFO is
// full, so don't write the character or advance the head.
if (i != t) {
rx_buffer.buffer[h] = c;
h = i;
}
else if (Cfg::DROPPED_RX && !++rx_dropped_bytes)
--rx_dropped_bytes;
}
sw_barrier();
}
// At this point everything is ready. The write() function won't
// have any issues writing to the UART TX register if it needs to!
}
}
}
// Store the new head value
rx_buffer.head = h;
}
template<typename Cfg>
FORCE_INLINE void MarlinSerial<Cfg>::_tx_thr_empty_irq() {
if (Cfg::TX_SIZE > 0) {
// Read positions
uint8_t t = tx_buffer.tail;
const uint8_t h = tx_buffer.head;
if (Cfg::XONOFF) {
// If an XON char is pending to be sent, do it now
if (xon_xoff_state == XON_CHAR) {
// Send the character
HWUART->UART_THR = XON_CHAR;
// Remember we sent it.
xon_xoff_state = XON_CHAR | XON_XOFF_CHAR_SENT;
// If nothing else to transmit, just disable TX interrupts.
if (h == t) HWUART->UART_IDR = UART_IDR_TXRDY;
return;
}
}
// If nothing to transmit, just disable TX interrupts. This could
// happen as the result of the non atomicity of the disabling of RX
// interrupts that could end reenabling TX interrupts as a side effect.
if (h == t) {
HWUART->UART_IDR = UART_IDR_TXRDY;
return;
}
// There is something to TX, Send the next byte
const uint8_t c = tx_buffer.buffer[t];
t = (t + 1) & (Cfg::TX_SIZE - 1);
HWUART->UART_THR = c;
tx_buffer.tail = t;
// Disable interrupts if there is nothing to transmit following this byte
if (h == t) HWUART->UART_IDR = UART_IDR_TXRDY;
}
}
template<typename Cfg>
void MarlinSerial<Cfg>::UART_ISR() {
const uint32_t status = HWUART->UART_SR;
// Data received?
if (status & UART_SR_RXRDY) store_rxd_char();
if (Cfg::TX_SIZE > 0) {
// Something to send, and TX interrupts are enabled (meaning something to send)?
if ((status & UART_SR_TXRDY) && (HWUART->UART_IMR & UART_IMR_TXRDY)) _tx_thr_empty_irq();
}
// Acknowledge errors
if ((status & UART_SR_OVRE) || (status & UART_SR_FRAME)) {
if (Cfg::DROPPED_RX && (status & UART_SR_OVRE) && !++rx_dropped_bytes) --rx_dropped_bytes;
if (Cfg::RX_OVERRUNS && (status & UART_SR_OVRE) && !++rx_buffer_overruns) --rx_buffer_overruns;
if (Cfg::RX_FRAMING_ERRORS && (status & UART_SR_FRAME) && !++rx_framing_errors) --rx_framing_errors;
// TODO: error reporting outside ISR
HWUART->UART_CR = UART_CR_RSTSTA;
}
}
// Public Methods
template<typename Cfg>
void MarlinSerial<Cfg>::begin(const long baud_setting) {
// Disable UART interrupt in NVIC
NVIC_DisableIRQ( HWUART_IRQ );
// We NEED memory barriers to ensure Interrupts are actually disabled!
// ( https://dzone.com/articles/nvic-disabling-interrupts-on-arm-cortex-m-and-the )
__DSB();
__ISB();
// Disable clock
pmc_disable_periph_clk( HWUART_IRQ_ID );
// Configure PMC
pmc_enable_periph_clk( HWUART_IRQ_ID );
// Disable PDC channel
HWUART->UART_PTCR = UART_PTCR_RXTDIS | UART_PTCR_TXTDIS;
// Reset and disable receiver and transmitter
HWUART->UART_CR = UART_CR_RSTRX | UART_CR_RSTTX | UART_CR_RXDIS | UART_CR_TXDIS;
// Configure mode: 8bit, No parity, 1 bit stop
HWUART->UART_MR = UART_MR_CHMODE_NORMAL | US_MR_CHRL_8_BIT | US_MR_NBSTOP_1_BIT | UART_MR_PAR_NO;
// Configure baudrate (asynchronous, no oversampling)
HWUART->UART_BRGR = (SystemCoreClock / (baud_setting << 4));
// Configure interrupts
HWUART->UART_IDR = 0xFFFFFFFF;
HWUART->UART_IER = UART_IER_RXRDY | UART_IER_OVRE | UART_IER_FRAME;
// Install interrupt handler
install_isr(HWUART_IRQ, UART_ISR);
// Configure priority. We need a very high priority to avoid losing characters
// and we need to be able to preempt the Stepper ISR and everything else!
// (this could probably be fixed by using DMA with the Serial port)
NVIC_SetPriority(HWUART_IRQ, 1);
// Enable UART interrupt in NVIC
NVIC_EnableIRQ(HWUART_IRQ);
// Enable receiver and transmitter
HWUART->UART_CR = UART_CR_RXEN | UART_CR_TXEN;
if (Cfg::TX_SIZE > 0) _written = false;
}
template<typename Cfg>
void MarlinSerial<Cfg>::end() {
// Disable UART interrupt in NVIC
NVIC_DisableIRQ( HWUART_IRQ );
// We NEED memory barriers to ensure Interrupts are actually disabled!
// ( https://dzone.com/articles/nvic-disabling-interrupts-on-arm-cortex-m-and-the )
__DSB();
__ISB();
pmc_disable_periph_clk( HWUART_IRQ_ID );
}
template<typename Cfg>
int MarlinSerial<Cfg>::peek() {
const int v = rx_buffer.head == rx_buffer.tail ? -1 : rx_buffer.buffer[rx_buffer.tail];
return v;
}
template<typename Cfg>
int MarlinSerial<Cfg>::read() {
const ring_buffer_pos_t h = rx_buffer.head;
ring_buffer_pos_t t = rx_buffer.tail;
if (h == t) return -1;
int v = rx_buffer.buffer[t];
t = (ring_buffer_pos_t)(t + 1) & (Cfg::RX_SIZE - 1);
// Advance tail
rx_buffer.tail = t;
if (Cfg::XONOFF) {
// If the XOFF char was sent, or about to be sent...
if ((xon_xoff_state & XON_XOFF_CHAR_MASK) == XOFF_CHAR) {
// Get count of bytes in the RX buffer
const ring_buffer_pos_t rx_count = (ring_buffer_pos_t)(h - t) & (ring_buffer_pos_t)(Cfg::RX_SIZE - 1);
// When below 10% of RX buffer capacity, send XON before running out of RX buffer bytes
if (rx_count < (Cfg::RX_SIZE) / 10) {
if (Cfg::TX_SIZE > 0) {
// Signal we want an XON character to be sent.
xon_xoff_state = XON_CHAR;
// Enable TX isr.
HWUART->UART_IER = UART_IER_TXRDY;
}
else {
// If not using TX interrupts, we must send the XON char now
xon_xoff_state = XON_CHAR | XON_XOFF_CHAR_SENT;
while (!(HWUART->UART_SR & UART_SR_TXRDY)) sw_barrier();
HWUART->UART_THR = XON_CHAR;
}
}
}
}
return v;
}
template<typename Cfg>
typename MarlinSerial<Cfg>::ring_buffer_pos_t MarlinSerial<Cfg>::available() {
const ring_buffer_pos_t h = rx_buffer.head, t = rx_buffer.tail;
return (ring_buffer_pos_t)(Cfg::RX_SIZE + h - t) & (Cfg::RX_SIZE - 1);
}
template<typename Cfg>
void MarlinSerial<Cfg>::flush() {
rx_buffer.tail = rx_buffer.head;
if (Cfg::XONOFF) {
if ((xon_xoff_state & XON_XOFF_CHAR_MASK) == XOFF_CHAR) {
if (Cfg::TX_SIZE > 0) {
// Signal we want an XON character to be sent.
xon_xoff_state = XON_CHAR;
// Enable TX isr.
HWUART->UART_IER = UART_IER_TXRDY;
}
else {
// If not using TX interrupts, we must send the XON char now
xon_xoff_state = XON_CHAR | XON_XOFF_CHAR_SENT;
while (!(HWUART->UART_SR & UART_SR_TXRDY)) sw_barrier();
HWUART->UART_THR = XON_CHAR;
}
}
}
}
template<typename Cfg>
size_t MarlinSerial<Cfg>::write(const uint8_t c) {
_written = true;
if (Cfg::TX_SIZE == 0) {
while (!(HWUART->UART_SR & UART_SR_TXRDY)) sw_barrier();
HWUART->UART_THR = c;
}
else {
// If the TX interrupts are disabled and the data register
// is empty, just write the byte to the data register and
// be done. This shortcut helps significantly improve the
// effective datarate at high (>500kbit/s) bitrates, where
// interrupt overhead becomes a slowdown.
// Yes, there is a race condition between the sending of the
// XOFF char at the RX isr, but it is properly handled there
if (!(HWUART->UART_IMR & UART_IMR_TXRDY) && (HWUART->UART_SR & UART_SR_TXRDY)) {
HWUART->UART_THR = c;
return 1;
}
const uint8_t i = (tx_buffer.head + 1) & (Cfg::TX_SIZE - 1);
// If global interrupts are disabled (as the result of being called from an ISR)...
if (!ISRS_ENABLED()) {
// Make room by polling if it is possible to transmit, and do so!
while (i == tx_buffer.tail) {
// If we can transmit another byte, do it.
if (HWUART->UART_SR & UART_SR_TXRDY) _tx_thr_empty_irq();
// Make sure compiler rereads tx_buffer.tail
sw_barrier();
}
}
else {
// Interrupts are enabled, just wait until there is space
while (i == tx_buffer.tail) sw_barrier();
}
// Store new char. head is always safe to move
tx_buffer.buffer[tx_buffer.head] = c;
tx_buffer.head = i;
// Enable TX isr - Non atomic, but it will eventually enable TX isr
HWUART->UART_IER = UART_IER_TXRDY;
}
return 1;
}
template<typename Cfg>
void MarlinSerial<Cfg>::flushTX() {
// TX
if (Cfg::TX_SIZE == 0) {
// No bytes written, no need to flush. This special case is needed since there's
// no way to force the TXC (transmit complete) bit to 1 during initialization.
if (!_written) return;
// Wait until everything was transmitted
while (!(HWUART->UART_SR & UART_SR_TXEMPTY)) sw_barrier();
// At this point nothing is queued anymore (DRIE is disabled) and
// the hardware finished transmission (TXC is set).
}
else {
// If we have never written a byte, no need to flush. This special
// case is needed since there is no way to force the TXC (transmit
// complete) bit to 1 during initialization
if (!_written) return;
// If global interrupts are disabled (as the result of being called from an ISR)...
if (!ISRS_ENABLED()) {
// Wait until everything was transmitted - We must do polling, as interrupts are disabled
while (tx_buffer.head != tx_buffer.tail || !(HWUART->UART_SR & UART_SR_TXEMPTY)) {
// If there is more space, send an extra character
if (HWUART->UART_SR & UART_SR_TXRDY) _tx_thr_empty_irq();
sw_barrier();
}
}
else {
// Wait until everything was transmitted
while (tx_buffer.head != tx_buffer.tail || !(HWUART->UART_SR & UART_SR_TXEMPTY)) sw_barrier();
}
// At this point nothing is queued anymore (DRIE is disabled) and
// the hardware finished transmission (TXC is set).
}
}
// If not using the USB port as serial port
#if defined(SERIAL_PORT) && SERIAL_PORT >= 0
template class MarlinSerial< MarlinSerialCfg<SERIAL_PORT> >;
MSerialT1 customizedSerial1(MarlinSerialCfg<SERIAL_PORT>::EMERGENCYPARSER);
#endif
#if defined(SERIAL_PORT_2) && SERIAL_PORT_2 >= 0
template class MarlinSerial< MarlinSerialCfg<SERIAL_PORT_2> >;
MSerialT2 customizedSerial2(MarlinSerialCfg<SERIAL_PORT_2>::EMERGENCYPARSER);
#endif
#if defined(SERIAL_PORT_3) && SERIAL_PORT_3 >= 0
template class MarlinSerial< MarlinSerialCfg<SERIAL_PORT_3> >;
MSerialT3 customizedSerial3(MarlinSerialCfg<SERIAL_PORT_3>::EMERGENCYPARSER);
#endif
#endif // ARDUINO_ARCH_SAM
+156
View File
@@ -0,0 +1,156 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* MarlinSerial_Due.h - Hardware serial library for Arduino DUE
* Copyright (c) 2017 Eduardo José Tagle. All right reserved
* Based on MarlinSerial for AVR, copyright (c) 2006 Nicholas Zambetti. All right reserved.
*/
#include <WString.h>
#include "../../inc/MarlinConfigPre.h"
#include "../../core/serial_hook.h"
// Define constants and variables for buffering incoming serial data. We're
// using a ring buffer (I think), in which rx_buffer_head is the index of the
// location to which to write the next incoming character and rx_buffer_tail
// is the index of the location from which to read.
// 256 is the max limit due to uint8_t head and tail. Use only powers of 2. (...,16,32,64,128,256)
#ifndef RX_BUFFER_SIZE
#define RX_BUFFER_SIZE 128
#endif
#ifndef TX_BUFFER_SIZE
#define TX_BUFFER_SIZE 32
#endif
//#if ENABLED(SERIAL_XON_XOFF) && RX_BUFFER_SIZE < 1024
// #error "SERIAL_XON_XOFF requires RX_BUFFER_SIZE >= 1024 for reliable transfers without drops."
//#elif RX_BUFFER_SIZE && (RX_BUFFER_SIZE < 2 || !IS_POWER_OF_2(RX_BUFFER_SIZE))
// #error "RX_BUFFER_SIZE must be a power of 2 greater than 1."
//#elif TX_BUFFER_SIZE && (TX_BUFFER_SIZE < 2 || TX_BUFFER_SIZE > 256 || !IS_POWER_OF_2(TX_BUFFER_SIZE))
// #error "TX_BUFFER_SIZE must be 0, a power of 2 greater than 1, and no greater than 256."
//#endif
// Templated type selector
template<bool b, typename T, typename F> struct TypeSelector { typedef T type;} ;
template<typename T, typename F> struct TypeSelector<false, T, F> { typedef F type; };
// Templated structure wrapper
template<typename S, unsigned int addr> struct StructWrapper {
constexpr StructWrapper(int) {}
FORCE_INLINE S* operator->() const { return (S*)addr; }
};
template<typename Cfg>
class MarlinSerial {
protected:
// Information for all supported UARTs
static constexpr uint32_t BASES[] = {0x400E0800U, 0x40098000U, 0x4009C000U, 0x400A0000U, 0x400A4000U};
static constexpr IRQn_Type IRQS[] = { UART_IRQn, USART0_IRQn, USART1_IRQn, USART2_IRQn, USART3_IRQn};
static constexpr int IRQ_IDS[] = { ID_UART, ID_USART0, ID_USART1, ID_USART2, ID_USART3};
// Alias for shorter code
static constexpr StructWrapper<Uart,BASES[Cfg::PORT]> HWUART = 0;
static constexpr IRQn_Type HWUART_IRQ = IRQS[Cfg::PORT];
static constexpr int HWUART_IRQ_ID = IRQ_IDS[Cfg::PORT];
// Base size of type on buffer size
typedef typename TypeSelector<(Cfg::RX_SIZE>256), uint16_t, uint8_t>::type ring_buffer_pos_t;
struct ring_buffer_r {
volatile ring_buffer_pos_t head, tail;
unsigned char buffer[Cfg::RX_SIZE];
};
struct ring_buffer_t {
volatile uint8_t head, tail;
unsigned char buffer[Cfg::TX_SIZE];
};
static ring_buffer_r rx_buffer;
static ring_buffer_t tx_buffer;
static bool _written;
static constexpr uint8_t XON_XOFF_CHAR_SENT = 0x80, // XON / XOFF Character was sent
XON_XOFF_CHAR_MASK = 0x1F; // XON / XOFF character to send
// XON / XOFF character definitions
static constexpr uint8_t XON_CHAR = 17, XOFF_CHAR = 19;
static uint8_t xon_xoff_state,
rx_dropped_bytes,
rx_buffer_overruns,
rx_framing_errors;
static ring_buffer_pos_t rx_max_enqueued;
FORCE_INLINE static void store_rxd_char();
FORCE_INLINE static void _tx_thr_empty_irq();
static void UART_ISR();
public:
MarlinSerial() {};
static void begin(const long);
static void end();
static int peek();
static int read();
static void flush();
static ring_buffer_pos_t available();
static size_t write(const uint8_t c);
static void flushTX();
static inline bool emergency_parser_enabled() { return Cfg::EMERGENCYPARSER; }
FORCE_INLINE static uint8_t dropped() { return Cfg::DROPPED_RX ? rx_dropped_bytes : 0; }
FORCE_INLINE static uint8_t buffer_overruns() { return Cfg::RX_OVERRUNS ? rx_buffer_overruns : 0; }
FORCE_INLINE static uint8_t framing_errors() { return Cfg::RX_FRAMING_ERRORS ? rx_framing_errors : 0; }
FORCE_INLINE static ring_buffer_pos_t rxMaxEnqueued() { return Cfg::MAX_RX_QUEUED ? rx_max_enqueued : 0; }
};
// Serial port configuration
template <uint8_t serial>
struct MarlinSerialCfg {
static constexpr int PORT = serial;
static constexpr unsigned int RX_SIZE = RX_BUFFER_SIZE;
static constexpr unsigned int TX_SIZE = TX_BUFFER_SIZE;
static constexpr bool XONOFF = ENABLED(SERIAL_XON_XOFF);
static constexpr bool EMERGENCYPARSER = ENABLED(EMERGENCY_PARSER);
static constexpr bool DROPPED_RX = ENABLED(SERIAL_STATS_DROPPED_RX);
static constexpr bool RX_OVERRUNS = ENABLED(SERIAL_STATS_RX_BUFFER_OVERRUNS);
static constexpr bool RX_FRAMING_ERRORS = ENABLED(SERIAL_STATS_RX_FRAMING_ERRORS);
static constexpr bool MAX_RX_QUEUED = ENABLED(SERIAL_STATS_MAX_RX_QUEUED);
};
#if defined(SERIAL_PORT) && SERIAL_PORT >= 0
typedef Serial1Class< MarlinSerial< MarlinSerialCfg<SERIAL_PORT> > > MSerialT1;
extern MSerialT1 customizedSerial1;
#endif
#if defined(SERIAL_PORT_2) && SERIAL_PORT_2 >= 0
typedef Serial1Class< MarlinSerial< MarlinSerialCfg<SERIAL_PORT_2> > > MSerialT2;
extern MSerialT2 customizedSerial2;
#endif
#if defined(SERIAL_PORT_3) && SERIAL_PORT_3 >= 0
typedef Serial1Class< MarlinSerial< MarlinSerialCfg<SERIAL_PORT_3> > > MSerialT3;
extern MSerialT3 customizedSerial3;
#endif
+142
View File
@@ -0,0 +1,142 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#ifdef ARDUINO_ARCH_SAM
/**
* MarlinSerial_Due.cpp - Hardware serial library for Arduino DUE
* Copyright (c) 2017 Eduardo José Tagle. All right reserved
* Based on MarlinSerial for AVR, copyright (c) 2006 Nicholas Zambetti. All right reserved.
*/
#include "../../inc/MarlinConfig.h"
#if HAS_USB_SERIAL
#include "MarlinSerialUSB.h"
// Imports from Atmel USB Stack/CDC implementation
extern "C" {
bool usb_task_cdc_isenabled();
bool usb_task_cdc_dtr_active();
bool udi_cdc_is_rx_ready();
int udi_cdc_getc();
bool udi_cdc_is_tx_ready();
int udi_cdc_putc(int value);
};
// Pending character
static int pending_char = -1;
// Public Methods
void MarlinSerialUSB::begin(const long) {}
void MarlinSerialUSB::end() {}
int MarlinSerialUSB::peek() {
if (pending_char >= 0)
return pending_char;
// If USB CDC not enumerated or not configured on the PC side
if (!usb_task_cdc_isenabled())
return -1;
// If no bytes sent from the PC
if (!udi_cdc_is_rx_ready())
return -1;
pending_char = udi_cdc_getc();
TERN_(EMERGENCY_PARSER, emergency_parser.update(static_cast<MSerialT1*>(this)->emergency_state, (char)pending_char));
return pending_char;
}
int MarlinSerialUSB::read() {
if (pending_char >= 0) {
int ret = pending_char;
pending_char = -1;
return ret;
}
// If USB CDC not enumerated or not configured on the PC side
if (!usb_task_cdc_isenabled())
return -1;
// If no bytes sent from the PC
if (!udi_cdc_is_rx_ready())
return -1;
int c = udi_cdc_getc();
TERN_(EMERGENCY_PARSER, emergency_parser.update(static_cast<MSerialT1*>(this)->emergency_state, (char)c));
return c;
}
int MarlinSerialUSB::available() {
if (pending_char > 0) return pending_char;
return pending_char == 0 ||
// or USB CDC enumerated and configured on the PC side and some bytes where sent to us */
(usb_task_cdc_isenabled() && udi_cdc_is_rx_ready());
}
void MarlinSerialUSB::flush() { }
size_t MarlinSerialUSB::write(const uint8_t c) {
/* Do not even bother sending anything if USB CDC is not enumerated
or not configured on the PC side or there is no program on the PC
listening to our messages */
if (!usb_task_cdc_isenabled() || !usb_task_cdc_dtr_active())
return 0;
/* Wait until the PC has read the pending to be sent data */
while (usb_task_cdc_isenabled() &&
usb_task_cdc_dtr_active() &&
!udi_cdc_is_tx_ready()) {
};
/* Do not even bother sending anything if USB CDC is not enumerated
or not configured on the PC side or there is no program on the PC
listening to our messages at this point */
if (!usb_task_cdc_isenabled() || !usb_task_cdc_dtr_active())
return 0;
// Fifo full
// udi_cdc_signal_overrun();
udi_cdc_putc(c);
return 1;
}
// Preinstantiate
#if SERIAL_PORT == -1
MSerialT1 customizedSerial1(TERN0(EMERGENCY_PARSER, true));
#endif
#if SERIAL_PORT_2 == -1
MSerialT2 customizedSerial2(TERN0(EMERGENCY_PARSER, true));
#endif
#if SERIAL_PORT_3 == -1
MSerialT3 customizedSerial3(TERN0(EMERGENCY_PARSER, true));
#endif
#endif // HAS_USB_SERIAL
#endif // ARDUINO_ARCH_SAM
+65
View File
@@ -0,0 +1,65 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* MarlinSerialUSB_Due.h - Hardware Serial over USB (CDC) library for Arduino DUE
* Copyright (c) 2017 Eduardo José Tagle. All right reserved
*/
#include "../../inc/MarlinConfig.h"
#include "../../core/serial_hook.h"
#include <WString.h>
struct MarlinSerialUSB {
void begin(const long);
void end();
int peek();
int read();
void flush();
int available();
size_t write(const uint8_t c);
#if ENABLED(SERIAL_STATS_DROPPED_RX)
FORCE_INLINE uint32_t dropped() { return 0; }
#endif
#if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
FORCE_INLINE int rxMaxEnqueued() { return 0; }
#endif
};
#if SERIAL_PORT == -1
typedef Serial1Class<MarlinSerialUSB> MSerialT1;
extern MSerialT1 customizedSerial1;
#endif
#if SERIAL_PORT_2 == -1
typedef Serial1Class<MarlinSerialUSB> MSerialT2;
extern MSerialT2 customizedSerial2;
#endif
#if SERIAL_PORT_3 == -1
typedef Serial1Class<MarlinSerialUSB> MSerialT3;
extern MSerialT3 customizedSerial3;
#endif
+159
View File
@@ -0,0 +1,159 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/*
Copyright (c) 2013 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef ARDUINO_ARCH_SAM
#include "../../inc/MarlinConfig.h"
#if HAS_SERVOS
#include "../shared/servo.h"
#include "../shared/servo_private.h"
static volatile int8_t Channel[_Nbr_16timers]; // counter for the servo being pulsed for each timer (or -1 if refresh interval)
// ------------------------
/// Interrupt handler for the TC0 channel 1.
// ------------------------
void Servo_Handler(timer16_Sequence_t timer, Tc *pTc, uint8_t channel);
#ifdef _useTimer1
void HANDLER_FOR_TIMER1() { Servo_Handler(_timer1, TC_FOR_TIMER1, CHANNEL_FOR_TIMER1); }
#endif
#ifdef _useTimer2
void HANDLER_FOR_TIMER2() { Servo_Handler(_timer2, TC_FOR_TIMER2, CHANNEL_FOR_TIMER2); }
#endif
#ifdef _useTimer3
void HANDLER_FOR_TIMER3() { Servo_Handler(_timer3, TC_FOR_TIMER3, CHANNEL_FOR_TIMER3); }
#endif
#ifdef _useTimer4
void HANDLER_FOR_TIMER4() { Servo_Handler(_timer4, TC_FOR_TIMER4, CHANNEL_FOR_TIMER4); }
#endif
#ifdef _useTimer5
void HANDLER_FOR_TIMER5() { Servo_Handler(_timer5, TC_FOR_TIMER5, CHANNEL_FOR_TIMER5); }
#endif
void Servo_Handler(timer16_Sequence_t timer, Tc *tc, uint8_t channel) {
// clear interrupt
tc->TC_CHANNEL[channel].TC_SR;
if (Channel[timer] < 0)
tc->TC_CHANNEL[channel].TC_CCR |= TC_CCR_SWTRG; // channel set to -1 indicated that refresh interval completed so reset the timer
else if (SERVO_INDEX(timer, Channel[timer]) < ServoCount && SERVO(timer, Channel[timer]).Pin.isActive)
extDigitalWrite(SERVO(timer, Channel[timer]).Pin.nbr, LOW); // pulse this channel low if activated
Channel[timer]++; // increment to the next channel
if (SERVO_INDEX(timer, Channel[timer]) < ServoCount && Channel[timer] < SERVOS_PER_TIMER) {
tc->TC_CHANNEL[channel].TC_RA = tc->TC_CHANNEL[channel].TC_CV + SERVO(timer,Channel[timer]).ticks;
if (SERVO(timer,Channel[timer]).Pin.isActive) // check if activated
extDigitalWrite(SERVO(timer, Channel[timer]).Pin.nbr, HIGH); // its an active channel so pulse it high
}
else {
// finished all channels so wait for the refresh period to expire before starting over
tc->TC_CHANNEL[channel].TC_RA =
tc->TC_CHANNEL[channel].TC_CV < usToTicks(REFRESH_INTERVAL) - 4
? (unsigned int)usToTicks(REFRESH_INTERVAL) // allow a few ticks to ensure the next OCR1A not missed
: tc->TC_CHANNEL[channel].TC_CV + 4; // at least REFRESH_INTERVAL has elapsed
Channel[timer] = -1; // this will get incremented at the end of the refresh period to start again at the first channel
}
}
static void _initISR(Tc *tc, uint32_t channel, uint32_t id, IRQn_Type irqn) {
pmc_enable_periph_clk(id);
TC_Configure(tc, channel,
TC_CMR_TCCLKS_TIMER_CLOCK3 | // MCK/32
TC_CMR_WAVE | // Waveform mode
TC_CMR_WAVSEL_UP_RC ); // Counter running up and reset when equals to RC
/* 84MHz, MCK/32, for 1.5ms: 3937 */
TC_SetRA(tc, channel, 2625); // 1ms
/* Configure and enable interrupt */
NVIC_EnableIRQ(irqn);
// TC_IER_CPAS: RA Compare
tc->TC_CHANNEL[channel].TC_IER = TC_IER_CPAS;
// Enables the timer clock and performs a software reset to start the counting
TC_Start(tc, channel);
}
void initISR(timer16_Sequence_t timer) {
#ifdef _useTimer1
if (timer == _timer1)
_initISR(TC_FOR_TIMER1, CHANNEL_FOR_TIMER1, ID_TC_FOR_TIMER1, IRQn_FOR_TIMER1);
#endif
#ifdef _useTimer2
if (timer == _timer2)
_initISR(TC_FOR_TIMER2, CHANNEL_FOR_TIMER2, ID_TC_FOR_TIMER2, IRQn_FOR_TIMER2);
#endif
#ifdef _useTimer3
if (timer == _timer3)
_initISR(TC_FOR_TIMER3, CHANNEL_FOR_TIMER3, ID_TC_FOR_TIMER3, IRQn_FOR_TIMER3);
#endif
#ifdef _useTimer4
if (timer == _timer4)
_initISR(TC_FOR_TIMER4, CHANNEL_FOR_TIMER4, ID_TC_FOR_TIMER4, IRQn_FOR_TIMER4);
#endif
#ifdef _useTimer5
if (timer == _timer5)
_initISR(TC_FOR_TIMER5, CHANNEL_FOR_TIMER5, ID_TC_FOR_TIMER5, IRQn_FOR_TIMER5);
#endif
}
void finISR(timer16_Sequence_t) {
#ifdef _useTimer1
TC_Stop(TC_FOR_TIMER1, CHANNEL_FOR_TIMER1);
#endif
#ifdef _useTimer2
TC_Stop(TC_FOR_TIMER2, CHANNEL_FOR_TIMER2);
#endif
#ifdef _useTimer3
TC_Stop(TC_FOR_TIMER3, CHANNEL_FOR_TIMER3);
#endif
#ifdef _useTimer4
TC_Stop(TC_FOR_TIMER4, CHANNEL_FOR_TIMER4);
#endif
#ifdef _useTimer5
TC_Stop(TC_FOR_TIMER5, CHANNEL_FOR_TIMER5);
#endif
}
#endif // HAS_SERVOS
#endif // ARDUINO_ARCH_SAM
+107
View File
@@ -0,0 +1,107 @@
/**
* Copyright (c) 2013 Arduino LLC. All right reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* Defines for 16 bit timers used with Servo library
*
* If _useTimerX is defined then TimerX is a 32 bit timer on the current board
* timer16_Sequence_t enumerates the sequence that the timers should be allocated
* _Nbr_16timers indicates how many timers are available.
*/
/**
* SAM Only definitions
* --------------------
*/
// For SAM3X:
//!#define _useTimer1
//!#define _useTimer2
#define _useTimer3
//!#define _useTimer4
#define _useTimer5
#define TRIM_DURATION 2 // compensation ticks to trim adjust for digitalWrite delays
#define SERVO_TIMER_PRESCALER 32 // timer prescaler
/*
TC0, chan 0 => TC0_Handler
TC0, chan 1 => TC1_Handler
TC0, chan 2 => TC2_Handler
TC1, chan 0 => TC3_Handler
TC1, chan 1 => TC4_Handler
TC1, chan 2 => TC5_Handler
TC2, chan 0 => TC6_Handler
TC2, chan 1 => TC7_Handler
TC2, chan 2 => TC8_Handler
*/
#ifdef _useTimer1
#define TC_FOR_TIMER1 TC1
#define CHANNEL_FOR_TIMER1 0
#define ID_TC_FOR_TIMER1 ID_TC3
#define IRQn_FOR_TIMER1 TC3_IRQn
#define HANDLER_FOR_TIMER1 TC3_Handler
#endif
#ifdef _useTimer2
#define TC_FOR_TIMER2 TC1
#define CHANNEL_FOR_TIMER2 1
#define ID_TC_FOR_TIMER2 ID_TC4
#define IRQn_FOR_TIMER2 TC4_IRQn
#define HANDLER_FOR_TIMER2 TC4_Handler
#endif
#ifdef _useTimer3
#define TC_FOR_TIMER3 TC1
#define CHANNEL_FOR_TIMER3 2
#define ID_TC_FOR_TIMER3 ID_TC5
#define IRQn_FOR_TIMER3 TC5_IRQn
#define HANDLER_FOR_TIMER3 TC5_Handler
#endif
#ifdef _useTimer4
#define TC_FOR_TIMER4 TC0
#define CHANNEL_FOR_TIMER4 2
#define ID_TC_FOR_TIMER4 ID_TC2
#define IRQn_FOR_TIMER4 TC2_IRQn
#define HANDLER_FOR_TIMER4 TC2_Handler
#endif
#ifdef _useTimer5
#define TC_FOR_TIMER5 TC0
#define CHANNEL_FOR_TIMER5 0
#define ID_TC_FOR_TIMER5 ID_TC0
#define IRQn_FOR_TIMER5 TC0_IRQn
#define HANDLER_FOR_TIMER5 TC0_Handler
#endif
typedef enum : unsigned char {
#ifdef _useTimer1
_timer1,
#endif
#ifdef _useTimer2
_timer2,
#endif
#ifdef _useTimer3
_timer3,
#endif
#ifdef _useTimer4
_timer4,
#endif
#ifdef _useTimer5
_timer5,
#endif
_Nbr_16timers
} timer16_Sequence_t;
+60
View File
@@ -0,0 +1,60 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* Description: Tone function for Arduino Due and compatible (SAM3X8E)
* Derived from https://forum.arduino.cc/index.php?topic=136500.msg2903012#msg2903012
*/
#ifdef ARDUINO_ARCH_SAM
#include "../../inc/MarlinConfig.h"
#include "HAL.h"
static pin_t tone_pin;
volatile static int32_t toggles;
void tone(const pin_t _pin, const unsigned int frequency, const unsigned long duration) {
tone_pin = _pin;
toggles = 2 * frequency * duration / 1000;
HAL_timer_start(TONE_TIMER_NUM, 2 * frequency);
}
void noTone(const pin_t _pin) {
HAL_timer_disable_interrupt(TONE_TIMER_NUM);
extDigitalWrite(_pin, LOW);
}
HAL_TONE_TIMER_ISR() {
static uint8_t pin_state = 0;
HAL_timer_isr_prologue(TONE_TIMER_NUM);
if (toggles) {
toggles--;
extDigitalWrite(tone_pin, (pin_state ^= 1));
}
else noTone(tone_pin); // turn off interrupt
}
#endif // ARDUINO_ARCH_SAM
@@ -0,0 +1,144 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* Based on u8g_com_msp430_hw_spi.c
*
* Universal 8bit Graphics Library
*
* Copyright (c) 2012, olikraus@gmail.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice, this
* list of conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef __SAM3X8E__
#include "../../../inc/MarlinConfigPre.h"
#if HAS_MARLINUI_U8GLIB
#include <U8glib.h>
#include "../../../MarlinCore.h"
#ifndef LCD_SPI_SPEED
#define LCD_SPI_SPEED SPI_QUARTER_SPEED
#endif
#include "../../shared/HAL_SPI.h"
#include "../fastio.h"
void u8g_SetPIOutput_DUE_hw_spi(u8g_t *u8g, uint8_t pin_index) {
PIO_Configure(g_APinDescription[u8g->pin_list[pin_index]].pPort, PIO_OUTPUT_1,
g_APinDescription[u8g->pin_list[pin_index]].ulPin, g_APinDescription[u8g->pin_list[pin_index]].ulPinConfiguration); // OUTPUT
}
void u8g_SetPILevel_DUE_hw_spi(u8g_t *u8g, uint8_t pin_index, uint8_t level) {
volatile Pio* port = g_APinDescription[u8g->pin_list[pin_index]].pPort;
uint32_t mask = g_APinDescription[u8g->pin_list[pin_index]].ulPin;
if (level) port->PIO_SODR = mask;
else port->PIO_CODR = mask;
}
uint8_t u8g_com_HAL_DUE_shared_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr) {
switch (msg) {
case U8G_COM_MSG_STOP:
break;
case U8G_COM_MSG_INIT:
u8g_SetPILevel_DUE_hw_spi(u8g, U8G_PI_CS, 1);
u8g_SetPILevel_DUE_hw_spi(u8g, U8G_PI_A0, 1);
u8g_SetPIOutput_DUE_hw_spi(u8g, U8G_PI_CS);
u8g_SetPIOutput_DUE_hw_spi(u8g, U8G_PI_A0);
u8g_Delay(5);
spiBegin();
spiInit(LCD_SPI_SPEED);
break;
case U8G_COM_MSG_ADDRESS: /* define cmd (arg_val = 0) or data mode (arg_val = 1) */
u8g_SetPILevel_DUE_hw_spi(u8g, U8G_PI_A0, arg_val);
break;
case U8G_COM_MSG_CHIP_SELECT:
u8g_SetPILevel_DUE_hw_spi(u8g, U8G_PI_CS, (arg_val ? 0 : 1));
break;
case U8G_COM_MSG_RESET:
break;
case U8G_COM_MSG_WRITE_BYTE:
spiSend((uint8_t)arg_val);
break;
case U8G_COM_MSG_WRITE_SEQ: {
uint8_t *ptr = (uint8_t*) arg_ptr;
while (arg_val > 0) {
spiSend(*ptr++);
arg_val--;
}
}
break;
case U8G_COM_MSG_WRITE_SEQ_P: {
uint8_t *ptr = (uint8_t*) arg_ptr;
while (arg_val > 0) {
spiSend(*ptr++);
arg_val--;
}
}
break;
}
return 1;
}
#endif // HAS_MARLINUI_U8GLIB
#endif // __SAM3X8E__
@@ -1,9 +1,9 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
@@ -55,52 +55,29 @@
#ifdef ARDUINO_ARCH_SAM
#include "../../inc/MarlinConfigPre.h"
#include "../../../inc/MarlinConfigPre.h"
#if HAS_GRAPHICAL_LCD
#if ENABLED(U8GLIB_ST7920)
#include "../../../inc/MarlinConfig.h"
#include "../../shared/Delay.h"
#include <U8glib.h>
#include <Arduino.h>
#include "../shared/Delay.h"
void u8g_SetPIOutput_DUE(u8g_t *u8g, uint8_t pin_index) {
PIO_Configure(g_APinDescription[u8g->pin_list[pin_index]].pPort, PIO_OUTPUT_1,
g_APinDescription[u8g->pin_list[pin_index]].ulPin, g_APinDescription[u8g->pin_list[pin_index]].ulPinConfiguration); // OUTPUT
}
#include "u8g_com_HAL_DUE_sw_spi_shared.h"
void u8g_SetPILevel_DUE(u8g_t *u8g, uint8_t pin_index, uint8_t level) {
volatile Pio* port = g_APinDescription[u8g->pin_list[pin_index]].pPort;
uint32_t mask = g_APinDescription[u8g->pin_list[pin_index]].ulPin;
if (level) port->PIO_SODR = mask; else port->PIO_CODR = mask;
}
Pio *SCK_pPio, *MOSI_pPio;
uint32_t SCK_dwMask, MOSI_dwMask;
static void spiSend_sw_DUE(uint8_t val) { // 800KHz
for (uint8_t i = 0; i < 8; i++) {
if (val & 0x80)
MOSI_pPio->PIO_SODR = MOSI_dwMask;
else
MOSI_pPio->PIO_CODR = MOSI_dwMask;
DELAY_NS(48);
SCK_pPio->PIO_SODR = SCK_dwMask;
DELAY_NS(905); // 762 dead, 810 garbage, 858/0 900kHz, 905/1 825k, 953/1 800k, 1000/2 725KHz
val <<= 1;
SCK_pPio->PIO_CODR = SCK_dwMask;
}
}
#define SPISEND_SW_DUE u8g_spiSend_sw_DUE_mode_0
static uint8_t rs_last_state = 255;
static void u8g_com_DUE_st7920_write_byte_sw_spi(uint8_t rs, uint8_t val) {
if (rs != rs_last_state) { // time to send a command/data byte
rs_last_state = rs;
spiSend_sw_DUE(rs ? 0x0FA : 0x0F8); // Command or Data
SPISEND_SW_DUE(rs ? 0x0FA : 0x0F8); // Command or Data
DELAY_US(40); // give the controller some time to process the data: 20 is bad, 30 is OK, 40 is safe
}
spiSend_sw_DUE(val & 0x0F0);
spiSend_sw_DUE(val << 4);
SPISEND_SW_DUE(val & 0xF0);
SPISEND_SW_DUE(val << 4);
}
uint8_t u8g_com_HAL_DUE_ST7920_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr) {
@@ -123,7 +100,7 @@ uint8_t u8g_com_HAL_DUE_ST7920_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_va
u8g_Delay(5);
u8g->pin_list[U8G_PI_A0_STATE] = 0; /* inital RS state: command mode */
u8g->pin_list[U8G_PI_A0_STATE] = 0; /* initial RS state: command mode */
break;
case U8G_COM_MSG_STOP:
@@ -168,6 +145,42 @@ uint8_t u8g_com_HAL_DUE_ST7920_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_va
return 1;
}
#endif // HAS_GRAPHICAL_LCD
#if ENABLED(LIGHTWEIGHT_UI)
#include "../../../lcd/marlinui.h"
#include "../../shared/HAL_ST7920.h"
#define ST7920_CS_PIN LCD_PINS_RS
#if DOGM_SPI_DELAY_US > 0
#define U8G_DELAY() DELAY_US(DOGM_SPI_DELAY_US)
#else
#define U8G_DELAY() DELAY_US(10)
#endif
void ST7920_cs() {
WRITE(ST7920_CS_PIN, HIGH);
U8G_DELAY();
}
void ST7920_ncs() {
WRITE(ST7920_CS_PIN, LOW);
}
void ST7920_set_cmd() {
SPISEND_SW_DUE(0xF8);
DELAY_US(40);
}
void ST7920_set_dat() {
SPISEND_SW_DUE(0xFA);
DELAY_US(40);
}
void ST7920_write_byte(const uint8_t val) {
SPISEND_SW_DUE(val & 0xF0);
SPISEND_SW_DUE(val << 4);
}
#endif // LIGHTWEIGHT_UI
#endif // U8GLIB_ST7920
#endif // ARDUINO_ARCH_SAM
@@ -0,0 +1,145 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* Based on u8g_com_std_sw_spi.c
*
* Universal 8bit Graphics Library
*
* Copyright (c) 2015, olikraus@gmail.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice, this
* list of conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef ARDUINO_ARCH_SAM
#include "../../../inc/MarlinConfigPre.h"
#if HAS_MARLINUI_U8GLIB && DISABLED(U8GLIB_ST7920)
#include "u8g_com_HAL_DUE_sw_spi_shared.h"
#include "../../shared/Marduino.h"
#include "../../shared/Delay.h"
#include <U8glib.h>
#if ENABLED(FYSETC_MINI_12864)
#define SPISEND_SW_DUE u8g_spiSend_sw_DUE_mode_3
#else
#define SPISEND_SW_DUE u8g_spiSend_sw_DUE_mode_0
#endif
uint8_t u8g_com_HAL_DUE_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr) {
switch (msg) {
case U8G_COM_MSG_INIT:
SCK_pPio = g_APinDescription[u8g->pin_list[U8G_PI_SCK]].pPort;
SCK_dwMask = g_APinDescription[u8g->pin_list[U8G_PI_SCK]].ulPin;
MOSI_pPio = g_APinDescription[u8g->pin_list[U8G_PI_MOSI]].pPort;
MOSI_dwMask = g_APinDescription[u8g->pin_list[U8G_PI_MOSI]].ulPin;
u8g_SetPIOutput_DUE(u8g, U8G_PI_SCK);
u8g_SetPIOutput_DUE(u8g, U8G_PI_MOSI);
u8g_SetPIOutput_DUE(u8g, U8G_PI_CS);
u8g_SetPIOutput_DUE(u8g, U8G_PI_A0);
if (U8G_PIN_NONE != u8g->pin_list[U8G_PI_RESET]) u8g_SetPIOutput_DUE(u8g, U8G_PI_RESET);
u8g_SetPILevel_DUE(u8g, U8G_PI_SCK, 0);
u8g_SetPILevel_DUE(u8g, U8G_PI_MOSI, 0);
break;
case U8G_COM_MSG_STOP:
break;
case U8G_COM_MSG_RESET:
if (U8G_PIN_NONE != u8g->pin_list[U8G_PI_RESET]) u8g_SetPILevel_DUE(u8g, U8G_PI_RESET, arg_val);
break;
case U8G_COM_MSG_CHIP_SELECT:
#if ENABLED(FYSETC_MINI_12864) // LCD SPI is running mode 3 while SD card is running mode 0
if (arg_val) { // SCK idle state needs to be set to the proper idle state before
// the next chip select goes active
u8g_SetPILevel_DUE(u8g, U8G_PI_SCK, 1); //set SCK to mode 3 idle state before CS goes active
u8g_SetPILevel_DUE(u8g, U8G_PI_CS, LOW);
}
else {
u8g_SetPILevel_DUE(u8g, U8G_PI_CS, HIGH);
u8g_SetPILevel_DUE(u8g, U8G_PI_SCK, 0); //set SCK to mode 0 idle state after CS goes inactive
}
#else
u8g_SetPILevel_DUE(u8g, U8G_PI_CS, !arg_val);
#endif
break;
case U8G_COM_MSG_WRITE_BYTE:
SPISEND_SW_DUE(arg_val);
break;
case U8G_COM_MSG_WRITE_SEQ: {
uint8_t *ptr = (uint8_t *)arg_ptr;
while (arg_val > 0) {
SPISEND_SW_DUE(*ptr++);
arg_val--;
}
}
break;
case U8G_COM_MSG_WRITE_SEQ_P: {
uint8_t *ptr = (uint8_t *)arg_ptr;
while (arg_val > 0) {
SPISEND_SW_DUE(u8g_pgm_read(ptr));
ptr++;
arg_val--;
}
}
break;
case U8G_COM_MSG_ADDRESS: /* define cmd (arg_val = 0) or data mode (arg_val = 1) */
u8g_SetPILevel_DUE(u8g, U8G_PI_A0, arg_val);
break;
}
return 1;
}
#endif // HAS_MARLINUI_U8GLIB && !U8GLIB_ST7920
#endif // ARDUINO_ARCH_SAM
@@ -0,0 +1,113 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* Based on u8g_com_st7920_hw_spi.c
*
* Universal 8bit Graphics Library
*
* Copyright (c) 2011, olikraus@gmail.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice, this
* list of conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef ARDUINO_ARCH_SAM
#include "../../../inc/MarlinConfigPre.h"
#if HAS_MARLINUI_U8GLIB
#include "../../../inc/MarlinConfig.h"
#include "../../shared/Delay.h"
#include <U8glib.h>
#include "u8g_com_HAL_DUE_sw_spi_shared.h"
void u8g_SetPIOutput_DUE(u8g_t *u8g, uint8_t pin_index) {
PIO_Configure(g_APinDescription[u8g->pin_list[pin_index]].pPort, PIO_OUTPUT_1,
g_APinDescription[u8g->pin_list[pin_index]].ulPin, g_APinDescription[u8g->pin_list[pin_index]].ulPinConfiguration); // OUTPUT
}
void u8g_SetPILevel_DUE(u8g_t *u8g, uint8_t pin_index, uint8_t level) {
volatile Pio* port = g_APinDescription[u8g->pin_list[pin_index]].pPort;
uint32_t mask = g_APinDescription[u8g->pin_list[pin_index]].ulPin;
if (level) port->PIO_SODR = mask; else port->PIO_CODR = mask;
}
Pio *SCK_pPio, *MOSI_pPio;
uint32_t SCK_dwMask, MOSI_dwMask;
void u8g_spiSend_sw_DUE_mode_0(uint8_t val) { // 3MHz
LOOP_L_N(i, 8) {
if (val & 0x80)
MOSI_pPio->PIO_SODR = MOSI_dwMask;
else
MOSI_pPio->PIO_CODR = MOSI_dwMask;
DELAY_NS(48);
SCK_pPio->PIO_SODR = SCK_dwMask;
DELAY_NS(905);
val <<= 1;
SCK_pPio->PIO_CODR = SCK_dwMask;
}
}
void u8g_spiSend_sw_DUE_mode_3(uint8_t val) { // 3.5MHz
LOOP_L_N(i, 8) {
SCK_pPio->PIO_CODR = SCK_dwMask;
DELAY_NS(50);
if (val & 0x80)
MOSI_pPio->PIO_SODR = MOSI_dwMask;
else
MOSI_pPio->PIO_CODR = MOSI_dwMask;
val <<= 1;
DELAY_NS(10);
SCK_pPio->PIO_SODR = SCK_dwMask;
DELAY_NS(70);
}
}
#endif // HAS_MARLINUI_U8GLIB
#endif // ARDUINO_ARCH_SAM
@@ -0,0 +1,35 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#include "../../../inc/MarlinConfigPre.h"
#include "../../shared/Marduino.h"
#include <U8glib.h>
void u8g_SetPIOutput_DUE(u8g_t *u8g, uint8_t pin_index);
void u8g_SetPILevel_DUE(u8g_t *u8g, uint8_t pin_index, uint8_t level);
void u8g_spiSend_sw_DUE_mode_0(uint8_t val);
void u8g_spiSend_sw_DUE_mode_3(uint8_t val);
extern Pio *SCK_pPio, *MOSI_pPio;
extern uint32_t SCK_dwMask, MOSI_dwMask;
File diff suppressed because it is too large Load Diff
+76
View File
@@ -0,0 +1,76 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
* Copyright (c) 2015-2016 Nico Tonnhofer wurstnase.reprap@gmail.com
* Copyright (c) 2016 Victor Perez victor_pv@hotmail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#ifdef ARDUINO_ARCH_SAM
#include "../../inc/MarlinConfig.h"
#if USE_WIRED_EEPROM
/**
* PersistentStore for Arduino-style EEPROM interface
* with simple implementations supplied by Marlin.
*/
#include "../shared/eeprom_if.h"
#include "../shared/eeprom_api.h"
#ifndef MARLIN_EEPROM_SIZE
#error "MARLIN_EEPROM_SIZE is required for I2C / SPI EEPROM."
#endif
size_t PersistentStore::capacity() { return MARLIN_EEPROM_SIZE; }
bool PersistentStore::access_start() { eeprom_init(); return true; }
bool PersistentStore::access_finish() { return true; }
bool PersistentStore::write_data(int &pos, const uint8_t *value, size_t size, uint16_t *crc) {
uint16_t written = 0;
while (size--) {
uint8_t * const p = (uint8_t * const)pos;
uint8_t v = *value;
if (v != eeprom_read_byte(p)) { // EEPROM has only ~100,000 write cycles, so only write bytes that have changed!
eeprom_write_byte(p, v);
if (++written & 0x7F) delay(2); else safe_delay(2); // Avoid triggering watchdog during long EEPROM writes
if (eeprom_read_byte(p) != v) {
SERIAL_ECHO_MSG(STR_ERR_EEPROM_WRITE);
return true;
}
}
crc16(crc, &v, 1);
pos++;
value++;
}
return false;
}
bool PersistentStore::read_data(int &pos, uint8_t *value, size_t size, uint16_t *crc, const bool writing/*=true*/) {
do {
uint8_t c = eeprom_read_byte((uint8_t*)pos);
if (writing) *value = c;
crc16(crc, &c, 1);
pos++;
value++;
} while (--size);
return false;
}
#endif // USE_WIRED_EEPROM
#endif // ARDUINO_ARCH_SAM
+73
View File
@@ -0,0 +1,73 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* Endstop Interrupts
*
* Without endstop interrupts the endstop pins must be polled continually in
* the temperature-ISR via endstops.update(), most of the time finding no change.
* With this feature endstops.update() is called only when we know that at
* least one endstop has changed state, saving valuable CPU cycles.
*
* This feature only works when all used endstop pins can generate an 'external interrupt'.
*
* Test whether pins issue interrupts on your board by flashing 'pin_interrupt_test.ino'.
* (Located in Marlin/buildroot/share/pin_interrupt_test/pin_interrupt_test.ino)
*/
#include "../../module/endstops.h"
// One ISR for all EXT-Interrupts
void endstop_ISR() { endstops.update(); }
/**
* Endstop interrupts for Due based targets.
* On Due, all pins support external interrupt capability.
*/
void setup_endstop_interrupts() {
#define _ATTACH(P) attachInterrupt(digitalPinToInterrupt(P), endstop_ISR, CHANGE)
TERN_(HAS_X_MAX, _ATTACH(X_MAX_PIN));
TERN_(HAS_X_MIN, _ATTACH(X_MIN_PIN));
TERN_(HAS_Y_MAX, _ATTACH(Y_MAX_PIN));
TERN_(HAS_Y_MIN, _ATTACH(Y_MIN_PIN));
TERN_(HAS_Z_MAX, _ATTACH(Z_MAX_PIN));
TERN_(HAS_Z_MIN, _ATTACH(Z_MIN_PIN));
TERN_(HAS_X2_MAX, _ATTACH(X2_MAX_PIN));
TERN_(HAS_X2_MIN, _ATTACH(X2_MIN_PIN));
TERN_(HAS_Y2_MAX, _ATTACH(Y2_MAX_PIN));
TERN_(HAS_Y2_MIN, _ATTACH(Y2_MIN_PIN));
TERN_(HAS_Z2_MAX, _ATTACH(Z2_MAX_PIN));
TERN_(HAS_Z2_MIN, _ATTACH(Z2_MIN_PIN));
TERN_(HAS_Z3_MAX, _ATTACH(Z3_MAX_PIN));
TERN_(HAS_Z3_MIN, _ATTACH(Z3_MIN_PIN));
TERN_(HAS_Z4_MAX, _ATTACH(Z4_MAX_PIN));
TERN_(HAS_Z4_MIN, _ATTACH(Z4_MIN_PIN));
TERN_(HAS_Z_MIN_PROBE_PIN, _ATTACH(Z_MIN_PROBE_PIN));
TERN_(HAS_I_MAX, _ATTACH(I_MAX_PIN));
TERN_(HAS_I_MIN, _ATTACH(I_MIN_PIN));
TERN_(HAS_J_MAX, _ATTACH(J_MAX_PIN));
TERN_(HAS_J_MIN, _ATTACH(J_MIN_PIN));
TERN_(HAS_K_MAX, _ATTACH(K_MAX_PIN));
TERN_(HAS_K_MIN, _ATTACH(K_MIN_PIN));
}
+565
View File
@@ -0,0 +1,565 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* Fast I/O Routines for SAM3X8E
* Use direct port manipulation to save scads of processor time.
* Contributed by Triffid_Hunter and modified by Kliment, thinkyhead, Bob-the-Kuhn, et.al.
*/
/**
* Description: Fast IO functions for Arduino Due and compatible (SAM3X8E)
*
* For ARDUINO_ARCH_SAM
* Note the code here was specifically crafted by disassembling what GCC produces
* out of it, so GCC is able to optimize it out as much as possible to the least
* amount of instructions. Be very careful if you modify them, as "clean code"
* leads to less efficient compiled code!!
*/
#include <pins_arduino.h>
#include "../../inc/MarlinConfigPre.h"
/**
* Utility functions
*/
// Due has 12 PWMs assigned to logical pins 2-13.
// 6, 7, 8 & 9 come from the PWM controller. The others come from the timers.
#define PWM_PIN(P) WITHIN(P, 2, 13)
#ifndef MASK
#define MASK(PIN) _BV(PIN)
#endif
/**
* Magic I/O routines
*
* Now you can simply SET_OUTPUT(STEP); WRITE(STEP, HIGH); WRITE(STEP, LOW);
*
* Why double up on these macros? see https://gcc.gnu.org/onlinedocs/cpp/Stringification.html
*/
// Read a pin
#define _READ(IO) bool(DIO ## IO ## _WPORT -> PIO_PDSR & MASK(DIO ## IO ## _PIN))
// Write to a pin
#define _WRITE(IO,V) do { \
volatile Pio* port = (DIO ## IO ## _WPORT); \
const uint32_t mask = MASK(DIO ## IO ## _PIN); \
if (V) port->PIO_SODR = mask; \
else port->PIO_CODR = mask; \
}while(0)
// Toggle a pin
#define _TOGGLE(IO) _WRITE(IO, !READ(IO))
#if MB(PRINTRBOARD_G2)
#include "fastio/G2_pins.h"
// Set pin as input
#define _SET_INPUT(IO) do{ \
pmc_enable_periph_clk(G2_g_APinDescription[IO].ulPeripheralId); \
PIO_Configure((DIO ## IO ## _WPORT), PIO_INPUT, MASK(DIO ## IO ## _PIN), 0); \
}while(0)
// Set pin as output
#define _SET_OUTPUT(IO) do{ \
uint32_t mask = MASK(G2_g_APinDescription[IO].ulPeripheralId); \
if ((PMC->PMC_PCSR0 & mask) != (mask)) PMC->PMC_PCER0 = mask; \
volatile Pio* port = (DIO ## IO ## _WPORT); \
mask = MASK(DIO ## IO ## _PIN); \
if (_READ(IO)) port->PIO_SODR = mask; \
else port->PIO_CODR = mask; \
port->PIO_IDR = mask; \
const uint32_t pin_config = G2_g_APinDescription[IO].ulPinConfiguration; \
if (pin_config & PIO_PULLUP) port->PIO_PUER = mask; \
else port->PIO_PUDR = mask; \
if (pin_config & PIO_OPENDRAIN) port->PIO_MDER = mask; \
else port->PIO_MDDR = mask; \
port->PIO_PER = mask; \
port->PIO_OER = mask; \
g_pinStatus[IO] = (g_pinStatus[IO] & 0xF0) | PIN_STATUS_DIGITAL_OUTPUT; \
}while(0)
/**
* Set pin as output with comments
* #define _SET_OUTPUT(IO) do{ \
* uint32_t mask = MASK(G2_g_APinDescription[IO].ulPeripheralId); \
* if ((PMC->PMC_PCSR0 & mask ) != (mask)) PMC->PMC_PCER0 = mask; \ // enable PIO clock if not already enabled
*
* volatile Pio* port = (DIO ## IO ## _WPORT); \
* const uint32_t mask = MASK(DIO ## IO ## _PIN); \
* if (_READ(IO)) port->PIO_SODR = mask; \ // set output to match input BEFORE setting direction or will glitch the output
* else port->PIO_CODR = mask; \
*
* port->PIO_IDR = mask; \ // disable interrupt
*
* uint32_t pin_config = G2_g_APinDescription[IO].ulPinConfiguration; \
* if (pin_config & PIO_PULLUP) pPio->PIO_PUER = mask; \ // enable pullup if necessary
* else pPio->PIO_PUDR = mask; \
*
* if (pin_config & PIO_OPENDRAIN) port->PIO_MDER = mask; \ // Enable multi-drive if necessary
* else port->PIO_MDDR = mask; \
*
* port->PIO_PER = mask; \
* port->PIO_OER = mask; \ // set to output
*
* g_pinStatus[IO] = (g_pinStatus[IO] & 0xF0) | PIN_STATUS_DIGITAL_OUTPUT; \
* }while(0)
*/
#else
// Set pin as input
#define _SET_INPUT(IO) do{ \
pmc_enable_periph_clk(g_APinDescription[IO].ulPeripheralId); \
PIO_Configure(digitalPinToPort(IO), PIO_INPUT, digitalPinToBitMask(IO), 0); \
}while(0)
// Set pin as output
#define _SET_OUTPUT(IO) do{ \
pmc_enable_periph_clk(g_APinDescription[IO].ulPeripheralId); \
PIO_Configure(digitalPinToPort(IO), _READ(IO) ? PIO_OUTPUT_1 : PIO_OUTPUT_0, digitalPinToBitMask(IO), g_APinDescription[IO].ulPinConfiguration); \
g_pinStatus[IO] = (g_pinStatus[IO] & 0xF0) | PIN_STATUS_DIGITAL_OUTPUT; \
}while(0)
#endif
// Set pin as input with pullup mode
#define _PULLUP(IO,V) pinMode(IO, (V) ? INPUT_PULLUP : INPUT)
// Read a pin (wrapper)
#define READ(IO) _READ(IO)
// Write to a pin (wrapper)
#define WRITE(IO,V) _WRITE(IO,V)
// Toggle a pin (wrapper)
#define TOGGLE(IO) _TOGGLE(IO)
// Set pin as input (wrapper)
#define SET_INPUT(IO) _SET_INPUT(IO)
// Set pin as input with pullup (wrapper)
#define SET_INPUT_PULLUP(IO) do{ _SET_INPUT(IO); _PULLUP(IO, HIGH); }while(0)
// Set pin as input with pulldown (substitution)
#define SET_INPUT_PULLDOWN SET_INPUT
// Set pin as output (wrapper) - reads the pin and sets the output to that value
#define SET_OUTPUT(IO) _SET_OUTPUT(IO)
// Set pin as PWM
#define SET_PWM SET_OUTPUT
// Check if pin is an input
#define IS_INPUT(IO) ((digitalPinToPort(IO)->PIO_OSR & digitalPinToBitMask(IO)) == 0)
// Check if pin is an output
#define IS_OUTPUT(IO) ((digitalPinToPort(IO)->PIO_OSR & digitalPinToBitMask(IO)) != 0)
// Shorthand
#define OUT_WRITE(IO,V) do{ SET_OUTPUT(IO); WRITE(IO,V); }while(0)
// digitalRead/Write wrappers
#define extDigitalRead(IO) digitalRead(IO)
#define extDigitalWrite(IO,V) digitalWrite(IO,V)
/**
* Ports and functions
* Added as necessary or if I feel like it- not a comprehensive list!
*/
// UART
#define RXD DIO0
#define TXD DIO1
// TWI (I2C)
#define SCL DIO21
#define SDA DIO20
/**
* pins
*/
#define DIO0_PIN 8
#define DIO0_WPORT PIOA
#define DIO1_PIN 9
#define DIO1_WPORT PIOA
#define DIO2_PIN 25
#define DIO2_WPORT PIOB
#define DIO3_PIN 28
#define DIO3_WPORT PIOC
#define DIO4_PIN 26
#define DIO4_WPORT PIOC
#define DIO5_PIN 25
#define DIO5_WPORT PIOC
#define DIO6_PIN 24
#define DIO6_WPORT PIOC
#define DIO7_PIN 23
#define DIO7_WPORT PIOC
#define DIO8_PIN 22
#define DIO8_WPORT PIOC
#define DIO9_PIN 21
#define DIO9_WPORT PIOC
#define DIO10_PIN 29
#define DIO10_WPORT PIOC
#define DIO11_PIN 7
#define DIO11_WPORT PIOD
#define DIO12_PIN 8
#define DIO12_WPORT PIOD
#define DIO13_PIN 27
#define DIO13_WPORT PIOB
#define DIO14_PIN 4
#define DIO14_WPORT PIOD
#define DIO15_PIN 5
#define DIO15_WPORT PIOD
#define DIO16_PIN 13
#define DIO16_WPORT PIOA
#define DIO17_PIN 12
#define DIO17_WPORT PIOA
#define DIO18_PIN 11
#define DIO18_WPORT PIOA
#define DIO19_PIN 10
#define DIO19_WPORT PIOA
#define DIO20_PIN 12
#define DIO20_WPORT PIOB
#define DIO21_PIN 13
#define DIO21_WPORT PIOB
#define DIO22_PIN 26
#define DIO22_WPORT PIOB
#define DIO23_PIN 14
#define DIO23_WPORT PIOA
#define DIO24_PIN 15
#define DIO24_WPORT PIOA
#define DIO25_PIN 0
#define DIO25_WPORT PIOD
#define DIO26_PIN 1
#define DIO26_WPORT PIOD
#define DIO27_PIN 2
#define DIO27_WPORT PIOD
#define DIO28_PIN 3
#define DIO28_WPORT PIOD
#define DIO29_PIN 6
#define DIO29_WPORT PIOD
#define DIO30_PIN 9
#define DIO30_WPORT PIOD
#define DIO31_PIN 7
#define DIO31_WPORT PIOA
#define DIO32_PIN 10
#define DIO32_WPORT PIOD
#define DIO33_PIN 1
#define DIO33_WPORT PIOC
#if !MB(PRINTRBOARD_G2) // normal DUE pin mapping
#define DIO34_PIN 2
#define DIO34_WPORT PIOC
#define DIO35_PIN 3
#define DIO35_WPORT PIOC
#define DIO36_PIN 4
#define DIO36_WPORT PIOC
#define DIO37_PIN 5
#define DIO37_WPORT PIOC
#define DIO38_PIN 6
#define DIO38_WPORT PIOC
#define DIO39_PIN 7
#define DIO39_WPORT PIOC
#define DIO40_PIN 8
#define DIO40_WPORT PIOC
#define DIO41_PIN 9
#define DIO41_WPORT PIOC
#endif // !PRINTRBOARD_G2
#define DIO42_PIN 19
#define DIO42_WPORT PIOA
#define DIO43_PIN 20
#define DIO43_WPORT PIOA
#define DIO44_PIN 19
#define DIO44_WPORT PIOC
#define DIO45_PIN 18
#define DIO45_WPORT PIOC
#define DIO46_PIN 17
#define DIO46_WPORT PIOC
#define DIO47_PIN 16
#define DIO47_WPORT PIOC
#define DIO48_PIN 15
#define DIO48_WPORT PIOC
#define DIO49_PIN 14
#define DIO49_WPORT PIOC
#define DIO50_PIN 13
#define DIO50_WPORT PIOC
#define DIO51_PIN 12
#define DIO51_WPORT PIOC
#define DIO52_PIN 21
#define DIO52_WPORT PIOB
#define DIO53_PIN 14
#define DIO53_WPORT PIOB
#define DIO54_PIN 16
#define DIO54_WPORT PIOA
#define DIO55_PIN 24
#define DIO55_WPORT PIOA
#define DIO56_PIN 23
#define DIO56_WPORT PIOA
#define DIO57_PIN 22
#define DIO57_WPORT PIOA
#define DIO58_PIN 6
#define DIO58_WPORT PIOA
#define DIO59_PIN 4
#define DIO59_WPORT PIOA
#define DIO60_PIN 3
#define DIO60_WPORT PIOA
#define DIO61_PIN 2
#define DIO61_WPORT PIOA
#define DIO62_PIN 17
#define DIO62_WPORT PIOB
#define DIO63_PIN 18
#define DIO63_WPORT PIOB
#define DIO64_PIN 19
#define DIO64_WPORT PIOB
#define DIO65_PIN 20
#define DIO65_WPORT PIOB
#define DIO66_PIN 15
#define DIO66_WPORT PIOB
#define DIO67_PIN 16
#define DIO67_WPORT PIOB
#define DIO68_PIN 1
#define DIO68_WPORT PIOA
#define DIO69_PIN 0
#define DIO69_WPORT PIOA
#define DIO70_PIN 17
#define DIO70_WPORT PIOA
#define DIO71_PIN 18
#define DIO71_WPORT PIOA
#define DIO72_PIN 30
#define DIO72_WPORT PIOC
#define DIO73_PIN 21
#define DIO73_WPORT PIOA
#define DIO74_PIN 25
#define DIO74_WPORT PIOA
#define DIO75_PIN 26
#define DIO75_WPORT PIOA
#define DIO76_PIN 27
#define DIO76_WPORT PIOA
#define DIO77_PIN 28
#define DIO77_WPORT PIOA
#define DIO78_PIN 23
#define DIO78_WPORT PIOB
#define DIO79_PIN 17
#define DIO79_WPORT PIOA
#define DIO80_PIN 12
#define DIO80_WPORT PIOB
#define DIO81_PIN 8
#define DIO81_WPORT PIOA
#define DIO82_PIN 11
#define DIO82_WPORT PIOA
#define DIO83_PIN 13
#define DIO83_WPORT PIOA
#define DIO84_PIN 4
#define DIO84_WPORT PIOD
#define DIO85_PIN 11
#define DIO85_WPORT PIOB
#define DIO86_PIN 21
#define DIO86_WPORT PIOB
#define DIO87_PIN 29
#define DIO87_WPORT PIOA
#define DIO88_PIN 15
#define DIO88_WPORT PIOB
#define DIO89_PIN 14
#define DIO89_WPORT PIOB
#define DIO90_PIN 1
#define DIO90_WPORT PIOA
#define DIO91_PIN 15
#define DIO91_WPORT PIOB
#ifdef ARDUINO_SAM_ARCHIM
#define DIO92_PIN 11
#define DIO92_WPORT PIOC
#define DIO93_PIN 2
#define DIO93_WPORT PIOB
#define DIO94_PIN 1
#define DIO94_WPORT PIOB
#define DIO95_PIN 0
#define DIO95_WPORT PIOB
#define DIO96_PIN 10
#define DIO96_WPORT PIOC
#define DIO97_PIN 24
#define DIO97_WPORT PIOB
#define DIO98_PIN 7
#define DIO98_WPORT PIOB
#define DIO99_PIN 6
#define DIO99_WPORT PIOB
#define DIO100_PIN 8
#define DIO100_WPORT PIOB
#define DIO101_PIN 5
#define DIO101_WPORT PIOB
#define DIO102_PIN 4
#define DIO102_WPORT PIOB
#define DIO103_PIN 3
#define DIO103_WPORT PIOB
#define DIO104_PIN 20
#define DIO104_WPORT PIOC
#define DIO105_PIN 22
#define DIO105_WPORT PIOB
#define DIO106_PIN 27
#define DIO106_WPORT PIOC
#define DIO107_PIN 10
#define DIO107_WPORT PIOB
#define DIO108_PIN 9
#define DIO108_WPORT PIOB
#else // !ARDUINO_SAM_ARCHIM
#define DIO92_PIN 5
#define DIO92_WPORT PIOA
#define DIO93_PIN 12
#define DIO93_WPORT PIOB
#define DIO94_PIN 22
#define DIO94_WPORT PIOB
#define DIO95_PIN 23
#define DIO95_WPORT PIOB
#define DIO96_PIN 24
#define DIO96_WPORT PIOB
#define DIO97_PIN 20
#define DIO97_WPORT PIOC
#define DIO98_PIN 27
#define DIO98_WPORT PIOC
#define DIO99_PIN 10
#define DIO99_WPORT PIOC
#define DIO100_PIN 11
#define DIO100_WPORT PIOC
#endif // !ARDUINO_SAM_ARCHIM
+206
View File
@@ -0,0 +1,206 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* The PWM module is only used to generate interrupts at specified times. It
* is NOT used to directly toggle pins. The ISR writes to the pin assigned to
* that interrupt.
*
* All PWMs use the same repetition rate. The G2 needs about 10KHz min in order to
* not have obvious ripple on the Vref signals.
*
* The data structures are setup to minimize the computation done by the ISR which
* minimizes ISR execution time. Execution times are 0.8 to 1.1 microseconds.
*
* FIve PWM interrupt sources are used. Channel 0 sets the base period. All Vref
* signals are set active when this counter overflows and resets to zero. The compare
* values in channels 1-4 are set to give the desired duty cycle for that Vref pin.
* When counter 0 matches the compare value then that channel generates an interrupt.
* The ISR checks the source of the interrupt and sets the corresponding pin inactive.
*
* Some jitter in the Vref signal is OK so the interrupt priority is left at its default value.
*/
#include "../../../inc/MarlinConfig.h"
#if MB(PRINTRBOARD_G2)
#include "G2_PWM.h"
#if PIN_EXISTS(MOTOR_CURRENT_PWM_X)
#define G2_PWM_X 1
#else
#define G2_PWM_X 0
#endif
#if PIN_EXISTS(MOTOR_CURRENT_PWM_Y)
#define G2_PWM_Y 1
#else
#define G2_PWM_Y 0
#endif
#if PIN_EXISTS(MOTOR_CURRENT_PWM_Z)
#define G2_PWM_Z 1
#else
#define G2_PWM_Z 0
#endif
#if PIN_EXISTS(MOTOR_CURRENT_PWM_E)
#define G2_PWM_E 1
#else
#define G2_PWM_E 0
#endif
#define G2_MASK_X(V) (G2_PWM_X * (V))
#define G2_MASK_Y(V) (G2_PWM_Y * (V))
#define G2_MASK_Z(V) (G2_PWM_Z * (V))
#define G2_MASK_E(V) (G2_PWM_E * (V))
volatile uint32_t *SODR_A = &PIOA->PIO_SODR,
*SODR_B = &PIOB->PIO_SODR,
*CODR_A = &PIOA->PIO_CODR,
*CODR_B = &PIOB->PIO_CODR;
PWM_map ISR_table[NUM_PWMS] = PWM_MAP_INIT;
void Stepper::digipot_init() {
#if PIN_EXISTS(MOTOR_CURRENT_PWM_X)
OUT_WRITE(MOTOR_CURRENT_PWM_X_PIN, 0); // init pins
#endif
#if PIN_EXISTS(MOTOR_CURRENT_PWM_Y)
OUT_WRITE(MOTOR_CURRENT_PWM_Y_PIN, 0);
#endif
#if G2_PWM_Z
OUT_WRITE(MOTOR_CURRENT_PWM_Z_PIN, 0);
#endif
#if G2_PWM_E
OUT_WRITE(MOTOR_CURRENT_PWM_E_PIN, 0);
#endif
#define WPKEY (0x50574D << 8) // “PWM” in ASCII
#define WPCMD_DIS_SW 0 // command to disable Write Protect SW
#define WPRG_ALL (PWM_WPCR_WPRG0 | PWM_WPCR_WPRG1 | PWM_WPCR_WPRG2 | PWM_WPCR_WPRG3 | PWM_WPCR_WPRG4 | PWM_WPCR_WPRG5) // all Write Protect Groups
#define PWM_CLOCK_F F_CPU / 1000000UL // set clock to 1MHz
PMC->PMC_PCER1 = PMC_PCER1_PID36; // enable PWM controller clock (disabled on power up)
PWM->PWM_WPCR = WPKEY | WPRG_ALL | WPCMD_DIS_SW; // enable setting of all PWM registers
PWM->PWM_CLK = PWM_CLOCK_F; // enable CLK_A and set it to 1MHz, leave CLK_B disabled
PWM->PWM_CH_NUM[0].PWM_CMR = 0b1011; // set channel 0 to Clock A input & to left aligned
if (G2_PWM_X) PWM->PWM_CH_NUM[1].PWM_CMR = 0b1011; // set channel 1 to Clock A input & to left aligned
if (G2_PWM_Y) PWM->PWM_CH_NUM[2].PWM_CMR = 0b1011; // set channel 2 to Clock A input & to left aligned
if (G2_PWM_Z) PWM->PWM_CH_NUM[3].PWM_CMR = 0b1011; // set channel 3 to Clock A input & to left aligned
if (G2_PWM_E) PWM->PWM_CH_NUM[4].PWM_CMR = 0b1011; // set channel 4 to Clock A input & to left aligned
PWM->PWM_CH_NUM[0].PWM_CPRD = PWM_PERIOD_US; // set channel 0 Period
PWM->PWM_IER2 = PWM_IER1_CHID0; // generate interrupt when counter0 overflows
PWM->PWM_IER2 = PWM_IER2_CMPM0
| G2_MASK_X(PWM_IER2_CMPM1)
| G2_MASK_Y(PWM_IER2_CMPM2)
| G2_MASK_Z(PWM_IER2_CMPM3)
| G2_MASK_E(PWM_IER2_CMPM4)
; // generate interrupt on compare event
if (G2_PWM_X) PWM->PWM_CMP[1].PWM_CMPV = 0x010000000LL | G2_VREF_COUNT(G2_VREF(motor_current_setting[0])); // interrupt when counter0 == CMPV - used to set Motor 1 PWM inactive
if (G2_PWM_Y) PWM->PWM_CMP[2].PWM_CMPV = 0x010000000LL | G2_VREF_COUNT(G2_VREF(motor_current_setting[0])); // interrupt when counter0 == CMPV - used to set Motor 2 PWM inactive
if (G2_PWM_Z) PWM->PWM_CMP[3].PWM_CMPV = 0x010000000LL | G2_VREF_COUNT(G2_VREF(motor_current_setting[1])); // interrupt when counter0 == CMPV - used to set Motor 3 PWM inactive
if (G2_PWM_E) PWM->PWM_CMP[4].PWM_CMPV = 0x010000000LL | G2_VREF_COUNT(G2_VREF(motor_current_setting[2])); // interrupt when counter0 == CMPV - used to set Motor 4 PWM inactive
if (G2_PWM_X) PWM->PWM_CMP[1].PWM_CMPM = 0x0001; // enable compare event
if (G2_PWM_Y) PWM->PWM_CMP[2].PWM_CMPM = 0x0001; // enable compare event
if (G2_PWM_Z) PWM->PWM_CMP[3].PWM_CMPM = 0x0001; // enable compare event
if (G2_PWM_E) PWM->PWM_CMP[4].PWM_CMPM = 0x0001; // enable compare event
PWM->PWM_SCM = PWM_SCM_UPDM_MODE0 | PWM_SCM_SYNC0
| G2_MASK_X(PWM_SCM_SYNC1)
| G2_MASK_Y(PWM_SCM_SYNC2)
| G2_MASK_Z(PWM_SCM_SYNC3)
| G2_MASK_E(PWM_SCM_SYNC4)
; // sync 1-4 with 0, use mode 0 for updates
PWM->PWM_ENA = PWM_ENA_CHID0
| G2_MASK_X(PWM_ENA_CHID1)
| G2_MASK_Y(PWM_ENA_CHID2)
| G2_MASK_Z(PWM_ENA_CHID3)
| G2_MASK_E(PWM_ENA_CHID4)
; // enable channels used by G2
PWM->PWM_IER1 = PWM_IER1_CHID0
| G2_MASK_X(PWM_IER1_CHID1)
| G2_MASK_Y(PWM_IER1_CHID2)
| G2_MASK_Z(PWM_IER1_CHID3)
| G2_MASK_E(PWM_IER1_CHID4)
; // enable interrupts for channels used by G2
NVIC_EnableIRQ(PWM_IRQn); // Enable interrupt handler
NVIC_SetPriority(PWM_IRQn, NVIC_EncodePriority(0, 10, 0)); // normal priority for PWM module (can stand some jitter on the Vref signals)
}
void Stepper::set_digipot_current(const uint8_t driver, const int16_t current) {
if (!(PWM->PWM_CH_NUM[0].PWM_CPRD == PWM_PERIOD_US)) digipot_init(); // Init PWM system if needed
switch (driver) {
case 0:
if (G2_PWM_X) PWM->PWM_CMP[1].PWM_CMPVUPD = 0x010000000LL | G2_VREF_COUNT(G2_VREF(current)); // update X & Y
if (G2_PWM_Y) PWM->PWM_CMP[2].PWM_CMPVUPD = 0x010000000LL | G2_VREF_COUNT(G2_VREF(current));
if (G2_PWM_X) PWM->PWM_CMP[1].PWM_CMPMUPD = 0x0001; // enable compare event
if (G2_PWM_Y) PWM->PWM_CMP[2].PWM_CMPMUPD = 0x0001; // enable compare event
if (G2_PWM_X || G2_PWM_Y) PWM->PWM_SCUC = PWM_SCUC_UPDULOCK; // tell the PWM controller to update the values on the next cycle
break;
case 1:
if (G2_PWM_Z) {
PWM->PWM_CMP[3].PWM_CMPVUPD = 0x010000000LL | G2_VREF_COUNT(G2_VREF(current)); // update Z
PWM->PWM_CMP[3].PWM_CMPMUPD = 0x0001; // enable compare event
PWM->PWM_SCUC = PWM_SCUC_UPDULOCK; // tell the PWM controller to update the values on the next cycle
}
break;
default:
if (G2_PWM_E) {
PWM->PWM_CMP[4].PWM_CMPVUPD = 0x010000000LL | G2_VREF_COUNT(G2_VREF(current)); // update E
PWM->PWM_CMP[4].PWM_CMPMUPD = 0x0001; // enable compare event
PWM->PWM_SCUC = PWM_SCUC_UPDULOCK; // tell the PWM controller to update the values on the next cycle
}
break;
}
}
volatile uint32_t PWM_ISR1_STATUS, PWM_ISR2_STATUS;
void PWM_Handler() {
PWM_ISR1_STATUS = PWM->PWM_ISR1;
PWM_ISR2_STATUS = PWM->PWM_ISR2;
if (PWM_ISR1_STATUS & PWM_IER1_CHID0) { // CHAN_0 interrupt
if (G2_PWM_X) *ISR_table[0].set_register = ISR_table[0].write_mask; // set X to active
if (G2_PWM_Y) *ISR_table[1].set_register = ISR_table[1].write_mask; // set Y to active
if (G2_PWM_Z) *ISR_table[2].set_register = ISR_table[2].write_mask; // set Z to active
if (G2_PWM_E) *ISR_table[3].set_register = ISR_table[3].write_mask; // set E to active
}
else {
if (G2_PWM_X && (PWM_ISR2_STATUS & PWM_IER2_CMPM1)) *ISR_table[0].clr_register = ISR_table[0].write_mask; // set X to inactive
if (G2_PWM_Y && (PWM_ISR2_STATUS & PWM_IER2_CMPM2)) *ISR_table[1].clr_register = ISR_table[1].write_mask; // set Y to inactive
if (G2_PWM_Z && (PWM_ISR2_STATUS & PWM_IER2_CMPM3)) *ISR_table[2].clr_register = ISR_table[2].write_mask; // set Z to inactive
if (G2_PWM_E && (PWM_ISR2_STATUS & PWM_IER2_CMPM4)) *ISR_table[3].clr_register = ISR_table[3].write_mask; // set E to inactive
}
return;
}
#endif // PRINTRBOARD_G2
@@ -1,9 +1,9 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,17 +16,18 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* This module is stripped down version of the LPC1768_PWM.h file from
* PR #7500. It is hardwired for the PRINTRBOARD_G2 Motor Current needs.
*/
#include "../../inc/MarlinConfigPre.h"
#include "../../module/stepper.h"
#include "../../../inc/MarlinConfigPre.h"
#include "../../../module/stepper.h"
//C:\Users\bobku\Documents\GitHub\Marlin-Bob-2\Marlin\src\module\stepper.h
//C:\Users\bobku\Documents\GitHub\Marlin-Bob-2\Marlin\src\HAL\HAL_DUE\G2_PWM.h
@@ -62,7 +63,7 @@ extern PWM_map ISR_table[NUM_PWMS];
extern uint32_t motor_current_setting[3];
#define IR_BIT(p) (WITHIN(p, 0, 3) ? (p) : (p) + 4)
#define COPY_ACTIVE_TABLE() do{ for (uint8_t i = 0; i < 6 ; i++) work_table[i] = active_table[i]; }while(0)
#define COPY_ACTIVE_TABLE() do{ LOOP_L_N(i, 6) work_table[i] = active_table[i]; }while(0)
#define PWM_MR0 19999 // base repetition rate minus one count - 20mS
#define PWM_PR 24 // prescaler value - prescaler divide by 24 + 1 - 1 MHz output
@@ -1,9 +1,9 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
@@ -248,7 +248,7 @@ const G2_PinDescription G2_g_APinDescription[] = {
{ PIOB, PIO_PB15A_CANRX1|PIO_PB14A_CANTX1, ID_PIOB, PIO_PERIPH_A, PIO_DEFAULT, (PIN_ATTR_DIGITAL|PIN_ATTR_COMBO), NO_ADC, NO_ADC, NOT_ON_PWM, NOT_ON_TIMER },
// END
{ NULL, 0, 0, PIO_NOT_A_PIN, PIO_DEFAULT, 0, NO_ADC, NO_ADC, NOT_ON_PWM, NOT_ON_TIMER }
{ nullptr, 0, 0, PIO_NOT_A_PIN, PIO_DEFAULT, 0, NO_ADC, NO_ADC, NOT_ON_PWM, NOT_ON_TIMER }
};
// This section replaces the FASTIO definitions of pins 34-41
+26
View File
@@ -0,0 +1,26 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#if HAS_SPI_TFT || HAS_FSMC_TFT
#error "Sorry! TFT displays are not available for HAL/DUE."
#endif
+22
View File
@@ -0,0 +1,22 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
@@ -0,0 +1,28 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#if USE_FALLBACK_EEPROM
#define FLASH_EEPROM_EMULATION
#elif EITHER(I2C_EEPROM, SPI_EEPROM)
#define USE_SHARED_EEPROM 1
#endif
+61
View File
@@ -0,0 +1,61 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* Test Arduino Due specific configuration values for errors at compile-time.
*/
/**
* HARDWARE VS. SOFTWARE SPI COMPATIBILITY
*
* DUE selects hardware vs. software SPI depending on whether one of the hardware-controllable SDSS pins is in use.
*
* The hardware SPI controller doesn't allow software SPIs to control any shared pins.
*
* When DUE software SPI is used then Trinamic drivers must use the TMC softSPI.
*
* When DUE hardware SPI is used then a Trinamic driver can use either its hardware SPI or, if there are no shared
* pins, its software SPI.
*
* Usually the hardware SPI pins are only available to the LCD. This makes the DUE hard SPI used at the same time
* as the TMC2130 soft SPI the most common setup.
*/
#define _IS_HW_SPI(P) (defined(TMC_SW_##P) && (TMC_SW_##P == SD_MOSI_PIN || TMC_SW_##P == SD_MISO_PIN || TMC_SW_##P == SD_SCK_PIN))
#if ENABLED(SDSUPPORT) && HAS_DRIVER(TMC2130)
#if ENABLED(TMC_USE_SW_SPI)
#if DISABLED(DUE_SOFTWARE_SPI) && (_IS_HW_SPI(MOSI) || _IS_HW_SPI(MISO) || _IS_HW_SPI(SCK))
#error "DUE hardware SPI is required but is incompatible with TMC2130 software SPI. Either disable TMC_USE_SW_SPI or use separate pins for the two SPIs."
#endif
#elif ENABLED(DUE_SOFTWARE_SPI)
#error "DUE software SPI is required but is incompatible with TMC2130 hardware SPI. Enable TMC_USE_SW_SPI to fix."
#endif
#endif
#if ENABLED(FAST_PWM_FAN) || SPINDLE_LASER_FREQUENCY
#error "Features requiring Hardware PWM (FAST_PWM_FAN, SPINDLE_LASER_FREQUENCY) are not yet supported on DUE."
#endif
#if HAS_TMC_SW_SERIAL
#error "TMC220x Software Serial is not supported on the DUE platform."
#endif
+182
View File
@@ -0,0 +1,182 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* Support routines for Due
*/
/**
* Translation of routines & variables used by pinsDebug.h
*/
#include "../shared/Marduino.h"
/**
* Due/Marlin quirks
*
* a) determining the state of a pin
* The Due/Arduino status definitions for the g_pinStatus[pin] array are:
* #define PIN_STATUS_DIGITAL_INPUT_PULLUP (0x01)
* #define PIN_STATUS_DIGITAL_INPUT (0x02)
* #define PIN_STATUS_DIGITAL_OUTPUT (0x03)
* #define PIN_STATUS_ANALOG (0x04)
* #define PIN_STATUS_PWM (0x05)
* #define PIN_STATUS_TIMER (0x06)
*
* These are only valid if the following Due/Arduino provided functions are used:
* analogRead
* analogWrite
* digitalWrite
* pinMode
*
* The FASTIO routines do not touch the g_pinStatus[pin] array.
*
* The net result is that both the g_pinStatus[pin] array and the PIO_OSR register
* needs to be looked at when determining if a pin is an input or an output.
*
* b) Due has only pins 6, 7, 8 & 9 enabled for PWMs. FYI - they run at 1KHz
*
* c) NUM_DIGITAL_PINS does not include the analog pins
*
* d) Pins 0-78 are defined for Due but 78 has a comment of "unconnected!". 78 is
* included just in case.
*/
#define NUMBER_PINS_TOTAL PINS_COUNT
#define digitalRead_mod(p) extDigitalRead(p) // AVR digitalRead disabled PWM before it read the pin
#define PRINT_PORT(p)
#define PRINT_ARRAY_NAME(x) do{ sprintf_P(buffer, PSTR("%-" STRINGIFY(MAX_NAME_LENGTH) "s"), pin_array[x].name); SERIAL_ECHO(buffer); }while(0)
#define PRINT_PIN(p) do{ sprintf_P(buffer, PSTR("%02d"), p); SERIAL_ECHO(buffer); }while(0)
#define GET_ARRAY_PIN(p) pin_array[p].pin
#define GET_ARRAY_IS_DIGITAL(p) pin_array[p].is_digital
#define VALID_PIN(pin) (pin >= 0 && pin < (int8_t)NUMBER_PINS_TOTAL ? 1 : 0)
#define DIGITAL_PIN_TO_ANALOG_PIN(p) int(p - analogInputToDigitalPin(0))
#define IS_ANALOG(P) WITHIN(P, char(analogInputToDigitalPin(0)), char(analogInputToDigitalPin(NUM_ANALOG_INPUTS - 1)))
#define pwm_status(pin) (((g_pinStatus[pin] & 0xF) == PIN_STATUS_PWM) && \
((g_APinDescription[pin].ulPinAttribute & PIN_ATTR_PWM) == PIN_ATTR_PWM))
#define MULTI_NAME_PAD 14 // space needed to be pretty if not first name assigned to a pin
bool GET_PINMODE(int8_t pin) { // 1: output, 0: input
volatile Pio* port = g_APinDescription[pin].pPort;
uint32_t mask = g_APinDescription[pin].ulPin;
uint8_t pin_status = g_pinStatus[pin] & 0xF;
return ( (pin_status == 0 && (port->PIO_OSR & mask))
|| pin_status == PIN_STATUS_DIGITAL_OUTPUT
|| pwm_status(pin));
}
void pwm_details(int32_t pin) {
if (pwm_status(pin)) {
uint32_t chan = g_APinDescription[pin].ulPWMChannel;
SERIAL_ECHOPAIR("PWM = ", PWM_INTERFACE->PWM_CH_NUM[chan].PWM_CDTY);
}
}
/**
* DUE Board pin | PORT | Label
* ----------------+--------+-------
* 0 | PA8 | "RX0"
* 1 | PA9 | "TX0"
* 2 TIOA0 | PB25 |
* 3 TIOA7 | PC28 |
* 4 NPCS1 | PA29 |
* TIOB6 | PC26 |
* 5 TIOA6 | PC25 |
* 6 PWML7 | PC24 |
* 7 PWML6 | PC23 |
* 8 PWML5 | PC22 |
* 9 PWML4 | PC21 |
* 10 NPCS0 | PA28 |
* TIOB7 | PC29 |
* 11 TIOA8 | PD7 |
* 12 TIOB8 | PD8 |
* 13 TIOB0 | PB27 | LED AMBER "L"
* 14 TXD3 | PD4 | "TX3"
* 15 RXD3 | PD5 | "RX3"
* 16 TXD1 | PA13 | "TX2"
* 17 RXD1 | PA12 | "RX2"
* 18 TXD0 | PA11 | "TX1"
* 19 RXD0 | PA10 | "RX1"
* 20 | PB12 | "SDA"
* 21 | PB13 | "SCL"
* 22 | PB26 |
* 23 | PA14 |
* 24 | PA15 |
* 25 | PD0 |
* 26 | PD1 |
* 27 | PD2 |
* 28 | PD3 |
* 29 | PD6 |
* 30 | PD9 |
* 31 | PA7 |
* 32 | PD10 |
* 33 | PC1 |
* 34 | PC2 |
* 35 | PC3 |
* 36 | PC4 |
* 37 | PC5 |
* 38 | PC6 |
* 39 | PC7 |
* 40 | PC8 |
* 41 | PC9 |
* 42 | PA19 |
* 43 | PA20 |
* 44 | PC19 |
* 45 | PC18 |
* 46 | PC17 |
* 47 | PC16 |
* 48 | PC15 |
* 49 | PC14 |
* 50 | PC13 |
* 51 | PC12 |
* 52 NPCS2 | PB21 |
* 53 | PB14 |
* 54 | PA16 | "A0"
* 55 | PA24 | "A1"
* 56 | PA23 | "A2"
* 57 | PA22 | "A3"
* 58 TIOB2 | PA6 | "A4"
* 69 | PA4 | "A5"
* 60 TIOB1 | PA3 | "A6"
* 61 TIOA1 | PA2 | "A7"
* 62 | PB17 | "A8"
* 63 | PB18 | "A9"
* 64 | PB19 | "A10"
* 65 | PB20 | "A11"
* 66 | PB15 | "DAC0"
* 67 | PB16 | "DAC1"
* 68 | PA1 | "CANRX"
* 69 | PA0 | "CANTX"
* 70 | PA17 | "SDA1"
* 71 | PA18 | "SCL1"
* 72 | PC30 | LED AMBER "RX"
* 73 | PA21 | LED AMBER "TX"
* 74 MISO | PA25 |
* 75 MOSI | PA26 |
* 76 SCLK | PA27 |
* 77 NPCS0 | PA28 |
* 78 NPCS3 | PB23 | unconnected!
*
* USB pin | PORT
* ----------------+--------
* ID | PB11
* VBOF | PB10
*/
+64
View File
@@ -0,0 +1,64 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* Define SPI Pins: SCK, MISO, MOSI, SS
*
* Available chip select pins for HW SPI are 4 10 52 77
*/
#if SDSS == 4 || SDSS == 10 || SDSS == 52 || SDSS == 77 || SDSS == 87
#if SDSS == 4
#define SPI_PIN 87
#define SPI_CHAN 1
#elif SDSS == 10
#define SPI_PIN 77
#define SPI_CHAN 0
#elif SDSS == 52
#define SPI_PIN 86
#define SPI_CHAN 2
#elif SDSS == 77
#define SPI_PIN 77
#define SPI_CHAN 0
#else
#define SPI_PIN 87
#define SPI_CHAN 1
#endif
#define SD_SCK_PIN 76
#define SD_MISO_PIN 74
#define SD_MOSI_PIN 75
#else
// defaults
#define DUE_SOFTWARE_SPI
#ifndef SD_SCK_PIN
#define SD_SCK_PIN 52
#endif
#ifndef SD_MISO_PIN
#define SD_MISO_PIN 50
#endif
#ifndef SD_MOSI_PIN
#define SD_MOSI_PIN 51
#endif
#endif
/* A.28, A.29, B.21, C.26, C.29 */
#define SD_SS_PIN SDSS
+132
View File
@@ -0,0 +1,132 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
* Copyright (c) 2015-2016 Nico Tonnhofer wurstnase.reprap@gmail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* HAL Timers for Arduino Due and compatible (SAM3X8E)
*/
#ifdef ARDUINO_ARCH_SAM
// ------------------------
// Includes
// ------------------------
#include "../../inc/MarlinConfig.h"
#include "HAL.h"
// ------------------------
// Local defines
// ------------------------
#define NUM_HARDWARE_TIMERS 9
// ------------------------
// Private Variables
// ------------------------
const tTimerConfig TimerConfig [NUM_HARDWARE_TIMERS] = {
{ TC0, 0, TC0_IRQn, 3}, // 0 - [servo timer5]
{ TC0, 1, TC1_IRQn, 0}, // 1
{ TC0, 2, TC2_IRQn, 2}, // 2 - stepper
{ TC1, 0, TC3_IRQn, 0}, // 3 - stepper for BOARD_ARCHIM1
{ TC1, 1, TC4_IRQn, 15}, // 4 - temperature
{ TC1, 2, TC5_IRQn, 3}, // 5 - [servo timer3]
{ TC2, 0, TC6_IRQn, 14}, // 6 - tone
{ TC2, 1, TC7_IRQn, 0}, // 7
{ TC2, 2, TC8_IRQn, 0}, // 8
};
// ------------------------
// Public functions
// ------------------------
/*
Timer_clock1: Prescaler 2 -> 42MHz
Timer_clock2: Prescaler 8 -> 10.5MHz
Timer_clock3: Prescaler 32 -> 2.625MHz
Timer_clock4: Prescaler 128 -> 656.25kHz
*/
void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency) {
Tc *tc = TimerConfig[timer_num].pTimerRegs;
IRQn_Type irq = TimerConfig[timer_num].IRQ_Id;
uint32_t channel = TimerConfig[timer_num].channel;
// Disable interrupt, just in case it was already enabled
NVIC_DisableIRQ(irq);
// We NEED memory barriers to ensure Interrupts are actually disabled!
// ( https://dzone.com/articles/nvic-disabling-interrupts-on-arm-cortex-m-and-the )
__DSB();
__ISB();
// Disable timer interrupt
tc->TC_CHANNEL[channel].TC_IDR = TC_IDR_CPCS;
// Stop timer, just in case, to be able to reconfigure it
TC_Stop(tc, channel);
pmc_set_writeprotect(false);
pmc_enable_periph_clk((uint32_t)irq);
NVIC_SetPriority(irq, TimerConfig [timer_num].priority);
// wave mode, reset counter on match with RC,
TC_Configure(tc, channel, TC_CMR_WAVE | TC_CMR_WAVSEL_UP_RC | TC_CMR_TCCLKS_TIMER_CLOCK1);
// Set compare value
TC_SetRC(tc, channel, VARIANT_MCK / 2 / frequency);
// And start timer
TC_Start(tc, channel);
// enable interrupt on RC compare
tc->TC_CHANNEL[channel].TC_IER = TC_IER_CPCS;
// Finally, enable IRQ
NVIC_EnableIRQ(irq);
}
void HAL_timer_enable_interrupt(const uint8_t timer_num) {
IRQn_Type irq = TimerConfig[timer_num].IRQ_Id;
NVIC_EnableIRQ(irq);
}
void HAL_timer_disable_interrupt(const uint8_t timer_num) {
IRQn_Type irq = TimerConfig[timer_num].IRQ_Id;
NVIC_DisableIRQ(irq);
// We NEED memory barriers to ensure Interrupts are actually disabled!
// ( https://dzone.com/articles/nvic-disabling-interrupts-on-arm-cortex-m-and-the )
__DSB();
__ISB();
}
// missing from CMSIS: Check if interrupt is enabled or not
static bool NVIC_GetEnabledIRQ(IRQn_Type IRQn) {
return TEST(NVIC->ISER[uint32_t(IRQn) >> 5], uint32_t(IRQn) & 0x1F);
}
bool HAL_timer_interrupt_enabled(const uint8_t timer_num) {
IRQn_Type irq = TimerConfig[timer_num].IRQ_Id;
return NVIC_GetEnabledIRQ(irq);
}
#endif // ARDUINO_ARCH_SAM
+128
View File
@@ -0,0 +1,128 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* HAL Timers for Arduino Due and compatible (SAM3X8E)
*/
#include <stdint.h>
// ------------------------
// Defines
// ------------------------
#define FORCE_INLINE __attribute__((always_inline)) inline
typedef uint32_t hal_timer_t;
#define HAL_TIMER_TYPE_MAX 0xFFFFFFFF
#define HAL_TIMER_RATE ((F_CPU) / 2) // frequency of timers peripherals
#ifndef STEP_TIMER_NUM
#define STEP_TIMER_NUM 2 // Timer Index for Stepper
#endif
#ifndef PULSE_TIMER_NUM
#define PULSE_TIMER_NUM STEP_TIMER_NUM
#endif
#ifndef TEMP_TIMER_NUM
#define TEMP_TIMER_NUM 4 // Timer Index for Temperature
#endif
#ifndef TONE_TIMER_NUM
#define TONE_TIMER_NUM 6 // index of timer to use for beeper tones
#endif
#define TEMP_TIMER_FREQUENCY 1000 // temperature interrupt frequency
#define STEPPER_TIMER_RATE HAL_TIMER_RATE // frequency of stepper timer (HAL_TIMER_RATE / STEPPER_TIMER_PRESCALE)
#define STEPPER_TIMER_TICKS_PER_US ((STEPPER_TIMER_RATE) / 1000000) // stepper timer ticks per µs
#define STEPPER_TIMER_PRESCALE (CYCLES_PER_MICROSECOND / STEPPER_TIMER_TICKS_PER_US)
#define PULSE_TIMER_RATE STEPPER_TIMER_RATE // frequency of pulse timer
#define PULSE_TIMER_PRESCALE STEPPER_TIMER_PRESCALE
#define PULSE_TIMER_TICKS_PER_US STEPPER_TIMER_TICKS_PER_US
#define ENABLE_STEPPER_DRIVER_INTERRUPT() HAL_timer_enable_interrupt(STEP_TIMER_NUM)
#define DISABLE_STEPPER_DRIVER_INTERRUPT() HAL_timer_disable_interrupt(STEP_TIMER_NUM)
#define STEPPER_ISR_ENABLED() HAL_timer_interrupt_enabled(STEP_TIMER_NUM)
#define ENABLE_TEMPERATURE_INTERRUPT() HAL_timer_enable_interrupt(TEMP_TIMER_NUM)
#define DISABLE_TEMPERATURE_INTERRUPT() HAL_timer_disable_interrupt(TEMP_TIMER_NUM)
#ifndef HAL_STEP_TIMER_ISR
#define HAL_STEP_TIMER_ISR() void TC2_Handler()
#endif
#ifndef HAL_TEMP_TIMER_ISR
#define HAL_TEMP_TIMER_ISR() void TC4_Handler()
#endif
#ifndef HAL_TONE_TIMER_ISR
#define HAL_TONE_TIMER_ISR() void TC6_Handler()
#endif
// ------------------------
// Types
// ------------------------
typedef struct {
Tc *pTimerRegs;
uint16_t channel;
IRQn_Type IRQ_Id;
uint8_t priority;
} tTimerConfig;
// ------------------------
// Public Variables
// ------------------------
extern const tTimerConfig TimerConfig[];
// ------------------------
// Public functions
// ------------------------
void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency);
FORCE_INLINE static void HAL_timer_set_compare(const uint8_t timer_num, const hal_timer_t compare) {
const tTimerConfig * const pConfig = &TimerConfig[timer_num];
pConfig->pTimerRegs->TC_CHANNEL[pConfig->channel].TC_RC = compare;
}
FORCE_INLINE static hal_timer_t HAL_timer_get_compare(const uint8_t timer_num) {
const tTimerConfig * const pConfig = &TimerConfig[timer_num];
return pConfig->pTimerRegs->TC_CHANNEL[pConfig->channel].TC_RC;
}
FORCE_INLINE static hal_timer_t HAL_timer_get_count(const uint8_t timer_num) {
const tTimerConfig * const pConfig = &TimerConfig[timer_num];
return pConfig->pTimerRegs->TC_CHANNEL[pConfig->channel].TC_CV;
}
void HAL_timer_enable_interrupt(const uint8_t timer_num);
void HAL_timer_disable_interrupt(const uint8_t timer_num);
bool HAL_timer_interrupt_enabled(const uint8_t timer_num);
FORCE_INLINE static void HAL_timer_isr_prologue(const uint8_t timer_num) {
const tTimerConfig * const pConfig = &TimerConfig[timer_num];
// Reading the status register clears the interrupt flag
pConfig->pTimerRegs->TC_CHANNEL[pConfig->channel].TC_SR;
}
#define HAL_timer_isr_epilogue(TIMER_NUM)
+18
View File
@@ -0,0 +1,18 @@
#
# Set upload_command
#
# Windows: bossac.exe
# Other: leave unchanged
#
import platform
current_OS = platform.system()
if current_OS == 'Windows':
Import("env")
# Use bossac.exe on Windows
env.Replace(
UPLOADCMD="bossac --info --unlock --write --verify --reset --erase -U false --boot $SOURCE"
)
@@ -43,7 +43,7 @@
#pragma once
/**
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
/**
@@ -93,5 +93,5 @@
#define USB_VBOF_GPIO (PIO_PB10_IDX)
#define USB_VBOF_FLAGS (PIO_PERIPH_A | PIO_DEFAULT)
/*! Active level of the USB_VBOF output pin. */
#define USB_VBOF_ACTIVE_LEVEL LOW
#define USB_VBOF_ACTIVE_STATE LOW
/* ------------------------------------------------------------------------ */
@@ -41,7 +41,7 @@
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef UTILS_COMPILER_H
@@ -112,7 +112,7 @@
* \def unused
* \brief Marking \a v as a unused parameter or value.
*/
#define unused(v) do { (void)(v); } while(0)
#define unused(v) do { (void)(v); }while(0)
/**
* \def barrier
@@ -169,15 +169,15 @@
* heuristics and inline the function no matter how big it thinks it
* becomes.
*/
#if defined(__CC_ARM)
#ifdef __CC_ARM
# define __always_inline __forceinline
#elif (defined __GNUC__)
#ifdef __always_inline
# undef __always_inline
# undef __always_inline
#endif
# define __always_inline inline __attribute__((__always_inline__))
# define __always_inline inline __attribute__((__always_inline__))
#elif (defined __ICCARM__)
# define __always_inline _Pragma("inline=forced")
# define __always_inline _Pragma("inline=forced")
#endif
/**
@@ -187,12 +187,12 @@
* This annotation instructs the compiler to ignore its inlining
* heuristics and not inline the function.
*/
#if defined(__CC_ARM)
# define __no_inline __attribute__((noinline))
#ifdef __CC_ARM
# define __no_inline __attribute__((noinline))
#elif (defined __GNUC__)
# define __no_inline __attribute__((__noinline__))
# define __no_inline __attribute__((__noinline__))
#elif (defined __ICCARM__)
# define __no_inline _Pragma("inline=never")
# define __no_inline _Pragma("inline=never")
#endif
/*! \brief This macro is used to test fatal errors.
@@ -204,16 +204,16 @@
*
* \param expr Expression to evaluate and supposed to be nonzero.
*/
#if defined(_ASSERT_ENABLE_)
#ifdef _ASSERT_ENABLE_
# if defined(TEST_SUITE_DEFINE_ASSERT_MACRO)
// Assert() is defined in unit_test/suite.h
# include "unit_test/suite.h"
# else
#undef TEST_SUITE_DEFINE_ASSERT_MACRO
# define Assert(expr) \
{\
if (!(expr)) while (true);\
}
{\
if (!(expr)) while (true);\
}
# endif
#else
# define Assert(expr) ((void) 0)
@@ -230,7 +230,7 @@
/* Define NO_INIT attribute */
#if 0 //ndef NO_INIT
#if defined ( __CC_ARM )
#ifdef __CC_ARM
# define NO_INIT __attribute__((zero_init))
#elif defined ( __ICCARM__ )
# define NO_INIT __no_init
@@ -262,7 +262,7 @@
//! @{
typedef unsigned char Bool; //!< Boolean.
#ifndef __cplusplus
#if !defined(__bool_true_false_are_defined)
#ifndef __bool_true_false_are_defined
typedef unsigned char bool; //!< Boolean.
#endif
#endif
@@ -443,9 +443,9 @@ typedef struct
#define DISABLE 0
#define ENABLE 1
#ifndef __cplusplus
#if !defined(__bool_true_false_are_defined)
#define false 0
#define true 1
#ifndef __bool_true_false_are_defined
#define false (1==0)
#define true (1==1)
#endif
#endif
#ifndef PASS
@@ -609,37 +609,37 @@ typedef struct
# define clz(u) ((u) ? __CLZ(u) : 32)
#else
# define clz(u) (((u) == 0) ? 32 : \
((u) & (1ul << 31)) ? 0 : \
((u) & (1ul << 30)) ? 1 : \
((u) & (1ul << 29)) ? 2 : \
((u) & (1ul << 28)) ? 3 : \
((u) & (1ul << 27)) ? 4 : \
((u) & (1ul << 26)) ? 5 : \
((u) & (1ul << 25)) ? 6 : \
((u) & (1ul << 24)) ? 7 : \
((u) & (1ul << 23)) ? 8 : \
((u) & (1ul << 22)) ? 9 : \
((u) & (1ul << 21)) ? 10 : \
((u) & (1ul << 20)) ? 11 : \
((u) & (1ul << 19)) ? 12 : \
((u) & (1ul << 18)) ? 13 : \
((u) & (1ul << 17)) ? 14 : \
((u) & (1ul << 16)) ? 15 : \
((u) & (1ul << 15)) ? 16 : \
((u) & (1ul << 14)) ? 17 : \
((u) & (1ul << 13)) ? 18 : \
((u) & (1ul << 12)) ? 19 : \
((u) & (1ul << 11)) ? 20 : \
((u) & (1ul << 10)) ? 21 : \
((u) & (1ul << 9)) ? 22 : \
((u) & (1ul << 8)) ? 23 : \
((u) & (1ul << 7)) ? 24 : \
((u) & (1ul << 6)) ? 25 : \
((u) & (1ul << 5)) ? 26 : \
((u) & (1ul << 4)) ? 27 : \
((u) & (1ul << 3)) ? 28 : \
((u) & (1ul << 2)) ? 29 : \
((u) & (1ul << 1)) ? 30 : \
((u) & (1UL << 31)) ? 0 : \
((u) & (1UL << 30)) ? 1 : \
((u) & (1UL << 29)) ? 2 : \
((u) & (1UL << 28)) ? 3 : \
((u) & (1UL << 27)) ? 4 : \
((u) & (1UL << 26)) ? 5 : \
((u) & (1UL << 25)) ? 6 : \
((u) & (1UL << 24)) ? 7 : \
((u) & (1UL << 23)) ? 8 : \
((u) & (1UL << 22)) ? 9 : \
((u) & (1UL << 21)) ? 10 : \
((u) & (1UL << 20)) ? 11 : \
((u) & (1UL << 19)) ? 12 : \
((u) & (1UL << 18)) ? 13 : \
((u) & (1UL << 17)) ? 14 : \
((u) & (1UL << 16)) ? 15 : \
((u) & (1UL << 15)) ? 16 : \
((u) & (1UL << 14)) ? 17 : \
((u) & (1UL << 13)) ? 18 : \
((u) & (1UL << 12)) ? 19 : \
((u) & (1UL << 11)) ? 20 : \
((u) & (1UL << 10)) ? 21 : \
((u) & (1UL << 9)) ? 22 : \
((u) & (1UL << 8)) ? 23 : \
((u) & (1UL << 7)) ? 24 : \
((u) & (1UL << 6)) ? 25 : \
((u) & (1UL << 5)) ? 26 : \
((u) & (1UL << 4)) ? 27 : \
((u) & (1UL << 3)) ? 28 : \
((u) & (1UL << 2)) ? 29 : \
((u) & (1UL << 1)) ? 30 : \
31)
#endif
#endif
@@ -654,38 +654,38 @@ typedef struct
#if (defined __GNUC__) || (defined __CC_ARM)
# define ctz(u) ((u) ? __builtin_ctz(u) : 32)
#else
# define ctz(u) ((u) & (1ul << 0) ? 0 : \
(u) & (1ul << 1) ? 1 : \
(u) & (1ul << 2) ? 2 : \
(u) & (1ul << 3) ? 3 : \
(u) & (1ul << 4) ? 4 : \
(u) & (1ul << 5) ? 5 : \
(u) & (1ul << 6) ? 6 : \
(u) & (1ul << 7) ? 7 : \
(u) & (1ul << 8) ? 8 : \
(u) & (1ul << 9) ? 9 : \
(u) & (1ul << 10) ? 10 : \
(u) & (1ul << 11) ? 11 : \
(u) & (1ul << 12) ? 12 : \
(u) & (1ul << 13) ? 13 : \
(u) & (1ul << 14) ? 14 : \
(u) & (1ul << 15) ? 15 : \
(u) & (1ul << 16) ? 16 : \
(u) & (1ul << 17) ? 17 : \
(u) & (1ul << 18) ? 18 : \
(u) & (1ul << 19) ? 19 : \
(u) & (1ul << 20) ? 20 : \
(u) & (1ul << 21) ? 21 : \
(u) & (1ul << 22) ? 22 : \
(u) & (1ul << 23) ? 23 : \
(u) & (1ul << 24) ? 24 : \
(u) & (1ul << 25) ? 25 : \
(u) & (1ul << 26) ? 26 : \
(u) & (1ul << 27) ? 27 : \
(u) & (1ul << 28) ? 28 : \
(u) & (1ul << 29) ? 29 : \
(u) & (1ul << 30) ? 30 : \
(u) & (1ul << 31) ? 31 : \
# define ctz(u) ((u) & (1UL << 0) ? 0 : \
(u) & (1UL << 1) ? 1 : \
(u) & (1UL << 2) ? 2 : \
(u) & (1UL << 3) ? 3 : \
(u) & (1UL << 4) ? 4 : \
(u) & (1UL << 5) ? 5 : \
(u) & (1UL << 6) ? 6 : \
(u) & (1UL << 7) ? 7 : \
(u) & (1UL << 8) ? 8 : \
(u) & (1UL << 9) ? 9 : \
(u) & (1UL << 10) ? 10 : \
(u) & (1UL << 11) ? 11 : \
(u) & (1UL << 12) ? 12 : \
(u) & (1UL << 13) ? 13 : \
(u) & (1UL << 14) ? 14 : \
(u) & (1UL << 15) ? 15 : \
(u) & (1UL << 16) ? 16 : \
(u) & (1UL << 17) ? 17 : \
(u) & (1UL << 18) ? 18 : \
(u) & (1UL << 19) ? 19 : \
(u) & (1UL << 20) ? 20 : \
(u) & (1UL << 21) ? 21 : \
(u) & (1UL << 22) ? 22 : \
(u) & (1UL << 23) ? 23 : \
(u) & (1UL << 24) ? 24 : \
(u) & (1UL << 25) ? 25 : \
(u) & (1UL << 26) ? 26 : \
(u) & (1UL << 27) ? 27 : \
(u) & (1UL << 28) ? 28 : \
(u) & (1UL << 29) ? 29 : \
(u) & (1UL << 30) ? 30 : \
(u) & (1UL << 31) ? 31 : \
32)
#endif
#endif
@@ -998,14 +998,14 @@ typedef U8 Byte; //!< 8-bit unsigned integer.
#endif // #ifndef __ASSEMBLY__
#if defined(__ICCARM__)
#ifdef __ICCARM__
#define SHORTENUM __packed
#elif defined(__GNUC__)
#define SHORTENUM __attribute__((packed))
#endif
/* No operation */
#if defined(__ICCARM__)
#ifdef __ICCARM__
#define nop() __no_operation()
#elif defined(__GNUC__)
#define nop() (__NOP())
@@ -1106,17 +1106,16 @@ static inline uint16_t convert_byte_array_to_16_bit(uint8_t *data)
/* Converts a 8 Byte array into a 32-Bit value */
static inline uint32_t convert_byte_array_to_32_bit(uint8_t *data)
{
union
{
uint32_t u32;
uint8_t u8[8];
}long_addr;
uint8_t index;
for (index = 0; index < 4; index++)
{
long_addr.u8[index] = *data++;
}
return long_addr.u32;
union
{
uint32_t u32;
uint8_t u8[8];
}long_addr;
uint8_t index;
for (index = 0; index < 4; index++) {
long_addr.u8[index] = *data++;
}
return long_addr.u32;
}
/**
@@ -41,7 +41,7 @@
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef _CONF_ACCESS_H_
@@ -41,7 +41,7 @@
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef CONF_CLOCK_H_INCLUDED
@@ -41,16 +41,14 @@
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef _CONF_USB_H_
#define _CONF_USB_H_
#undef UNUSED /* To avoid a macro clash as macros.h already defines it */
#include "../../../core/macros.h" /* For ENABLED()/DISABLED() */
#include "../../../core/boards.h" /* For MB() */
#include "../../../../Configuration.h" /* For CUSTOM_MACHINE_NAME definition - We just need the name, no C++ allowed! */
#include "../../../inc/MarlinConfigPre.h"
#include "compiler.h"
/**
@@ -59,8 +57,6 @@
*/
//! Device definition (mandatory)
#define USB_DEVICE_VENDOR_ID 0x03EB /* ATMEL VID */
#define USB_DEVICE_PRODUCT_ID 0x2424 /* MSC / CDC */
#define USB_DEVICE_MAJOR_VERSION 1
#define USB_DEVICE_MINOR_VERSION 0
#define USB_DEVICE_POWER 100 // Consumption on Vbus line (mA)
@@ -70,15 +66,6 @@
// (USB_CONFIG_ATTR_REMOTE_WAKEUP|USB_CONFIG_ATTR_SELF_POWERED)
// (USB_CONFIG_ATTR_REMOTE_WAKEUP|USB_CONFIG_ATTR_BUS_POWERED)
//! USB Device string definitions (Optional)
#define USB_DEVICE_MANUFACTURE_NAME "marlinfw.org"
#ifdef CUSTOM_MACHINE_NAME
#define USB_DEVICE_PRODUCT_NAME CUSTOM_MACHINE_NAME
#else
#define USB_DEVICE_PRODUCT_NAME "3D Printer"
#endif
#define USB_DEVICE_SERIAL_NAME "123985739853"
/**
* Device speeds support
* Low speed not supported by CDC and MSC
@@ -91,10 +78,6 @@
//! To define a Full speed device
//#define USB_DEVICE_FULL_SPEED
#if MB(ARCHIM1)
#define USB_DEVICE_FULL_SPEED
#endif
//! To authorize the High speed
#ifndef USB_DEVICE_FULL_SPEED
#if (UC3A3||UC3A4)
@@ -53,7 +53,7 @@
*
******************************************************************************/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifdef ARDUINO_ARCH_SAM
@@ -53,7 +53,7 @@
*
******************************************************************************/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
@@ -41,7 +41,7 @@
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef CHIP_GENCLK_H_INCLUDED
@@ -41,7 +41,7 @@
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef _MREPEAT_H_
@@ -41,7 +41,7 @@
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef CHIP_OSC_H_INCLUDED
@@ -61,27 +61,27 @@ extern "C" {
* Below BOARD_XXX macros are related to the specific board, and
* should be defined by the board code, otherwise default value are used.
*/
#if !defined(BOARD_FREQ_SLCK_XTAL)
#ifndef BOARD_FREQ_SLCK_XTAL
# warning The board slow clock xtal frequency has not been defined.
# define BOARD_FREQ_SLCK_XTAL (32768UL)
#endif
#if !defined(BOARD_FREQ_SLCK_BYPASS)
#ifndef BOARD_FREQ_SLCK_BYPASS
# warning The board slow clock bypass frequency has not been defined.
# define BOARD_FREQ_SLCK_BYPASS (32768UL)
#endif
#if !defined(BOARD_FREQ_MAINCK_XTAL)
#ifndef BOARD_FREQ_MAINCK_XTAL
# warning The board main clock xtal frequency has not been defined.
# define BOARD_FREQ_MAINCK_XTAL (12000000UL)
#endif
#if !defined(BOARD_FREQ_MAINCK_BYPASS)
#ifndef BOARD_FREQ_MAINCK_BYPASS
# warning The board main clock bypass frequency has not been defined.
# define BOARD_FREQ_MAINCK_BYPASS (12000000UL)
#endif
#if !defined(BOARD_OSC_STARTUP_US)
#ifndef BOARD_OSC_STARTUP_US
# warning The board main clock xtal startup time has not been defined.
# define BOARD_OSC_STARTUP_US (15625UL)
#endif
@@ -41,7 +41,7 @@
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef CHIP_PLL_H_INCLUDED
@@ -41,7 +41,7 @@
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef _PREPROCESSOR_H_
@@ -52,7 +52,7 @@
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef _SBC_PROTOCOL_H_
#define _SBC_PROTOCOL_H_
+142
View File
@@ -0,0 +1,142 @@
/**
* Interface from Atmel USB MSD to Marlin SD card
*/
#ifdef ARDUINO_ARCH_SAM
#include "../../../inc/MarlinConfig.h"
#if ENABLED(SDSUPPORT)
#include "../../../sd/cardreader.h"
extern "C" {
#include "sd_mmc_spi_mem.h"
}
#define SD_MMC_BLOCK_SIZE 512
void sd_mmc_spi_mem_init() {
}
Ctrl_status sd_mmc_spi_test_unit_ready() {
#ifdef DISABLE_DUE_SD_MMC
return CTRL_NO_PRESENT;
#endif
if (!IS_SD_INSERTED() || IS_SD_PRINTING() || IS_SD_FILE_OPEN() || !card.isMounted())
return CTRL_NO_PRESENT;
return CTRL_GOOD;
}
// NOTE: This function is defined as returning the address of the last block
// in the card, which is cardSize() - 1
Ctrl_status sd_mmc_spi_read_capacity(uint32_t *nb_sector) {
if (!IS_SD_INSERTED() || IS_SD_PRINTING() || IS_SD_FILE_OPEN() || !card.isMounted())
return CTRL_NO_PRESENT;
*nb_sector = card.diskIODriver()->cardSize() - 1;
return CTRL_GOOD;
}
bool sd_mmc_spi_unload(bool) { return true; }
bool sd_mmc_spi_wr_protect() { return false; }
bool sd_mmc_spi_removal() {
return (!IS_SD_INSERTED() || IS_SD_PRINTING() || IS_SD_FILE_OPEN() || !card.isMounted());
}
#if ACCESS_USB == true
/**
* \name MEM <-> USB Interface
* @{
*/
#include "udi_msc.h"
COMPILER_WORD_ALIGNED
uint8_t sector_buf[SD_MMC_BLOCK_SIZE];
// #define DEBUG_MMC
Ctrl_status sd_mmc_spi_usb_read_10(uint32_t addr, uint16_t nb_sector) {
#ifdef DISABLE_DUE_SD_MMC
return CTRL_NO_PRESENT;
#endif
if (!IS_SD_INSERTED() || IS_SD_PRINTING() || IS_SD_FILE_OPEN() || !card.isMounted())
return CTRL_NO_PRESENT;
#ifdef DEBUG_MMC
{
char buffer[80];
sprintf_P(buffer, PSTR("SDRD: %d @ 0x%08x\n"), nb_sector, addr);
PORT_REDIRECT(SERIAL_PORTMASK(0));
SERIAL_ECHO(buffer);
}
#endif
// Start reading
if (!card.diskIODriver()->readStart(addr))
return CTRL_FAIL;
// For each specified sector
while (nb_sector--) {
// Read a sector
card.diskIODriver()->readData(sector_buf);
// RAM -> USB
if (!udi_msc_trans_block(true, sector_buf, SD_MMC_BLOCK_SIZE, nullptr)) {
card.diskIODriver()->readStop();
return CTRL_FAIL;
}
}
// Stop reading
card.diskIODriver()->readStop();
// Done
return CTRL_GOOD;
}
Ctrl_status sd_mmc_spi_usb_write_10(uint32_t addr, uint16_t nb_sector) {
#ifdef DISABLE_DUE_SD_MMC
return CTRL_NO_PRESENT;
#endif
if (!IS_SD_INSERTED() || IS_SD_PRINTING() || IS_SD_FILE_OPEN() || !card.isMounted())
return CTRL_NO_PRESENT;
#ifdef DEBUG_MMC
{
char buffer[80];
sprintf_P(buffer, PSTR("SDWR: %d @ 0x%08x\n"), nb_sector, addr);
PORT_REDIRECT(SERIAL_PORTMASK(0));
SERIAL_ECHO(buffer);
}
#endif
if (!card.diskIODriver()->writeStart(addr, nb_sector))
return CTRL_FAIL;
// For each specified sector
while (nb_sector--) {
// USB -> RAM
if (!udi_msc_trans_block(false, sector_buf, SD_MMC_BLOCK_SIZE, nullptr)) {
card.diskIODriver()->writeStop();
return CTRL_FAIL;
}
// Write a sector
card.diskIODriver()->writeData(sector_buf);
}
// Stop writing
card.diskIODriver()->writeStop();
// Done
return CTRL_GOOD;
}
#endif // ACCESS_USB == true
#endif // SDSUPPORT
#endif // ARDUINO_ARCH_SAM
@@ -42,7 +42,7 @@
*
******************************************************************************/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
@@ -43,12 +43,12 @@
* \asf_license_stop
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef _SPC_PROTOCOL_H_
#define _SPC_PROTOCOL_H_
/*
* Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef _SPC_PROTOCOL_H_
#define _SPC_PROTOCOL_H_
/**
* \ingroup usb_msc_protocol

Some files were not shown because too many files have changed in this diff Show More