281 Commits (f218405c36d03094f00d867fcebec07072ba7d44)

Author SHA1 Message Date
Scott Lahteine c75f5a376b Tweak some comments 6 years ago
Scott Lahteine 11ac75edcb
Use PGM_P for PSTR pointers (#11977) 6 years ago
Alexander Amelkin 2ecfda80ac Improve support for JTAG/SWD pins reuse (#11963)
STM32 can reuse JTAG and SWD pins separately. Add `DISABLE_DEBUG` option to disable both interfaces and retain `DISABLE_JTAG` to disable JTAG only.
6 years ago
Alexander Amelkin 84926b1d5a HAL general support for DISABLE_JTAG option (#11211)
Some STM32-based boards may use multiplexed JTAG pins as IO. Up to now the `DISABLE_JTAG` option (defined in pins files) was only supported for AT90-based boards. This commit generalizes the code and adds support for boards based on STM32F1 and STM32F4.
6 years ago
Scott Lahteine 1718eff54a Code changes supporting up to 6 extruders 6 years ago
Thomas Moore c437bb08f1 Overhaul of the planner (#11578)
- Move FWRETRACT to the planner
- Combine leveling, skew, etc. in a single modifier method
- Have kinematic and non-kinematic moves call one planner method
6 years ago
Scott Lahteine 1933d5d6fb Fix SD autostart with no LCD 6 years ago
Sam Lane 1b6bc19427 Add external closed loop controller support 6 years ago
Scott Lahteine 56f1e17a25
[2.0.x] Max7219 cleanup, simplify, and extend (#11575) 6 years ago
teemuatlut fbcdf5eaeb Simplify stepper driver per-axis selection 6 years ago
Scott Lahteine 566d05006d report_state > event_handler
Make the endstop report method track endstop changes on its own.
6 years ago
Scott Lahteine 1a0f4dedad
Fix and improve POWER_LOSS_RECOVERY (#11187) 6 years ago
TheLongAndOnly cedc158106 [2.0.x] Board specific init macro (#11170) 6 years ago
Scott Lahteine d4795e5b8e
[2.0.x] Tweaks and additions for MAX7219 (#11034) 7 years ago
Simon Jouet e2aeda61ed HAL for Espressif ESP32 Wifi 7 years ago
Scott Lahteine f2c3b0d476 Use bit flags for homed/known 7 years ago
Scott Lahteine 968a5d2e63 Protected pin err for M226 7 years ago
Scott Lahteine 0ca9db7051 Correct HOTENDS for SWITCHING_EXTRUDER 7 years ago
etagle 569df3fc0c Fix interrupt-based endstop detection
- Also implemented real endstop reading on interrupt.
7 years ago
etagle a11eb50a3e Refactor and optimize Stepper/Planner
Better encapsulation and considerably reduce stepper jitter
7 years ago
GMagician 3c76bda2d8 Fix switching extruder
`DONT_SWITCH` got lost along the way. Replace it with `DO_SWITCH_EXTRUDER` and adjust the code.
7 years ago
Scott Lahteine 35258dd50b Consistent heating status and status reset
Fix #10699
7 years ago
Scott Lahteine 625035a9ce
Fix M301 access to lpq_len (#10714)
Co-Authored-By: Zwaubel
7 years ago
Scott Lahteine 306f0f2135
Move Stepper::synchronize to Planner (#10713)
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
Scott Lahteine 05fca752d6 Clean up autostart handling 7 years ago
Scott Lahteine 11ab017dd0 Creality3D Power-Loss Recovery 7 years ago
Scott Lahteine 6c7a17dba6
Abort SD printing more safely (#10407)
Allow the current command to complete when aborting an SD print, otherwise some commands (G28, G29, etc.) will cause trouble.
7 years ago
Chris Pepper cc6d41e1d3 Use a macro for HAL header redirection (#10380) 7 years ago
Scott Lahteine 56486c5c0e Apply const to manage_inactivity 7 years ago
Bob-the-Kuhn 902c885782 Switch to TMC2130 compatible hardware SPI & misc (#10299) 7 years ago
Scott Lahteine adcb87f0db Z Endstop Servo => Z Probe Servo 7 years ago
Scott Lahteine 1cb810ff1c
[2.0.x] Automatically reset stepper timeout (#10179)
* Automatically reset stepper timeout in manage_inactivity

Any code that adds moves to the planner can skip resetting the stepper timeout. We can let `idle` / `manage_inactivity` reset the timer whenever it detects any moves in the planner.

* blocks_queued => has_blocks_queued
7 years ago
Eduardo José Tagle 97e8a6ebd9 Various fixes for DUE... (#10152)
- Watchdog reset during SD Card initialization.
- Move `DebugMonitor` to `DebugMonitor_Due.cpp`.
- Since the watchdog is enabled on boot do extra resets during init.
- Have `thermalManager` do watchdog reset before its ISR starts to prevent reset.
- Ensure that timers are stopped before reprogramming them to address tone issues.
- Improve SAM3XE reset when reflashed through the native port.
7 years ago
Scott Lahteine 9fd1016bb1 Trust the bootloader to clear globals 7 years ago
Scott Lahteine ae39fbd646 Also suppress keepalive with suspend_auto_report 7 years ago
Bob-the-Kuhn 53362b81cc Tone fixes/changes (#10151) 7 years ago
Scott Lahteine 72281c4ff9 Turn power off in `kill` instead of setting PS_ON to input 7 years ago
Scott Lahteine 0543362b34 Don't init the tone timer if no BEEPER_PIN 7 years ago
Scott Lahteine 317673fec3 Init watchdog last in setup() 7 years ago
Scott Lahteine eb212ae073 Add suspend_auto_report flag to suppress auto-report 7 years ago
Scott Lahteine ffbf63e6af Add HAS_TEMP_SENSOR conditional 7 years ago
Scott Lahteine 36262a0479
Use static classes for job timers (#9938) 7 years ago
Bob-the-Kuhn 025118da3e Init print_job_timer in setup() instead of "early" (#9937) 7 years ago
TheSFReader eb079959fb Report sd card progress [FR] #9751 (#9832)
* SD Status auto-report feature
Feature Request #9751
7 years ago
Scott Lahteine cfdcf91df5 Fix compile error with initTone 7 years ago
Scott Lahteine 65519263f4 Fix broken LEVEL_BED_CORNERS
Fix #8805
7 years ago
Scott Lahteine 73cd34b121 Finish AUTO_POWER_CONTROL implementation
Followup to #9503
7 years ago
Studiodyne d3ca82d8c2 Support for multiple filament runout sensors 7 years ago
Scott Lahteine ca55f2927a
Pulldown pin mode support (#9701)
Implemented for LPC1768.
7 years ago
Scott Lahteine 93c0198b2d Init LCD welcome message programmatically 7 years ago
teemuatlut 5990266724 Init CS pins before loading settings (#9566) 7 years ago
Scott Lahteine 112917cfef No EXTRUDER_RUNOUT_PREVENT during print 7 years ago
Scott Lahteine b2f8b4ada5
I2C position encoders update (#9533)
Updating I2C position encoders to enable babystepping and Babystep XY when using the ecm microstep correction method. Also changed default method to ECM microstep.
7 years ago
Scott Lahteine b3f115fa0a
Marlin.ino needs no content (#9506) 7 years ago
Scott Lahteine b5e92f4f90
[2.0.x] Enable / disable PSU automatically (#9503) 7 years ago
Scott Lahteine a718f5bdf3 Don't run `M600` on filament runout if the nozzle is cold 7 years ago
Thomas Moore f7efac57b7 Multi-host support 7 years ago
Scott Lahteine 7541316bb4 Add M701/M702 Filament Load/Unload, M603 7 years ago
Scott Lahteine 9686ffedef Single pause flag also indicates SD print pause 7 years ago
Scott Lahteine 026e301307 lcd_map_control deps on ULTIPANEL 7 years ago
etagle 33a6fc70e4 Adding USB MSD implementation to the HAL: Now, when you plug the Native USB port of the Arduino DUE to your PC, it will be detected as a composite USB device: One of the devices is a USB CDC (Serial port over USB) with native USB handshake (no more overflows!!) (set SERIAL_PORT to -1 to use it as main serial port) and also, a MSD (USB Mass Storage Device) will be detected, and the SD card present on the socket will be reflected as a Removable disk on your PC) 7 years ago
etagle b6f9c333d4 Adding hooks into the idle loop so HALs can execute 2nd plane tasks, such as serving SD card read/writes requested from the USB MSD layer 7 years ago
Scott Lahteine 4782acf60e
Merge pull request #8780 from fiveangle/bf2-typo
[2.0.x] typo in Marlin.cpp
7 years ago
teemuatlut 0cd1e91056 [2.0.x] TMC driver update (#8769) 7 years ago
Dave Johnson 69efb87d19 typo in Marlin.cpp 7 years ago
Scott Lahteine e37dd64548 Apply LEDColor, language fixes 7 years ago
Scott Lahteine 9406c87a97 Fix up LCD init / charset 7 years ago
Scott Lahteine 4371345cbe
Don't re-init graphical LCD after boot screen
Followup to 13a3fb1acc
7 years ago
Scott Lahteine c0000a0cdc Move servo code to modules/servo.* 7 years ago
Bob-the-Kuhn c14000775b PWM fixes, slow down fan update
include LPC1768 syntax for M42

couple more pin_t changes

consistency

change M42 to R, P format

Revert "change M42 to R, P format"

This reverts commit 01f12f579ec9ccc1bb9126e68d2c86449e9b7edf.
7 years ago
Scott Lahteine b7feb53e8a Support for Extrudrboard in Printrboard Rev.F 7 years ago
Scott Lahteine 79772219ae Fix Fan Multiplexer init 7 years ago
AnHardt ca0e4b4e96 Some cleanup around 'lcd_bootscreen()' and 'lcd_kill_screen()'
Move 'lcd_bootscreen()' from `lcd_init()` to 'setup()' where it is cexecute exactly once. Saves 'bool show_bootscreen'.
Move the call of 'lcd_custom_bootscreen()' to the begin of 'lcd_bootscreen()'.
Move the delays into the related functions.
Move the picture loop around 'lcd_kill_screen()' into the function.
7 years ago
Scott Lahteine 31e96935f7 Fix EXTRA_FAN_SPEED
Addressing #8158
7 years ago
Scott Lahteine c45514f811 Merge pull request #8094 from thinkyhead/bf2_neopixel_led_parity
[2.0.x] Bring NEOPIXEL_LED into parity with 1.1.x
7 years ago
Thomas Moore 9e699811d2 Make LPC1768 pinmapping not specific to Re-ARM (#8063)
* Merging early because of build failures.  See #8105

* Make LPC1768 pinmapping not specific to Re-ARM

* Add HAL_PIN_TYPE and LPC1768 pin features

* M43 Updates

* Move pin map into pinsDebug_LPC1768.h

* Incorporate comments and M226

* Fix persistent store compilation issues

* Update pin features

* Update MKS SBASE pins

* Use native LPC1768 pin numbers in M42, M43, and M226
7 years ago
Scott Lahteine 3ac581eac9 Neopixel changes for parity with 1.1.x 7 years ago
Roxy-3D 72156a2029 change to better (more clear) names (#8050)
set_destination_to_current() changed to set_destination_from_current()

set_current_to_destination() changed to set_current_from_destination()
7 years ago
Scott Lahteine ce48403a0b Add EXTRA_FAN_SPEED feature
Based on #7883 by @studiodyne
7 years ago
Scott Lahteine f8e8fcb978 Move FILAMENT_RUNOUT_SENSOR to a feature 7 years ago
Slawomir Ciunczyk a11e6a1022 Different NEOPIXEL types
Same as #7728 but for 2.0.x,
Lot of cleanup and remove references in whole code to other "LED files" than leds.h. Now will be much easier to add next drivers/libraries. e.g. FastLED. But bad news, currently FastLED is suporting only RGB devices (no RGBW)
7 years ago
Chris Pepper 46b2773e13 General fixes for LPC1768 (#7834)
* fixed some include paths

* LPC1768: Fix Serial API

Add missing serial methods used if TX_BUFFER_SIZE is set
Change return value of HalSerial:read to match Arduino API

* LPC1768: add filters to ADC

This is to try and compensate for hardware issue and oversensitivity to noise

* LPC1768: remove the polling section of delayMicroseconds

* LPC1768: lock usb mass storage device while device accesses it.

Currently only applicable to persistent store,
The device always has priority and will unmount the sd card from the host, Windows then tries to automount again so it can look like the explorer window freezes. Linux Mint, by default, just closes the Nemo window.

* Add timeout to make sure if Serial never connects that Marlin still boots

* Remove unneeded ifdef CPU_32_BIT

In general the need for ifdef CPU_32_BIT blocks means that something is missing from the HAL API or a Platform, in this case HAL_TICKS_PER_US was missing from the AVR Platform

* LPC1768: relocate RE-ARM debug_extra_script.py
7 years ago
Phr3d13 10c1b442ca Fixes for Anet10 and gt2560
Fixes for 2 "... not declared in this scope" compiler errors.
7 years ago
Scott Lahteine f9ef446fb5 Clean up after refactor 7 years ago
Scott Lahteine 64dfb46461 Move z_endstop_adj to Endstops 7 years ago
Scott Lahteine a10451ceed Move Volumetric methods to Planner 7 years ago
Scott Lahteine 6f92ab7eed Move Controller Fan to feature 7 years ago
Scott Lahteine 07cf75883f Move T (tool change) to cpp 7 years ago
Scott Lahteine 927524af6b Move M999 to cpp 7 years ago
Scott Lahteine 1a37ebc76d Move M163-M165 MIXING_EXTRUDER to cpp 7 years ago
Scott Lahteine 8ca0b2fd68 Move M355 caselight to cpp 7 years ago
Scott Lahteine 59608086e6 Move M350_M351 to cpp 7 years ago
Scott Lahteine 6e0503eab2 Move M907-M910 to cpp 7 years ago
Scott Lahteine 2e89685154 Move TMC2130 g-codes to cpp 7 years ago
Scott Lahteine 19dde5be03 Move M900 to cpp 7 years ago
Scott Lahteine 1b0acbff72 Move M605 to cpp 7 years ago
Scott Lahteine 75cf17d816 Move M702 MK2_MULTIPLEXER to cpp 7 years ago
Scott Lahteine 7ba2ab4fb3 Move M540 to cpp 7 years ago
Scott Lahteine a90c7dbf64 Move M500-M503 to cpp 7 years ago
Scott Lahteine aab5489962 Move M428 to cpp 7 years ago
Scott Lahteine 1fe25271e4 Move M401_M402 to cpp 7 years ago
Scott Lahteine 0589884d26 Move M400 to cpp 7 years ago
Scott Lahteine 4a220a8b79 Move M380_M381 to cpp, solenoid feature 7 years ago
Scott Lahteine 9be8cb0ac9 Move M360-M364 to cpp 7 years ago
Scott Lahteine 828405cac8 Move M302 to cpp 7 years ago
Scott Lahteine 8584f7e390 Move M250 to cpp 7 years ago
Scott Lahteine ebb9bd5419 Move M240 to cpp 7 years ago
Scott Lahteine d4aaa0f1c8 Move M304 to cpp 7 years ago
Scott Lahteine 609c4eea32 Move M301 to cpp 7 years ago
Scott Lahteine 4f14849675 Move M300 to cpp 7 years ago
Scott Lahteine 6ed5252884 Move M280 to cpp 7 years ago
Scott Lahteine d4d3d92f8a Move M260_M261 to cpp 7 years ago
Scott Lahteine 3e761696a0 Move M226 to cpp 7 years ago
Scott Lahteine 0e319104c2 Move M220 to cpp 7 years ago
Scott Lahteine 234de3547c Move M211 to cpp 7 years ago
Scott Lahteine 6c7bad8bc3 Move M666 to cpp 7 years ago
Scott Lahteine f5877aa93e Move M665 to cpp 7 years ago
Scott Lahteine 33861d4e04 Move M206 to cpp 7 years ago
Scott Lahteine 7aca9fe2f7 Move M203-M205 to cpp 7 years ago
Scott Lahteine b3822b9242 M202 is unused 7 years ago
Scott Lahteine 5e63efc1d9 Move M201 to cpp 7 years ago
Scott Lahteine 92c15f5578 Move M150 to cpp 7 years ago
Scott Lahteine eef4a54778 Move M119-M121 to cpp 7 years ago
Scott Lahteine 379f16558e Move M118 to cpp 7 years ago
Scott Lahteine 811c32b85a Move M117 to cpp 7 years ago
Scott Lahteine 1d2061c935 Move M115 to cpp 7 years ago
Scott Lahteine 81b8fbf4d6 Move M114 to cpp 7 years ago
Scott Lahteine 5d2681a105 Move M100 to cpp 7 years ago
Scott Lahteine beb346e49f Move M92 to cpp 7 years ago
Scott Lahteine 381b17e6a9 Move M18_M84, M85 to cpp 7 years ago
Scott Lahteine a911215b0e Move M82_M83 to cpp 7 years ago
Scott Lahteine 4b9d1b9f26 Move M80-M81 to cpp 7 years ago
Scott Lahteine 0c7ba52451 Move M149 to cpp 7 years ago
Scott Lahteine cbf40f7ee9 Move M145 to cpp 7 years ago
Scott Lahteine b464887ea1 Make BARICUDA a feature 7 years ago
Scott Lahteine 14a5d2a273 Move M113 to cpp 7 years ago
Scott Lahteine 06f3c8029e Move M111 to cpp 7 years ago
Scott Lahteine a831977dee Move M110 to cpp 7 years ago
Scott Lahteine 7479ff98b7 Move M140, M190 to cpp 7 years ago
Scott Lahteine 5b3e49babd Move M108, M112, M410 to cpp 7 years ago
Scott Lahteine df0432c7c8 Move M155 to cpp, auto-report to Temperature 7 years ago
Scott Lahteine df031ab100 Move M106_M107 to cpp 7 years ago
Scott Lahteine 99c4b9050a Move M105 to cpp 7 years ago
Scott Lahteine a41130f854 Temp stat LEDs 7 years ago
Scott Lahteine 2c1eda9e00 Move M75-M78 to cpp 7 years ago
Scott Lahteine fc52fc72ac Move M48 to cpp 7 years ago
Scott Lahteine be8d913484 Move M43 to cpp 7 years ago
Scott Lahteine 10fab24e50 Move M42 to cpp 7 years ago
Scott Lahteine 69b664b6fe Move M31 to cpp 7 years ago
Scott Lahteine a442c34a1a Move SD commands to cpp 7 years ago