Scott Lahteine
03d790451f
[2.0.x] HAL timer set/get count => set/get compare ( #9581 )
To reduce confusion over the current timer count vs. the compare (aka "top") value. Caution: this re-uses the function name, changing its meaning.
7 years ago
Thomas Moore
f7efac57b7
Multi-host support
7 years ago
Scott Lahteine
8df5955da4
Revert "Reset timer count before first block step"
This reverts commit 5cf6a062e3
.
7 years ago
Scott Lahteine
73e32925e4
References are better for array args
7 years ago
Scott Lahteine
5cf6a062e3
Reset timer count before first block step
7 years ago
Scott Lahteine
4fa65a5c25
TCNT0 => HAL_timer_get_current_count
Fix #8710
7 years ago
Scott Lahteine
de3d3b9cb1
Put FORCE_INLINE before static
7 years ago
Scott Lahteine
9898b96992
No lcd_map_control flag in quick_stop
7 years ago
Scott Lahteine
6040d4080e
Cleanup stepper ISR. Allow cleaning for endstops.
7 years ago
Scott Lahteine
2246316605
Fix name collision. timer_t => hal_timer_t
7 years ago
Scott Lahteine
723f2a77f6
Implement support for Dual X and Y endstops
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
Bob-the-Kuhn
26bfae58d4
MPC4451 I2C support
7 years ago
Scott Lahteine
03f4891fb9
Remove legacy ADVANCE feature
7 years ago
Scott Lahteine
8315a8a716
Apply fixes for DUE
Alternative to #7882 . If F_CPU is greater than 1000 it can be evenly divided by 8. Over 10000, 16; over 100000, 32; over 1 million, 64; etc.
7 years ago
Scott Lahteine
dff2904c0f
Marlin code whitespace cleanup
7 years ago
Dave Johnson
f58ba3a64e
Improve AVR arch detection
Replace ARDUINO_ARCH_AVR with __AVR__ to better detect architecture for non-Arduino dev environments. Resolves compile failure in PIO for 8-bit Teensduino targets
More info:
https://forum.pjrc.com/threads/33234-Using-Teensyduino-Selecting-Teensy-3-2-3-1-board-has-incorrect-platform-define
http://www.atmel.com/webdoc/avrlibcreferencemanual/using_tools_1using_avr_gcc_mach_opt.html
7 years ago
Scott Lahteine
3d8a0ab4b2
Module updates
7 years ago
Scott Lahteine
0c9231fd04
Move 'module' files
7 years ago
Christopher Pepper
4b16fa3272
Implement HAL and apply macros across code-base
Implement AVR Platform
8 years ago
dot-bob
b3c36c98fd
Edit digipot currents via LCD, save to EEPROM
8 years ago
Scott Lahteine
3c7bfe798d
Various cleanups ahead of digipot save
8 years ago
Scott Lahteine
e94f79ccea
Patch some serial macros
8 years ago
Scott Lahteine
ff0018e287
Format hex values as uppercase
8 years ago
Sebastianv650
84c685f8b5
First draft of Unified Stepper / E Advance ISR
8 years ago
esenapaj
069c6b38dd
Remove unnecessary tabs and spaces
8 years ago
Scott Lahteine
98600e1433
Minor stepper cleanup
8 years ago
Scott Lahteine
00662b8635
Minor babystep cleanup patches
8 years ago
Sebastianv650
f9bea7968f
BugFix for incorrect E-speed calculation
The extrusion speed was wrong due to a not high enough precision of
esteps to XY steps, therefore now the target float values are used to
calculate the ratio between XY movement and extrusion speed.
The e_speed_multiplier8 was replaced by an absolute multiplier called
abs_adv_steps_multiplier8, therefore one multiplication and bitshift can
be saved inside the stepper ISR. Due to this, also extruder_advance_k is
better suited inside the planner and not the stepper files any more.
8 years ago
Scott Lahteine
c5cac486f5
Use a, b, c instead of lx, ly, lz
8 years ago
Sebastianv650
a448cedbc5
LIN_ADVANCE bug fix and optimization
.) long to int: Extruder stalls at 10kHz / 20kHz step limits with long.
.) Take the delta_adv_steps calculation out of the step_loops loop. Wasted calculation performance if done inside.
.) >> 2 replaced by 3: Is divide by 8. Reason: Timer 0 runs at 16/8=2MHz, Timer 1 at 16/64=0.25MHz. ==> 2/0.25=8.
8 years ago
Scott Lahteine
ecf7cdde65
Augment planner/stepper getters/setters
8 years ago
Scott Lahteine
5fff8d148b
Clean up digital pots and microsteps
8 years ago
Scott Lahteine
7d72ed688c
Revert motor_current_setting to `constexpr`
We should use `constexpr` wherever it makes sense, for its added benefits. See http://stackoverflow.com/questions/13346879/const-vs-constexpr-on-variables
8 years ago
Scott Lahteine
5efb12e889
Simpler report_current_position for SCARA
8 years ago
Scott Lahteine
5cbed13f41
'constexpr' => 'const' for PWM_MOTOR_CURRENT
8 years ago
esenapaj
954563d603
Adjust spacing
8 years ago
esenapaj
7e9576dc5b
Extend the e_steps[] from int to long for allowing more than 32,767 E steps
Probably needed for long straight lines when using high microstepping
8 years ago
Scott Lahteine
8ff338c2b9
Patch stepper.h for SCARA
8 years ago
Scott Lahteine
9bf78ef465
Fix capitalization of counter_m
8 years ago
Scott Lahteine
08f717e5f7
Use bit-size typedefs for some stepper vars
8 years ago
Scott Lahteine
2f223b8c79
Use ABC and XYZ for "3"
8 years ago
Scott Lahteine
b73203a0b7
Move some includes around to uncover missing deps
8 years ago
Scott Lahteine
f8b5749235
Replace division in planner with multiplication
8 years ago
Scott Lahteine
05da02f0a2
Implement MIXING_EXTRUDER and SWITCHING_EXTRUDER
9 years ago
Scott Lahteine
117db77c55
make motor_current_setting static and constexpr
9 years ago
Scott Lahteine
8d8180e028
Parse M905 args in Marlin_main.cpp
9 years ago
Scott Lahteine
aad9c0ed8d
Apply updated ISR timing code
9 years ago
Scott Lahteine
6d62a4ffc8
Patch LIN_ADVANCE for style and forward-compatibility
9 years ago
Sebastianv650
fb8e880734
Add LIN_ADVANCE
9 years ago