Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
540 commits
Select commit Hold shift + click to select a range
2deff0d
Fix/Improve junction deviation
thinkyhead Jun 1, 2018
ae1be0f
Merge pull request #10910 from thinkyhead/bf2_fix_junction_deviation
thinkyhead Jun 1, 2018
d3c0241
[2.0.x] Small assorted collection of fixes and improvements (#10911)
ejtagle Jun 2, 2018
61181b7
Add macros for ST7565 commands
thinkyhead Jun 3, 2018
ad8d315
Cleanup for dual endstops homing
thinkyhead Jun 3, 2018
2fd9ba5
LED menu item bool (like Case Lights)
thinkyhead Jun 3, 2018
8591442
Merge pull request #10920 from thinkyhead/bf2_misc_cleanups_jun2
thinkyhead Jun 3, 2018
c685c7b
STM32F4: All pins can do PWM
thinkyhead Jun 3, 2018
c16e41e
STM32F4 pins cleanup
thinkyhead Jun 4, 2018
d550da0
Fix Max7219 control pins for use with 32-bit platforms
Roxy-3D Jun 4, 2018
c9d1a62
[2.0.x] fix indentations (#10934)
GMagician Jun 5, 2018
c2bdbdf
Prevent a buffer overflow in diveToFile
thinkyhead Jun 6, 2018
a5b0bf8
[2.0.x] Correct PROGMEM on DFU-equiped AT90USB boards (#10943)
Jun 6, 2018
eb1026d
[2.0.x] Fix compile warning (#10931)
GMagician Jun 6, 2018
d8b983f
More concise M503 output for M906, M913, M914 (#10947)
thinkyhead Jun 7, 2018
a426986
Ensure pins set to INPUT after attachInterrupt (#10928)
thinkyhead Jun 7, 2018
e7623b5
Restore Z_PROBE_PIN to pinsDebug_list.h
thinkyhead Jun 7, 2018
55aedf0
Fix M503 ABL mesh report. (Zero-based IJ indices)
thinkyhead Jun 7, 2018
7ba5aff
Allow FAN_PIN override, pins cleanup (#10956)
thinkyhead Jun 7, 2018
f74278b
Add -4 thermocouple to list in configs
thinkyhead Jun 8, 2018
334341c
Hephestos config updates (#10960)
thinkyhead Jun 8, 2018
88314b8
CREALITY_ENDER is long gone
thinkyhead Jun 9, 2018
b941843
Prevent MB false-positive on bad board name
thinkyhead Jun 9, 2018
779d4a1
Highlight 64128N and common ST7565 difference
thinkyhead Jun 9, 2018
d827043
Increase the planner first block HOLD delay to 100mS
ejtagle Jun 3, 2018
e970e42
[2.0.x] Fix null check in lsDive (#10978)
GMagician Jun 10, 2018
3701869
Add HAL_timer_start for AVR, use stepper timer to time pulses
thinkyhead Jun 3, 2018
8a376e6
Update MINIMUM_STEPPER_PULSE description
thinkyhead Jun 10, 2018
b64cc93
[2.0.x] Fix dual enstop home (#10980)
GMagician Jun 10, 2018
bbf8044
Add sanity-check for MOTHERBOARD
thinkyhead Jun 10, 2018
d90e8fc
Fix XON/XOFF implementation
ejtagle Jun 6, 2018
99af086
Add hidden Serial overflow debug options
ejtagle Jun 10, 2018
ae15c5a
Merge pull request #10983 from thinkyhead/bf2_xon_xoff_changes
thinkyhead Jun 10, 2018
39a7e77
Adaptive multiaxis step smoothing
ejtagle Jun 3, 2018
6f14bca
Add MAXIMUM_STEPPER_RATE, enforce in multi-stepping
ejtagle Jun 3, 2018
f1cdfe3
[2.0.x] stow bltouch before start homing (#10987)
GMagician Jun 10, 2018
4b90cd8
Merge pull request #10922 from ejtagle/bugfix-2.0.x
thinkyhead Jun 10, 2018
968a5d2
Protected pin err for M226
thinkyhead Jun 10, 2018
590ce1c
Fix serial debug ouput
thinkyhead Jun 10, 2018
a2f521d
Add Junction Deviation mm runtime setting (#10990)
thinkyhead Jun 10, 2018
20a5db0
Junction Deviation limit (0.01 to 0.3)
thinkyhead Jun 10, 2018
ae07a3e
Multiplier edit large ranges
thinkyhead Jun 10, 2018
117fd00
Followup to pin error change
thinkyhead Jun 11, 2018
3fd1f32
Fix ADC key and chamber temp
thinkyhead Jun 11, 2018
5590c8f
Fix MarlinSerial (AVR) (#10991)
ejtagle Jun 11, 2018
2ba198a
Tweak M122 report spacing
thinkyhead Jun 11, 2018
b8f8dc7
Add travis helper update_defaults
thinkyhead Jun 11, 2018
43bdd0b
Fix indent in stepper.h
thinkyhead Jun 12, 2018
2ddba20
STM32F1 HAL Fixes (#10999)
alexxy Jun 12, 2018
86170e6
[2.0.x] Add O (optional) flag to G28/G29 (#10913)
dot-bob Jun 12, 2018
4832be5
Followup to G29 O
thinkyhead Jun 12, 2018
f2c3b0d
Use bit flags for homed/known
thinkyhead Jun 12, 2018
9d04f47
Improvements for junction_deviation_mm
thinkyhead Jun 11, 2018
9b945c1
Fix STM32F1 ISR_ENABLED
thinkyhead Jun 12, 2018
12689f2
Merge pull request #11001 from thinkyhead/bf2_junction_deviation_fix
thinkyhead Jun 12, 2018
928e50e
Try LiquidCrystal@1.3.4
thinkyhead Jun 12, 2018
4dbec77
HAL_*_TIMER_RATE => *_TIMER_RATE
thinkyhead Jun 12, 2018
e0276d2
Official STMicroelectronics Arduino Core STM32F4 HAL compatibility (#…
ktand Jun 12, 2018
cf53e50
No need to set input after attachInterrupt
thinkyhead Jun 12, 2018
a9861a7
Tweak HAL heading
thinkyhead Jun 12, 2018
0d79128
Localize stepper-specific defines
thinkyhead Jun 12, 2018
a215725
Fix stepper pulse timing
ejtagle Jun 12, 2018
f3fed52
Fix coolstep_min_speed / sensorless homing
thinkyhead Jun 13, 2018
81edbfa
Merge pull request #11004 from ejtagle/always_honor_maximum_step_rate
thinkyhead Jun 13, 2018
4c8d6df
Extra insurance against endstop false positives (#11013)
thinkyhead Jun 13, 2018
cce0523
[2.0.x] reset bltouch on home (#11018)
GMagician Jun 13, 2018
7e8d2d6
Auto Build for Visual Studio Code (#11014)
Bob-the-Kuhn Jun 13, 2018
19d4c7c
Tweak HAL header comments
thinkyhead Jun 14, 2018
091f742
Add WIFISUPPORT to example configs
thinkyhead Jun 14, 2018
e2aeda6
HAL for Espressif ESP32 Wifi
simon-jouet Oct 8, 2017
fdd97e6
Merge pull request #11020 from simon-jouet/esp32
thinkyhead Jun 14, 2018
f88adcb
[2.0.x][LPC176x] Fix binary linking broken by pio update (#11026)
p3p Jun 15, 2018
da94e0b
Unsigned eeprom mesh addresses
thinkyhead Jun 15, 2018
c1269c2
Tweak AVR critical section defines
thinkyhead Jun 16, 2018
0312c42
[2.0.x] LPC176x Serial cleanup (#11032)
p3p Jun 17, 2018
e23677a
Update some G-code comments
thinkyhead Jun 18, 2018
d4795e5
[2.0.x] Tweaks and additions for MAX7219 (#11034)
thinkyhead Jun 19, 2018
a65d15c
[2.0.x] Fix Italian msg len (#11058)
GMagician Jun 19, 2018
7c54c4e
Tiny improvement to M7219
Roxy-3D Jun 19, 2018
7406f04
Use MAX (not max) in stepper.h
thinkyhead Jun 20, 2018
e366d55
Don't reset stepper timeout for all g-codes
thinkyhead Jun 20, 2018
a2a30ff
Use Tool 0 for Dual X Axis G29
thinkyhead Jun 20, 2018
7a84b03
Use MIN/MAX in post-conditionals
thinkyhead Jun 20, 2018
1239e8e
Fix value editing with callback
thinkyhead Jun 21, 2018
3831297
Edit Z fade as whole numbers
thinkyhead Jun 21, 2018
1d7dd0e
Add the move_z_after_probing() functionality to UBL's G29 J
Roxy-3D Jun 21, 2018
a5c11bf
Merge pull request #11075 from thinkyhead/bf2_value_editing
thinkyhead Jun 22, 2018
99591dc
Filter endstops state at all times (#11066)
thinkyhead Jun 22, 2018
50b6204
Fix LIN_ADVANCE max_e_jerk_factor
thinkyhead Jun 22, 2018
3b7c5a3
Enable local board repository for PIO (#11079)
Jun 22, 2018
7e80214
[2.0.x] Add CR-10 stock display support for Re-Arm (EXP3) (#11068)
ModMike Jun 22, 2018
3fa9aeb
Restore env:teensy20, for now
thinkyhead Jun 22, 2018
48a15d1
[2.0.x] Fix stepper/planner race condition and Stepper pulse timer (#…
ejtagle Jun 22, 2018
fb4e0b1
Fix endstops compilation error
ejtagle Jun 22, 2018
d86f25a
Fix Serial ISR priority for LPC1768
thinkyhead Jun 25, 2018
5b49fcc
Add stepper driver DIR delay configuration option
ejtagle Jun 23, 2018
8d8f257
[2.0.x] Fix advanced pause init values (#11095)
GMagician Jun 26, 2018
ffdbc1f
STM32F1: Fix SD card persistent store API (#11090)
AlexanderAmelkin Jun 26, 2018
0ee34eb
Add PIO board definitions for Malyan M200 (#11120)
Jun 26, 2018
229b26b
Clear LED matrix without startup test
thinkyhead Jun 26, 2018
d13f76b
Patch some loop macros
thinkyhead Jun 26, 2018
3b3029c
Make max_e_jerk an array to reduce CPU usage (#11118)
gloomyandy Jun 27, 2018
053438a
Poll all endstops, even when stationary (#11123)
thinkyhead Jun 27, 2018
4d3a993
Match ASM comment spacing to 1.1.x
thinkyhead Jun 27, 2018
edb21f3
Fix stepper/planner block handling, race conditions (#11098)
ejtagle Jun 27, 2018
aa4cd2e
Eliminate stepper.* signed/unsigned warnings
thinkyhead Jun 28, 2018
1b8973e
Fix up microsteps conditionals
thinkyhead Jun 28, 2018
921685d
Teensy++ 2.0 can truly go away
thinkyhead Jun 28, 2018
42f9921
Ignore Z min endstop with separate Z-probe
thinkyhead Jun 28, 2018
a264030
Fix "G29" G29_MAX_RETRIES handling
thinkyhead Jun 29, 2018
3349eb0
Fix SKEW_CORRECTION compile error
thinkyhead Jun 30, 2018
c36efd3
Don't hide deeper lib folders
thinkyhead Jun 28, 2018
0fff79c
Fixes G29_with_retry behavior (#11045)
hexane360 Jun 30, 2018
fbf1c9b
Fix and tweak POWER_LOSS_RECOVERY (#11151)
thinkyhead Jun 30, 2018
bd7f584
Remove JUNCTION_DEVIATION_INCLUDE_E option (#11147)
thinkyhead Jun 30, 2018
a431013
Fix G33 compile warning
thinkyhead Jun 30, 2018
d4fde91
Fix serial.h including itself
thinkyhead Jun 28, 2018
05518d6
Add newline to end of file
thinkyhead Jun 29, 2018
fc10101
Tweaks to fastio_Due.h
thinkyhead Jun 30, 2018
8c9f901
Enable Malyan LCD Support for M200 printers. (#11051)
xC0000005 Jun 30, 2018
444725a
Non-conflicting CS pins for MKS Gen L
thinkyhead Jun 30, 2018
8eaac0d
Add delta feedrate scaling (#11153)
thinkyhead Jun 30, 2018
f9a090b
Fix Trigorilla 1.4 pins
thinkyhead Jun 28, 2018
2421f3a
Detect endstop hits in any direction
thinkyhead Jun 30, 2018
90ba77e
Lose the old HOMEAXIS macro
thinkyhead Jun 30, 2018
c51e27d
Do a hard kill for failed homing moves (#11161)
thinkyhead Jul 1, 2018
8a8eae8
Implement more fastio_Due macros (#11165)
thinkyhead Jul 1, 2018
5616581
[LPC176x] Update fastio _GET_INPUT, _GET_OUTPUT macros (#11168)
p3p Jul 2, 2018
cedc158
[2.0.x] Board specific init macro (#11170)
TheLongAndOnly Jul 2, 2018
3de0c85
Fix RRW graphical LCD constructor macro (#11171)
teemuatlut Jul 2, 2018
8299ac1
[2.0.x] Slovak translation update (#11175)
rmoravcik Jul 2, 2018
1ea222e
Turn off DISABLE_INACTIVE_EXTRUDER with SWITCHING_NOZZLE
thinkyhead Jul 2, 2018
4b2af6a
Minor patches to POWER_LOSS_RECOVERY
thinkyhead Jul 2, 2018
e0ab8ac
Add "Marlin Dev Mode" option
thinkyhead Jul 3, 2018
1a0f4de
Fix and improve POWER_LOSS_RECOVERY (#11187)
thinkyhead Jul 3, 2018
568cfe7
Add thermistor 501 (100K Zonestar)
thinkyhead Jul 3, 2018
48c1f32
Add configurations for Tronxy X3A
thinkyhead Jul 3, 2018
8c0ec81
Followup to #11187
thinkyhead Jul 3, 2018
47ee149
Merge pull request #11195 from thinkyhead/bf2_tronxy_x3a
thinkyhead Jul 4, 2018
480a3d3
Apply sensorless homing requirements only for specified axes
thinkyhead Jul 4, 2018
c7ec6c6
Patch SCARA config to match 1.1.x
thinkyhead Jul 4, 2018
9c05809
No M914 or SGT set for non-sensorless axes
thinkyhead Jul 4, 2018
5379c11
Fix Trigorilla include typo
thinkyhead Jul 4, 2018
6837252
Merge pull request #11196 from thinkyhead/bf2_fix_m914_sgt
thinkyhead Jul 4, 2018
cbea385
[2.0.x] Fix LCD_LANGUAGE options list formatting in config (#11198)
p3p Jul 4, 2018
5abf5bc
[LPC176x] Fix Interrupt forward declarations (#11200)
p3p Jul 4, 2018
55f4744
[LPC176x] Endstop Interrupts Feature (#11202)
p3p Jul 4, 2018
e7e896e
More tweaks to fastio_Due.h
ejtagle Jul 1, 2018
68e6650
Remove Quake Fast Inverse SQRT (it isn't faster)
thinkyhead Jul 4, 2018
d960d44
Optimize calculations with LROUND
thinkyhead Jul 4, 2018
1367df2
Replace double with float, optimize calculation
ejtagle Jul 1, 2018
2992112
Optimize delta kinematics
thinkyhead Jul 5, 2018
dde009e
Merge pull request #11178 from ejtagle/misc-fixes
thinkyhead Jul 6, 2018
b143441
Test CR-10S with status and bootscreen
thinkyhead Jul 7, 2018
63f4c9b
Followup to float maths patch
thinkyhead Jul 7, 2018
d05e832
Add STM32F1 support for SD-based EEPROM
thinkyhead Jul 7, 2018
ed72019
[2.0.x][HD44780] Remove unused include
AlexanderAmelkin Jul 6, 2018
03fa05a
Travis CI test STM32F1 with HD44780
thinkyhead Jul 7, 2018
603e136
Resolve issue where user can't edit UBL's mesh
Roxy-3D Jul 8, 2018
20761b8
Merge pull request #11212 from AlexanderAmelkin/2.0-HD44780-remove-un…
thinkyhead Jul 8, 2018
6b521b6
Loosen thermistor table size limit
thinkyhead Jul 12, 2018
566d050
report_state > event_handler
thinkyhead Jul 11, 2018
c8d24a6
Add Sublime G-code (RepRap) syntax
thinkyhead Jul 13, 2018
fd8a764
Unify M91x parameter I meaning, simplify reports (#11249)
thinkyhead Jul 13, 2018
25e2ca8
Add Z_CLEARANCE_MULTI_PROBE
thinkyhead Jul 13, 2018
12854f1
Add Z_CLEARANCE_MULTI_PROBE to example configs
thinkyhead Jul 13, 2018
bf7d0ba
Assert that XY probe offsets are integers
thinkyhead Jul 13, 2018
fed68f2
Merge pull request #11257 from thinkyhead/bf2_misc_fixes_jun19
thinkyhead Jul 13, 2018
8c57cad
Include stdlib in fontutils (#11251)
superjamie Jul 13, 2018
e5ea9d2
[2.0.x] fix kill printer (#11260)
GMagician Jul 14, 2018
e486326
Vellemann K8400 Y bed size is 180
thinkyhead Jul 14, 2018
c43793a
Update Travis Tests to run platforms in parallel (#11256)
p3p Jul 14, 2018
3b5dec4
Add new LPC include folder
teemuatlut Jun 15, 2018
f38c81c
LPC176x: Expand HW SPI class
teemuatlut Apr 6, 2018
8f686aa
[2.0.x] Fix change filament crash (#11269)
GMagician Jul 17, 2018
be7d1df
Merge pull request #11267 from teemuatlut/bf2_lpc_spi
thinkyhead Jul 17, 2018
a26fdf6
[2.0.x] Switch to PIO managed L6470 library (#11288)
soimy Jul 17, 2018
902167f
Revert "[2.0.x] Switch to PIO managed L6470 library (#11288)" (#11290)
Roxy-3D Jul 17, 2018
71df1f7
Don't display M421 information for UBL at startup
Roxy-3D Jul 17, 2018
065e9c3
Add card.longest_filename method
thinkyhead Jul 13, 2018
b04e0c0
Malyan LCD feedrate, better temp handling.
xC0000005 Jul 10, 2018
8c40f0c
Reduce TQ message code size
thinkyhead Jul 13, 2018
aed1d17
Initialize default units (#11295)
GMagician Jul 18, 2018
64f0075
Fix some header comments
thinkyhead Jul 18, 2018
c83109c
Merge pull request #11238 from xC0000005/MalyanLCDUpdate
thinkyhead Jul 18, 2018
47d5fcb
[2.0.x] Change MKS SBASE default serial port to avoid confusion (#11301)
p3p Jul 18, 2018
2243f72
Add POWER_LOSS_PIN to example configs
thinkyhead Jul 19, 2018
665ac1e
Add POWER_LOSS_PIN support
thinkyhead Jul 19, 2018
63a146d
planner.synchronize at start of tool_change
thinkyhead Jul 19, 2018
6d2aff0
Merge pull request #11306 from thinkyhead/bf2_power_loss_pin
thinkyhead Jul 19, 2018
17ed0f8
Fix tool_change call in UBL G29
thinkyhead Jul 19, 2018
2106fa2
Add MANUAL_PROBE_START_Z for manual probing
thinkyhead Jul 19, 2018
39c8aed
Add MANUAL_PROBE_START_Z to example configs
thinkyhead Jul 19, 2018
9660996
Add Multi Unit Support for Max7219 to bugfix_2.0.0 (#11285)
Roxy-3D Jul 19, 2018
db85ca9
Change Max7219_idle_task() to use a column instead of row if Y-Axis a…
Roxy-3D Jul 19, 2018
03b01e2
Folger Tech i3-2020 now defaults to 2 Max7219 units
Roxy-3D Jul 19, 2018
4195757
Merge pull request #11309 from thinkyhead/bf2_manual_probe_start_z
thinkyhead Jul 19, 2018
76d4cfb
Tweak some Max7219 code
thinkyhead Jul 19, 2018
a35abce
Fix missing ')'
Roxy-3D Jul 20, 2018
09485f6
add missing ')'
Roxy-3D Jul 22, 2018
62fa028
Handle dual gantry machines better
Roxy-3D Jul 24, 2018
4685c7d
Followup to M91x I patch
thinkyhead Jul 13, 2018
14e2b11
Fix spelling in configs
thinkyhead Jul 25, 2018
fbdbe53
Fix get_period_inverse(0) so it doesn't crash (#11334)
eyal0 Jul 25, 2018
e5c0b49
Add *_DRIVER_TYPE to example configs
thinkyhead Jul 18, 2018
fbcdf5e
Simplify stepper driver per-axis selection
teemuatlut Jul 14, 2018
4dfbae0
Merge pull request #11264 from teemuatlut/bf2_define_drivers
thinkyhead Jul 25, 2018
bd3ec66
[2.0.x] typo fix (#11365)
GMagician Jul 25, 2018
9c2bfa2
Remove extra parameter to enqueue. (#11364)
xC0000005 Jul 25, 2018
32de09f
Specify some extra CR-10S pins
thinkyhead Jul 16, 2018
22ebbc0
Tweak some SoftPWM code
thinkyhead Jul 15, 2018
e05e95c
Clean trailing whitespace
thinkyhead Jul 25, 2018
048dbf6
Merge pull request #11275 from thinkyhead/bf2_pwm_adjustments
thinkyhead Jul 26, 2018
d1c6687
Update MKS sBase pins (#11357)
Jul 26, 2018
67b205f
Add support for board RuRAMPS4D v1.3 (#11363)
boelle Jul 26, 2018
e2aa635
Fix Anet A6 thermistors
thinkyhead Jul 26, 2018
624986d
Ensure ADC conversion is complete before reading (#11336)
gloomyandy Jul 26, 2018
4237c3d
[2.0.x] different bltouch init (#11135)
GMagician Jul 26, 2018
aadcf08
[2.0.x] add Calibrate Z (M915) to Prepare Menu (#11331)
MikeLud Jul 26, 2018
955a7f0
Improve driver.h macros (#11371)
thinkyhead Jul 26, 2018
244b9a8
Better fastio 1280/2560 pin list
thinkyhead Jul 26, 2018
094e6d8
Add Einstart-S support (#11219)
eltoozero Jul 26, 2018
8a24ff9
AT90USB1286 PIO cleanup and optimization (#11230)
Jul 26, 2018
15d68cb
Pre-override of ST7920 delays before HAL.h
thinkyhead Jul 27, 2018
5ce5ff8
[2.0.x] fix bltouch homing (#11379)
GMagician Jul 27, 2018
6dafb90
[2.0.x]Idex and bl touch fixes (#11395)
silentninja1 Jul 28, 2018
74900f7
[2.0.x] bltouch home refinements (#11397)
GMagician Jul 29, 2018
1643237
Revert "[2.0.x]Idex and bl touch fixes" (#11407)
Roxy-3D Jul 29, 2018
2cc950d
[2.0.x] MKS SBASE Trinamic examples/support (#11402)
Jul 31, 2018
b826bf4
Fix initial safe_speed in jerk code (#11417)
thinkyhead Jul 31, 2018
64c493a
MKS_12864_OLED code cleanup
thinkyhead Jul 31, 2018
aae0282
Cosmetic pins changes
thinkyhead Aug 3, 2018
f222475
Fix jumping progress bar. (#11439)
marcio-ao Aug 3, 2018
9bae413
Add Bigtreetech/BIQU KFB 2.0 board (#11446)
thinkyhead Aug 3, 2018
9c62c47
[2.0.x] Fix Dual X Carriage tool change crash (#11447)
thinkyhead Aug 4, 2018
131d216
Fix drivers.h dependency, defer macro evaluation (#11450)
thinkyhead Aug 4, 2018
7983559
Easier to disable homing validation (#11458)
thinkyhead Aug 7, 2018
e85feb2
[2.0.x] Better timing handling (#11461)
GMagician Aug 7, 2018
eee1b7c
[2.0.x] Fix compile error (#11465)
GMagician Aug 7, 2018
e4ecade
Fix AUTO_POWER_CONTROL compile error
thinkyhead Aug 7, 2018
f891416
No raise on G28 after power-loss
thinkyhead Aug 7, 2018
b7e15a6
Target specific nxplpc and ststm32 pio platform versions to fix build…
p3p Aug 10, 2018
a1a5367
Smoothieboard V1.0/1.1 and A5984 support
GadgetNutt Aug 8, 2018
72b086b
Add A5984 to example configurations
thinkyhead Aug 10, 2018
42ffa58
Merge pull request #11488 from timeshell/bugfix-2.0.x
thinkyhead Aug 10, 2018
b328fb4
Treat TMC2660 like non-TMC (#11508)
thinkyhead Aug 10, 2018
fc55f1d
Account for UBL correction when setting the planner position (#11486)
tcm0116 Aug 10, 2018
0af2254
Allow G33 to compile with no LCD
thinkyhead Aug 12, 2018
c93538e
UBL/planner patch tweaks
thinkyhead Aug 12, 2018
aa9d329
Reduce max accel in Creality configs
thinkyhead Aug 12, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
443 changes: 8 additions & 435 deletions .travis.yml

Large diffs are not rendered by default.

347 changes: 216 additions & 131 deletions Marlin/Configuration.h

Large diffs are not rendered by default.

271 changes: 165 additions & 106 deletions Marlin/Configuration_adv.h

Large diffs are not rendered by default.

521 changes: 251 additions & 270 deletions Marlin/Makefile

Large diffs are not rendered by default.

148 changes: 148 additions & 0 deletions Marlin/src/HAL/Delay.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
/**
* 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/>.
*
*/

/**
* Busy wait delay cycles routines:
*
* DELAY_CYCLES(count): Delay execution in cycles
* DELAY_NS(count): Delay execution in nanoseconds
* DELAY_US(count): Delay execution in microseconds
*/

#ifndef MARLIN_DELAY_H
#define MARLIN_DELAY_H

#include "../core/macros.h"

#if defined(__arm__) || defined(__thumb__)

// https://blueprints.launchpad.net/gcc-arm-embedded/+spec/delay-cycles

#define nop() __asm__ __volatile__("nop;\n\t":::)

FORCE_INLINE static void __delay_4cycles(uint32_t cy) { // +1 cycle
#if ARCH_PIPELINE_RELOAD_CYCLES < 2
#define EXTRA_NOP_CYCLES A("nop")
#else
#define EXTRA_NOP_CYCLES ""
#endif

__asm__ __volatile__(
A(".syntax unified") // is to prevent CM0,CM1 non-unified syntax
L("1")
A("subs %[cnt],#1")
EXTRA_NOP_CYCLES
A("bne 1b")
: [cnt]"+r"(cy) // output: +r means input+output
: // input:
: "cc" // clobbers:
);
}

// Delay in cycles
FORCE_INLINE static void DELAY_CYCLES(uint32_t x) {

if (__builtin_constant_p(x)) {
#define MAXNOPS 4

if (x <= (MAXNOPS)) {
switch (x) { case 4: nop(); case 3: nop(); case 2: nop(); case 1: nop(); }
}
else { // because of +1 cycle inside delay_4cycles
const uint32_t rem = (x - 1) % (MAXNOPS);
switch (rem) { case 3: nop(); case 2: nop(); case 1: nop(); }
if ((x = (x - 1) / (MAXNOPS)))
__delay_4cycles(x); // if need more then 4 nop loop is more optimal
}
#undef MAXNOPS
}
else
__delay_4cycles(x / 4);
}
#undef nop

#elif defined(__AVR__)

#define nop() __asm__ __volatile__("nop;\n\t":::)

FORCE_INLINE static void __delay_4cycles(uint8_t cy) {
__asm__ __volatile__(
L("1")
A("dec %[cnt]")
A("nop")
A("brne 1b")
: [cnt] "+r"(cy) // output: +r means input+output
: // input:
: "cc" // clobbers:
);
}

// Delay in cycles
FORCE_INLINE static void DELAY_CYCLES(uint16_t x) {

if (__builtin_constant_p(x)) {
#define MAXNOPS 4

if (x <= (MAXNOPS)) {
switch (x) { case 4: nop(); case 3: nop(); case 2: nop(); case 1: nop(); }
}
else {
const uint32_t rem = (x) % (MAXNOPS);
switch (rem) { case 3: nop(); case 2: nop(); case 1: nop(); }
if ((x = (x) / (MAXNOPS)))
__delay_4cycles(x); // if need more then 4 nop loop is more optimal
}

#undef MAXNOPS
}
else
__delay_4cycles(x / 4);
}
#undef nop

#elif defined(ESP32)

FORCE_INLINE static void DELAY_CYCLES(uint32_t x) {
unsigned long ccount, stop;

__asm__ __volatile__ ( "rsr %0, ccount" : "=a" (ccount) );

stop = ccount + x; // This can overflow

while (ccount < stop) { // This doesn't deal with overflows
__asm__ __volatile__ ( "rsr %0, ccount" : "=a" (ccount) );
}
}

#else

#error "Unsupported MCU architecture"

#endif

// Delay in nanoseconds
#define DELAY_NS(x) DELAY_CYCLES( (x) * (F_CPU/1000000L) / 1000L )

// Delay in microseconds
#define DELAY_US(x) DELAY_CYCLES( (x) * (F_CPU/1000000L) )

#endif // MARLIN_DELAY_H
17 changes: 6 additions & 11 deletions Marlin/src/HAL/HAL_AVR/HAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,14 @@

****************************************************************************/

/**
* Description: HAL for AVR
*
* For __AVR__
*/


#ifdef __AVR__

// --------------------------------------------------------------------------
// Includes
// --------------------------------------------------------------------------

#include "../../inc/MarlinConfig.h"
#include "HAL.h"

// --------------------------------------------------------------------------
// Externals
Expand Down Expand Up @@ -74,9 +68,11 @@
// --------------------------------------------------------------------------

#if ENABLED(SDSUPPORT)

#include "../../sd/SdFatUtil.h"
int freeMemory() { return SdFatUtil::FreeRam(); }
#else

#else // !SDSUPPORT

extern "C" {
extern char __bss_end;
Expand All @@ -93,7 +89,6 @@ extern "C" {
}
}

#endif //!SDSUPPORT

#endif
#endif // !SDSUPPORT

#endif // __AVR__
Loading