aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* config: Add BigTreeTech EBB V1.2 / EBB SB V1.0 / E3EZ / M5P / M8P V1.1 / ↵bigtreetech2023-02-0313-25/+1215
| | | | | | | Octopus Max EZ Signed-off-by: Alan.Ma from BigTreeTech tech@biqu3d.com Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: add PB12/PB13 FDCAN2 support STM32G0B1bigtreetech2023-02-032-3/+8
| | | | | Signed-off-by: Alan.Ma from BigTreeTech tech@biqu3d.com Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add config for Kingroon KP3S (#6021)JamesH19782023-02-032-0/+109
| | | | | A config that describes a Kingroon KP3S with the STM32F103 Robin Mini/Nano clone Signed-off-by: James Hartley <james@hartleyns.com>
* config: Update printer-creality-ender2pro-2021.cfg (#6023)Artem2023-02-021-1/+1
| | | | | Update pins for serial Signed-off-by: Artem Kochegizov <metra52@ya.ru>
* docs: note change to bed_mesh profile behaviorEric Callahan2023-02-012-0/+25
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* bed_mesh: do not load a profile on startupEric Callahan2023-02-011-5/+0
| | | | | | | Some users may not desire this behavior and others may wish to initialize to a profile not named default. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* config: Example config file for Lulzbot Mini 2 (#5976)Spookee2023-01-302-0/+158
| | | | | | Config file contains pin mappings to suit Lulzbot Mini 2 using Lulzbot SingleExtruder(0.5mm) and Lulzbot flexible magnetic bed. Mini 2 uses Einsy Retro mainboard. Signed-off-by: Trent Sheather <trent.sheather@gmail.com>
* config: Added printer config for SUNLU T3 (#6004)dahliamoth2023-01-302-0/+200
| | | Signed-off-by: Zachary Welvaert <zwelvaert@gmail.com>
* config: Duet3-6HC & -6XD Configs (#6006)Evan Cowden2023-01-253-0/+265
| | | Signed-off-by: Evan Cowden <evan38109@gmail.com>
* replicape: Only call note_pwm_enable() in main threadKevin O'Connor2023-01-171-11/+17
| | | | | | | | The pca9685_pwm set_pwm() code can be called from a background thread (when the pin controls a heater). Propagate updates to the main thread for enable tracking. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Fix CAN2 handling in can.cKevin O'Connor2023-01-171-13/+26
| | | | | | | Using the CAN2 interface still requires that CAN1 be enabled, and the filtering hardware is always on the CAN1 hardware block. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Update update_mks_robin.py for Python3 (#5985)3D Print PT2023-01-171-1/+1
| | | Signed-off-by: Márcio Pereira <3dprintpt@gmail.com>
* stm32: Increase sample time in stm32h7_adc.cKevin O'Connor2023-01-171-7/+10
| | | | | | | | The existing sample times are not long enough to reliably sample the internal temperature sensor. Longer sample times should also improve results with temperature sensors that have a higher inductance. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Don't set boost nor linear calibration on stm32h723 adc3Kevin O'Connor2023-01-171-14/+14
| | | | | | Only adc1 and adc2 have these CR register bits on stm32h723. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Reduce read-modify-write of CR in stm32h7_adc.c initKevin O'Connor2023-01-171-21/+12
| | | | | | | | | | Prefer explicitly setting the CR hardware register to defined values during initialization. Also, prefer "#if CONFIG_MACH_STM32H7" over bit definitions to make it clear that the code applies only on stm32h7. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Don't use read-modify-write on ISR register in stm32h7_adc.cKevin O'Connor2023-01-171-3/+2
| | | | | | Bits are cleared in the ISR register by writing 1, not by masking. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: ADC timing rework and fixes in stm32h7_adc.cKevin O'Connor2023-01-171-34/+23
| | | | | | | | | | | | The stm32l412 doesn't have a PLLSAI1 clock and therefore the CKMODE should not be set to zero. The stm32h7 chips run the adc at 25mhz, so BOOST should be set to 0b10. Improve timing comments. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Move clock line mapping from stm32h7_adc.c to lookup_clock_line()Kevin O'Connor2023-01-174-17/+14
| | | | | | | Use the common lookup_clock_line() code to lookup the adc clock lines. This also enables resets on the adc1/adc2 hardware block. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Simplify setting of adc_common fields in stm32h7_adc.cKevin O'Connor2023-01-171-12/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Use a consistent bank size of 20 across all chips in stm32h7_adc.cKevin O'Connor2023-01-171-3/+3
| | | | | | | Add a pad entry to adc_pins[] on stm32l4 so that it matches the other chips. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Simplify setting of 12bit mode on stm32h7 in stm32h7_adc.cKevin O'Connor2023-01-171-14/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: No need to use hardware oversampling in stm32h7_adc.cKevin O'Connor2023-01-171-25/+0
| | | | | | | | | Not all chips implement hardware oversampling. The software already implements oversampling, and additional hardware oversampling is unlikely to improve results. Remove the hardware oversampling to simplify the code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Simplify CFGR register setup in stm32h7_adc.cKevin O'Connor2023-01-171-10/+2
| | | | | | | | On all chips, the JQDIS bit is set and the CONT, RES, ALIGN bits are clear after a reset. There is no need to program the OVRMOD bit. Use the same logic across chips to help unify the adc implementation. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: No need for LDORDY check in stm32h7_adc.cKevin O'Connor2023-01-171-17/+4
| | | | | | | | Not all chips have the LDORDY flag, while all chips will stabilize in 10us. There is no need for two different implementations as it is safe to wait 20us on all chips. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: add systemd klipper-mcu.service exampleStefan Dej2023-01-171-0/+21
| | | | Signed-off-by: Stefan Dej <meteyou@gmail.com>
* docs: update RPi_microcontroller.md to systemdStefan Dej2023-01-171-2/+2
| | | | Signed-off-by: Stefan Dej <meteyou@gmail.com>
* scripts: remove initd klipper-mcu-start.shStefan Dej2023-01-171-78/+0
| | | | Signed-off-by: Stefan Dej <meteyou@gmail.com>
* linux: add -I attribute for user defined socket pathsStefan Dej2023-01-171-3/+7
| | | | Signed-off-by: Stefan Dej <meteyou@gmail.com>
* z_tilt: Improve python3 compatibilityKevin O'Connor2023-01-171-1/+1
| | | | | | | | | Sort using comparison on only first item in list to avoid greater/less than comparison of stepper objects (which causes an error on Python3). Reported by discourse user salbang. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Improve SET_PIN documentation in G-Codes.mdKevin O'Connor2023-01-131-3/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Flush in chunks from flush_step_generation()Kevin O'Connor2023-01-081-2/+8
| | | | | | | | | If note_kinematic_activity() has a time far in the future it could result in a single flush attempt of that time range. Be sure to break up that range into small chunks using the normal _update_move_time() mechanism. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Rename last_kin_flush_time to force_flush_timeKevin O'Connor2023-01-081-8/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Fix note_kinematic_activity()Kevin O'Connor2023-01-081-1/+1
| | | | | | | | It was possible a note_kinematic_activity() call could increase last_kin_move_time, but _process_moves() could reset it. Fix by making sure _process_moves() only ever increases last_kin_move_time. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chelper: Minor declaration movement in __init__.pyKevin O'Connor2023-01-071-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* trapq: Minor code movement in trapq.cKevin O'Connor2023-01-072-53/+53
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* console: No need to import pins moduleKevin O'Connor2023-01-071-7/+2
| | | | | | The pins module is no longer used in console.py. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialhdl: Add a get_serialqueue() methodKevin O'Connor2023-01-062-2/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialqueue: Add comment to do_write()Kevin O'Connor2023-01-051-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Note v0.11.0 release in Config_Changes.mdKevin O'Connor2023-01-041-0/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spi_flash: Add SKR2 F429 chip variant to spi_flash (#5956)JamesH19782023-01-042-1/+6
| | | | | Later addition of a F429 variant SKR2 was released. Changed btt-skr2 to btt-skr-2-f407 and added a new alias for btt-skr-2-f429 Signed-off-by: James Hartley <james@hartleyns.com>
* stm32: Reindent ifdefs in stm32f0_i2c.cKevin O'Connor2023-01-031-56/+55
| | | | | | A whitespace and comment change only - no functional changes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Expand stm32g0 family (#5838)Alex Voinea2023-01-034-24/+61
| | | | | Add stm32g07x family support. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* config: Added precise location of [bed_screws] for Ender-3-s1 (#5944)Stas Yakobov2023-01-021-0/+6
| | | Signed-off-by: Stas Yakobov <stas@3os.org>
* palette2: Fix errors with bad handling of NoneType in a few locationsClifford Roche2022-12-311-5/+6
| | | | | | Issue specific to Python 3, NoneType is being used to compare heartbeat time (actually caused by invalid condition operator), and by returning NoneType in timer functions. Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
* board_defs: Add Fysetc Cheetah V2 to spi_flash (#5952)JamesH19782022-12-311-0/+7
| | | | | As discussed with user HiitsameAsh on discord, he has confirmed this addition will flash a Fysetc Cheetah V2 Signed-off-by: James Hartley <james@hartleyns.com>
* docs: Fix typo in mpu9250 documentationCODeRUS2022-12-301-1/+1
| | | | | | Adding MPU-6515, replacing MPU-9255 duplicate Signed-off-by: Andrei Kozhevnikov <coderusinbox@gmail.com>
* delta: Better delta build volume constraint checkjanherich2022-12-301-1/+7
| | | | | | | | | | Existing code uses very restrictive build volume constraint checking with just narrow cone on top of fully cylinder for delta printers. Code here implements more permissive and still safe build volume constraint checks. Signed-off-by: Jan Herich <jan.herich@gmail.com>
* stm32: Check for CONFIG_HAVE_BOOTLOADER_REQUEST in dfu_reboot.cKevin O'Connor2022-12-301-2/+2
| | | | | | | Support disabling dfu_reboot if HAVE_BOOTLOADER_REQUEST is disabled in the Kconfig rules. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avr: No need to define bootloader_request()Kevin O'Connor2022-12-301-6/+0
| | | | | | | Since avr does not define HAVE_BOOTLOADER_REQUEST it is not necessary to define the function. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* canserial: Only call bootloader_request() if CONFIG_HAVE_BOOTLOADER_REQUESTKevin O'Connor2022-12-301-1/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>