Kevin O'Connor
7cbc44b8d3
stm32f1: Use -O2 optimization and inline timer_read_time()
...
As long as timer_read_time() is inlined, I get better performance with
gcc -O2 optimization. The binary is also dramatically smaller and O2
better matches the other platforms.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-11 10:50:51 -04:00
Kevin O'Connor
102ec4938d
stm32f1: Use the main lib/cmsis-core directory for cmsis includes
...
Use the main cmsis header files with stm32f1.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-11 10:50:51 -04:00
Kevin O'Connor
75fa74313c
stm32f1: Add support for building with bootloader support
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-11 10:50:51 -04:00
Kevin O'Connor
215b4c5a1e
stm32f1: Move assembler build rules together
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-11 10:50:51 -04:00
Kevin O'Connor
b8745bc973
stm32f1: Pull the USB D+ line low briefly to signal a device connect
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-11 10:50:51 -04:00
Kevin O'Connor
bc5e961d73
stm32f1: Initial support for serial over USB
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-11 10:50:51 -04:00
Kevin O'Connor
1302514ea8
stm32f1: Serial should have a higher irq priority than timers
...
It's possible for the code to stay in the timer irq for up to 100ms,
so serial irqs should have a higher irq priority to prevent them from
being starved. (The timer code disables irqs during event dispatch,
so serial irqs would only be permitted between events anyway.)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-11 10:50:51 -04:00
Kevin O'Connor
d32506bd2e
homing: Move homing offset adjustment logic to generic homing code
...
Move the "stepper phase" adjustment logic from the kinematic classes
to the generic homing.py code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-10 14:30:09 -04:00
Kevin O'Connor
770b92863f
mcu: Add a set_commanded_position() method to MCU_stepper
...
Add the ability to directly set the "commanded" stepper position.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-10 14:30:09 -04:00
Kevin O'Connor
459e521991
delta: Add a special case to the limit checks for the homing position
...
When a delta printer has different arm lengths or different endstop
positions then the homing position falls outside of the normal
printable area. Add a special check to the range checking code to
permit this move instead of homing to a position near the actual
homing position.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-10 12:18:22 -04:00
Kevin O'Connor
bd1ba86839
delta: Reorganize init()
...
Just code movement. Move boundary check init to after tower init.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-10 12:18:22 -04:00
Kevin O'Connor
d4bf51231a
homing: Implement second home from homing.py
...
Move the logic for performing the second home from the kinematics
classes to the generic homing code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-10 12:14:27 -04:00
Kevin O'Connor
3db483e270
delta: Wrap lines to 80 columns
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-10 12:14:27 -04:00
Kevin O'Connor
1146d228fa
servo: Wrap lines to 80 columns
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-10 12:14:27 -04:00
Kevin O'Connor
1e07be4db4
docs: Add a "Lost communication with MCU" section to the FAQ
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-09 11:22:28 -04:00
Kevin O'Connor
e85f9473fc
stepper: Wrap lines to 80 columns
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-09 11:17:39 -04:00
Kevin O'Connor
f7a7223b30
cartesian: Use homing_speed for homing retract speed
...
Commit b0d859f2 introduced a second_homing_speed parameter, and it
also changed the retract speed. Revert the retract speed change (use
homing_speed when the head retracts).
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-09 11:17:39 -04:00
Kevin O'Connor
36ae433b57
cartesian: Make sure to constrain second_homing_speed to max_z_velocity
...
Commit b0d859f2 introduced a second_homing_speed parameter; that
parameter needs to also be constrained to the max_z_velocity.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-08 10:52:46 -04:00
Kevin O'Connor
8eb1110aa8
logextract: Fix handling of clock reports at end of line
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-08 10:34:07 -04:00
alfsoft
909eef3978
display: Corrected Fan icon graphics ( #753 )
...
Added new Copyright string, corrected Fan icon graphics
Signed-off-by: Alexander Fadeev <alfsoft@gmail.com >
2018-10-07 13:38:11 -04:00
Chris Whiteford
c5d94a74a5
servo: Adding support for startup value for servos ( #676 )
...
Signed-off-by: Chris Whiteford <github@chrisandtennille.com >
2018-10-05 14:35:38 -04:00
Kevin O'Connor
852d1666bb
docs: Fix typo in BED_MESH_PROFILE description in G-Codes.md
...
Reported by @fiveNinePlusR
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-04 19:01:18 -04:00
Chris Whiteford
b0d859f220
stepper: Adding support for a second_homing_speed parameter ( #677 )
...
Signed-off-by: Chris Whiteford <chris@chrisandtennille.com >
2018-10-04 18:55:58 -04:00
Kevin O'Connor
97927172f1
st7920: Use display xor capability when animating glyphs
...
Use the xor capability of the display to animate the glyphs, which
reduces the number of glyphs needed from 4 to 2. This should make it
easier to add future animations if desired.
Suggested by @marcio-ao.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-04 13:49:00 -04:00
alfsoft
630989c0fe
display: Change Extruder, Bed and Fan icons design ( #740 )
...
Based on replies from Issue 652 (https://github.com/KevinOConnor/klipper/issues/652 ) only Extruder, Bed and Fan icons are changed. Feedrate icon stays untouched.
Signed-off-by: Alexander Fadeev <alfsoft@gmail.com >
2018-10-04 13:25:29 -04:00
Arksine
d29eb731a9
bed_mesh: save mesh state to 'default' profile after calibration
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com >
2018-10-04 12:53:03 -04:00
LazaroFilm
822616ae7f
docs: Spelling error corrected in bed mesh comment ( #735 )
...
The comment for the algorithm setting had a spelling error, it said:
[...]May be either "langrange"[...]
Removed the n.
Signed-off-by: Victor Lazaro <lazarofilm@gmail.com >
2018-10-04 12:48:27 -04:00
Kevin O'Connor
978b321f80
avr: Disable usb serial interrupts while processing data
...
There's no need to keep taking interrupts if the high-level code is
busy processing messages.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-02 22:17:39 -04:00
Kevin O'Connor
7c7573f69f
avr: No need to reset ep0 interrupts on a shutdown
...
The usb_cdc code will arrange to call usb_read_ep0_setup() after a
shutdown, so no need to have an explicit shutdown handler.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-02 21:41:36 -04:00
Kevin O'Connor
efd9e7a6df
usb_cdc: Try to read new data before processing data blocks
...
Call usb_read_bulk_out() before calling command_find_and_dispatch() as
this optimizes the common case where each usb packet contains a single
new message block.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-02 21:38:58 -04:00
Kevin O'Connor
fe98dd3585
usb_cdc: Wake usb_bulk_out_task() on a shutdown
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-02 21:33:46 -04:00
Arksine
b261d31ec5
bed_mesh: Add ability to save mesh state to persistent memory
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com >
2018-10-02 16:26:35 -04:00
Arksine
144868c600
bed_mesh: Extend BED_MESH_MAP to provide more information
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com >
2018-10-02 16:26:35 -04:00
Kevin O'Connor
5c267e4f69
docs: Update Features.md document with tmc2660 support
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-02 14:07:33 -04:00
Janar Sööt
50d1ad9019
menu.cfg: add fan glyph to __screen2004_static & __screen2004_input
...
Signed-off-by: Janar Sööt <janar.soot@gmail.com >
2018-10-02 12:49:12 -04:00
Janar Sööt
b2691d4730
hd44780: new text glyph - fan
...
Signed-off-by: Janar Sööt <janar.soot@gmail.com >
2018-10-02 12:49:12 -04:00
Kevin O'Connor
d348f0da87
avr: Allow the serial port to be selected on the atmega2560/1280
...
Allow the serial port to be selected on the atmega2560 and atmega1280
chips in Kconfig.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 22:30:58 -04:00
Kevin O'Connor
0820394e13
toolhead: M204 must update max_accel_to_decel
...
The max_accel_to_decel variable must not be greater than the max_accel
variable. Make sure to check this when M204 changes max_accel.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 22:02:33 -04:00
Kevin O'Connor
357b2f477c
buttons: Clear pressed/last_pressed state on new buttons_query command
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 12:40:28 -04:00
Kevin O'Connor
820dd0b5e3
display: Don't error if M73 is missing a P parameter
...
Try to avoid raising an error on an M73 command.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 12:31:31 -04:00
Kevin O'Connor
f49f298003
probe: Merge ProbeVirtualEndstop and ProbeEndstopWrapper wrapper classes
...
No need to have two wrappers around the mcu_endstop class.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 11:14:23 -04:00
Kevin O'Connor
9f755750d3
test: Add a test case for probe:z_virtual_endstop support
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 11:12:30 -04:00
Kevin O'Connor
1940ba7062
config: Minor indentation fix to comments in example-extras.cfg
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 11:12:30 -04:00
Kevin O'Connor
a698aef29b
config: Note probe activate/deactivate must not move the toolhead
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 11:12:30 -04:00
Kevin O'Connor
c5d4e14298
probe: Infer position_endstop when using probe:z_virtual_offset
...
Don't require (or permit) the user to specify a stepper_z
position_endstop when using the probe:z_virtual_offset mechanism. In
that case the position_endstop should always equal the probe's
z_offset - so no need to have the user specify it.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 11:12:30 -04:00
Kevin O'Connor
a9a0bb87fa
probe: Verify the toolhead moves at least some distance on a probe
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 11:12:30 -04:00
Kevin O'Connor
31ec098577
config: The delta_calibrate bed radius uses nozzle coordinates
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 11:12:30 -04:00
Kevin O'Connor
43f2eac239
z_tilt: Wrap lines to 80 columns
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 11:12:30 -04:00
Kevin O'Connor
c3550158bb
z_tilt: Take into account probe xy offset when calculating z_adjust
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 11:12:30 -04:00
Kevin O'Connor
19d18c2bc1
bed_tilt: Take into account probe xy offset when calculating z_adjust
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net >
2018-10-01 11:12:30 -04:00