aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* rp2040: Add barrier() around all memcpy() calls in usbserial.cKevin O'Connor2021-10-271-0/+5
| | | | | | | Make sure gcc doesn't reorder any of the memcpy() calls to the usb data ram. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rp2040: add barrier in usb_read_ep0_setupLasse Dalegaard2021-10-271-0/+1
| | | | | | | | | | | | | | Some versions of gcc, in some cases, decide that it is OK to move the read to `INTR` to right after clearing the `SETUP_REC` bit of `SIE_STATUS`, instead of after the `memcpy`. The rp2040 datasheet doesn't appear to say anything about how quickly the `SETUP_REC` bit will be cleared in `INTR`, but regardless the compiler should not be re-ordering the read like this. Here we force the correct ordering using a memory barrier. Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
* test: Add an input_shaper module test caseKevin O'Connor2021-10-262-0/+89
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* input_shaper: Fix python3 string encodingKevin O'Connor2021-10-261-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* input_shaper: Restore shaper_type config optionKevin O'Connor2021-10-261-1/+2
| | | | | | | The shaper_type config option got removed in commit d5a7a7f0 - restore that option. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* input_shaper: Factored out AxisInputShaper classDmitry Butyugin2021-10-263-113/+129
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* input_shaper: Define input shapers in a single place in Python codeDmitry Butyugin2021-10-267-385/+209
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* config: Minor updates to printer-tronxy-xy-2-Pro-2020.cfgKevin O'Connor2021-10-262-2/+3
| | | | | | | Change extruder microsteps to 32. Add to printers.test regression test case. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Tronxy XY-2 Pro default (#4631)gcastle20072021-10-261-0/+132
| | | | | | | Example default config for Tronxy XY-2 Pro. It is default config for printer Tronxy XY-2 Pro (mainboard Chitu V6). This config based on config for Tronxy X5SA with mainboard Chitu V6. Signed-off-by: Konstantin Bazhenin <kby@list.ru>
* config: Don't use deprecated features in sample-pwm-tool.cfgKevin O'Connor2021-10-241-4/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Remove deprecated features from printer-velleman-k8800-2017.cfgKevin O'Connor2021-10-241-7/+7
| | | | | | | Don't use deprecated default_parameter_x in printer-velleman-k8800-2017.cfg . Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Update test case to not use pin_mapKevin O'Connor2021-10-2416-316/+300
| | | | | | Remove all users of the pin_map setting. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Update test cases to use rotation_distanceKevin O'Connor2021-10-2415-72/+132
| | | | | | Remove all users of step_distance from test configs. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* command: Make command_add_frame() and command_encodef() staticKevin O'Connor2021-10-212-5/+2
| | | | | | | The only users of these two functions are in command.c so they can be declared local to that code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Perform message encoding on pru0 to free space on pru1Kevin O'Connor2021-10-213-37/+66
| | | | | | | | Copy the parameters of calls to console_sendf() on pru1 to pru0 and then call that function on pru0. Although copying the parameters is a "hack", the code size reduction is notable. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motan: Minor change to corexy analyzer labelKevin O'Connor2021-10-161-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motan: Add an analyzer to integrate accelerometer inputKevin O'Connor2021-10-161-1/+60
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motan: Add support for graphing stepper motor phase and microstep positionKevin O'Connor2021-10-161-0/+98
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motan: Show data filename in graph titleKevin O'Connor2021-10-161-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_sensor: round reported temps to 2 decimal placesEric Callahan2021-10-151-3/+3
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* temperature_host: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* lm75: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* htu21d: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* heaters: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* ds18b20: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* bme280: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* docs: Update mkdocs-requirements.txtKevin O'Connor2021-10-151-1/+1
| | | | | | | | Update mkdocs to v1.2.3 to avoid a github "dependabot" warning for CVE-2021-40978. (The CVE doesn't impact the klipper3d.org site, but no harm in updating.) Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Update generic-printrboard.cfg to mention different Y endstop pin on ↵creyc2021-10-151-0/+2
| | | | | RevF hardware (#4732) Signed-off-by: Corey Schiller <gitcor@venemo.com>
* docs: Update BLTouch.md to prevent position_endstop error (#4731)Ilia Rebane2021-10-151-2/+2
| | | | | | Klipper with Fluid complains about `position_endstop` line if `endstop_pin: probe:z_virtual_endstop` used Signed-off-by: Ilia Rebane <Agilatosay@gmail.com>
* config: Fix typo in Octopus board (#4801)Arne Schwarck2021-10-131-1/+1
| | | | | As suggested in https://github.com/Klipper3d/klipper/pull/4792 Signed-off-by: Arne Schwarck <arneschwarck@gmail.com>
* adxl345: Renamed decode_samples and fixed/added checks on empty dataDmitry Butyugin2021-10-133-8/+37
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* config: Fix diag pins on Octopus board (#4792)Arne Schwarck2021-10-131-4/+4
| | | | | with reference from https://github.com/bigtreetech/BIGTREETECH-OCTOPUS-V1.0/blob/master/Hardware/BIGTREETECH%20Octopus.pdf Signed-off-by: Arne Schwarck <arneschwarck@gmail.com>
* stm32: Add a MACH_STM32F0x2 alias for F042 and F072 chipsKevin O'Connor2021-10-132-7/+11
| | | | | | | | The F042 and F072 chips are in the same series and the code should be nearly identical for these chips. Implement the alias and enable USB for the F072 chips. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Rework HAVE_GPIO_HARD_PWM in KconfigKevin O'Connor2021-10-131-7/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Change stm32f0 OSPEEDR to "medium" speedKevin O'Connor2021-10-121-1/+1
| | | | | | | | | The previous OSPEEDR value of 0x2 was copied from the stm32f4.c code, but the stm32f0 interprets that value the same as 0x0 - which is "low" speed. Change the OSPEEDR value to "medium" speed so that it matches the configuration of stm32f1 chips. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add comments to configuration of OSPEEDR gpio speedKevin O'Connor2021-10-124-8/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Rework #if pin definition clauses in hard_pwm.cKevin O'Connor2021-10-111-54/+50
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Adding Hardware PWM support for the STM32F4 processors (#4693)jrhelbert2021-10-112-1/+67
| | | | | This change has been expanded to include all STM32F4 processors, since they share a common TIMER mapping with some processors just not having all of the timers and pins. Signed-off-by: Jerome Helbert <jerome@helbert.net>
* config: Anycubic Vyper (#4740)Manuel Fichtner2021-10-113-1/+145
| | | | | | | | | | | This commit contains a configuration for the Anycubic Vyper printer from 2021. It uses a clone of the STM32F103 chip named GD32F103. There are 2 Mainboard versions out there v0.0.5 and v0.0.6, this config has been tested with the v0.0.6 only. It should probably work for v0.0.5 as well since there are no different changes in the Anycubic Marlin firmware. The LCD is not supported yet (might work, but didn't try yet). Signed-off-by: Marc Neuhaus <marc@neuhaus.nrw> Signed-off-by: Manuel Fichtner <manuel.fichtner@me.com>
* tmc: add current values to get_status() (#4696)Philipp Temminghoff2021-10-112-1/+6
| | | Signed-off-by: Philipp Temminghoff <philipptemminghoff@gmail.com>
* delta: Don't limit XY+Z moves to max_z_velocityKevin O'Connor2021-10-111-5/+3
| | | | | | | | | Scale the max_z_velocity limit by the amount of movement in the Z. This should improve bed_mesh and vase mode prints on delta printers. Reported by @hywelmartin and @dalegaard. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* button: Support half-stepping encodersRufo Sanchez2021-10-113-35/+96
| | | | | | | | | | | | | Adds support for half-stepping encoders (encoders that only emit two steps per detent, instead of four). Incorporates the feedback from @susisstrolch's PR: https://github.com/KevinOConnor/klipper/pull/4202 , which was itself built upon a previous PR from @nickbrennan01: https://github.com/KevinOConnor/klipper/pull/730 Uses the table from the Rotary Arduino library linked in buttons.py: https://github.com/brianlow/Rotary/blob/6b784cca67c5f1ce5e11d757a540fc4c0311efca/Rotary.cpp#L21-L40 Signed-off-by: Rufo Sanchez <rufo@rufosanchez.com>
* test: Add a configfile test with unicode charactersKevin O'Connor2021-10-091-0/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Use Python2's ConfigParser when running on Python2Kevin O'Connor2021-10-093-6/+8
| | | | | | | | | The backport of Python3's configparser causes issues when there is unicode characters in the config file. To avoid introducing new errors, go back to using the Python2 version of ConfigParser when running on Python2. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* console: Fix Python2 compatibilityKevin O'Connor2021-10-081-1/+1
| | | | | | Make sure to import util prior to reactor. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Workaround for non-ascii comments on Python2Kevin O'Connor2021-10-081-1/+2
| | | | | | | | Explicitly specify the comment_prefixes as regular Python2 strings - otherwise the configparser wont ignore non-ascii characters in comments. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spi_flash: Improve Python3 compatibilityKevin O'Connor2021-10-071-5/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* ds18b20: Improve Python3 compatibilityKevin O'Connor2021-10-071-3/+4
| | | | | | Reported by @matthewlloyd. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsamd: Add i2c_read() implementationSimon Kühling2021-10-061-1/+43
| | | | Signed-off-by: Simon Kühling <mail@simonkuehling.de>
* adxl345: Expanded invalid adxl345 id messageDmitry Butyugin2021-10-061-2/+5
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>