Commit Graph

3598 Commits

Author SHA1 Message Date
Kevin O'Connor c29585f7f3 temperature_host: Rename "path" config to "sensor_path"
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-20 09:23:13 -05:00
Kevin O'Connor 227d9bdbcf temperature_host: Improve backwards compatibility check
Don't register two names for the same instance of the sensor.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-19 18:51:42 -05:00
Evgenii 3d35c003db temperature_host: Rename rpi_temperature and add support for custom paths
Signed-off-by: Evgenii Shavrin <shavrin0591@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-19 18:44:28 -05:00
Kevin O'Connor 267a2f3a38 stm32: Optimize stm32f401 peripheral clock
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-19 12:19:32 -05:00
Arkadiusz Raj 90ffa0685f stm32: stm32f401 pll_freq updates
Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
2021-02-19 12:15:44 -05:00
Arkadiusz Raj 28e41806f5 stm32: 25MHz clock fixes
Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
2021-02-19 12:15:31 -05:00
Arkadiusz Raj a6e28f7d6a stm32: Fix missing STM32F429 clock initialization
Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
2021-02-19 12:14:55 -05:00
Arkadiusz Raj 7f63efdcea stm32: F429 shall use 168Mhz to allow easy USB clock configuration
Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
2021-02-19 12:14:19 -05:00
Kevin O'Connor 093db5172e test: Add printer-robo3d-r2-2017.cfg to printers.test
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-19 11:15:49 -05:00
Justin Schuh 3790118890
config: Add printer-robo3d-r2-v2.1.5.cfg printer config (#3931)
Adds Robo3D R2 printer config (successfully tested).

Signed-off-by: Justin Schuh <code@justinschuh.com>
2021-02-19 10:47:31 -05:00
Christian S bc2f6faa17
probe: Add last_z_result to get the latest z result in an Macro (#3835)
Signed-off-by: Christian Schnellrieder <schnello.android@gmail.com>
2021-02-18 22:03:32 -05:00
Arjan Mels b2cbb9aa96
idle_timeout: Add help to SET_IDLE_TIMEOUT (#3945)
Signed-off-by: Arjan Mels <github@mels.email>
2021-02-18 20:32:46 -05:00
Kevin O'Connor 83cc6039c5 docs: Fix typo in Sensorless_Homing.md
Reported by @stefanfoulis.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-18 20:14:18 -05:00
Arek e6d1910ef9
stm32: Add STM32F429 variant (#3926)
* Add F429 variant; add CAN on PD0,PD1; add 25Mhx clock; move CAN1_RX from PI8 to correct position (PI9)

* Add test for STM32F429

Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
2021-02-18 20:12:32 -05:00
Ben 03b3cff823
config: Correct Ender 6 BLtouch params (#3888)
Fixed bltouch offset and bed_mesh mesh_min/max to account for offset.

The former was defined in the wrong coordinate, as the origin starts from the SW. The latter did not include the offset and caused an error. Technically the offset allows mesh_max up to (239.3, 253).

Signed-off-by: Ben Kaye <benkaye001@gmail.com>
2021-02-18 19:28:43 -05:00
Kevin O'Connor ba940da9b5 stepper: Don't cache ffi_lib object in the stepper
It's easier to just call chelper.get_ffi() if the ffi_lib object is
needed.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-18 15:39:55 -05:00
Kevin O'Connor 81da5379d4 buildcommands: Extend number of available mcu messages from 96 to 128
Some internal code treats the message ids as encoded "variable length
quantities", while other internal code assumes the message id is
always one byte long.  Continue using this scheme, but convert the VLQ
users to use the name "msgtag" while the 1-byte users use "msgid".
Increase the number of available msgids from 96 to 127 - the higher
values get encoded as negative "msgtags".

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-18 15:21:32 -05:00
Kevin O'Connor efa497dfd8 msgproto: Avoid peeking into the msgproto class members
Update callers to only use exported methods of the msgproto objects.
This makes it easier to make internal changes to the code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-18 14:33:44 -05:00
Kevin O'Connor 319c36df52 config: Update generic-bigtreetech-gtr.cfg
Add generic-bigtreetech-gtr.cfg to printers.test.  Add definitions for
thermocouple and temperature_mcu.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-12 17:48:49 -05:00
Kevin O'Connor fc783f9b83 stm32: Add support for spi bus on stm32f407 pins PI2,PI3,PI1
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-12 17:32:54 -05:00
Kevin O'Connor 6698b249ce stm32: Minor indention change to spi.c
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-12 17:32:49 -05:00
Kevin O'Connor 5db0b3d474 docs: Update PRU command dispatch benchmark
The PRU command dispatch benchmark was primarily limited by the speed
of the console.py tool on the slow beaglebone processor.  Add a note
on how to account for that and restate the PRU benchmark.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-12 14:08:33 -05:00
Kevin O'Connor c5968a0830 serialqueue: Batch multiple message blocks in a single write()
Some communication protocols are more efficient if fewer write() calls
are invoked.  If multiple message blocks can be sent at the same time
then batch them into a single write() call.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-12 13:59:57 -05:00
Kevin O'Connor 730ef9d347 serialqueue: Improve timing of sleep durations
If any callback is invoked from the pollreactor then obtain a new
eventtime before calculating a sleep duration.  This improves the
timing of events.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-12 13:57:51 -05:00
Kevin O'Connor d7bacae29d pru: Request the host not send more than 496 bytes to the pru
Writes over 496 bytes don't fit in a single "rpmsg" page.  Request the
host limit the number of bytes outstanding to avoid getting "write:
(22)Invalid argument" errors.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-12 11:23:29 -05:00
Kevin O'Connor dfd052511f config: Add generic-mks-rumba32-v1.0.cfg to tests
Also remove copy of lcds from sample-lcd.cfg

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-11 18:23:42 -05:00
popshansen f0d6fa2b32
config: Add generic config for the MKS Rumba32
Contains sample of TMC2209 configuration and display mappings

Signed-off-by: Lars R. Hansen <popshansen@hotmail.com>
2021-02-11 18:21:26 -05:00
Jordan Woyak 4b32067565
docs: Fix typo in Sensorless_Homing.md (#3916)
Signed-off-by: Jordan Woyak <jordan.woyak@gmail.com>
2021-02-11 14:52:46 -05:00
Kevin O'Connor 03b62ca04f docs: Add SDCard_Updates.md to Overview.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-10 13:00:57 -05:00
Kevin O'Connor 8666a724db canbus: Call can_notify_rx() at startup so low-level code does not need to
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-09 18:51:03 -05:00
Kevin O'Connor 5c4cf54557 canbus: Rename canbus_set_dataport() to canbus_set_filter() and simplify
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-09 18:27:29 -05:00
Kevin O'Connor 5769a9072b docs: Minor wording change to Pressure_Advance.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-08 11:46:40 -05:00
Kevin O'Connor ff264bf241 docs: Reformat Pressure_Advance.md to improve Jekyll rendering
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-08 11:41:15 -05:00
Kevin O'Connor bb564ff58d docs: Minor update to Pressure_Advance.md
Update e-steps link to new Rotation_Distance.md

Make it clear how to update the pressure_advance setting in the config
file.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-08 11:37:43 -05:00
Kevin O'Connor 1049282eec chelper: Fix check for failed code build
Commit 73b78af6 inadvertently removed the check for a successful gcc
compilation.  Add the check back in.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-07 20:48:21 -05:00
Arksine a7b50b6002 docs: add documentation for SD Card firmware updates
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2021-02-05 19:37:56 -05:00
Arksine d79e7ab31b scripts: add flash-sdcard.sh helper script
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2021-02-05 19:37:56 -05:00
Arksine 44c1caf2b9 spi_flash: support for firmware upgrades via SD Card
This module connects directly to MCU's previously flashed with Klipper, uploads Klipper firmware to an attached SD Card, and performs a device reset to intiate the bootloader's update process.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2021-02-05 19:37:56 -05:00
Arksine 7699834a61 lib: add FatFS notes to README
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2021-02-05 19:37:56 -05:00
Arksine 4f34c6a4e8 lib: add FatFS library files
FatFS is an open source filesystem library supporting FAT12, FAT16, FAT32, and exFAT.  The source is available at http://elm-chan.org/fsw/ff/00index_e.html

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2021-02-05 19:37:56 -05:00
Kevin O'Connor 6bd78ecee4 docs: Update Contact.md to clarify use of mailing list
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-05 19:01:17 -05:00
Elias Bakken 8b443acae8
stm32: Adding support for STM32F031x6 (#3871)
Add support for alt usart 1

Do not select all functions on 16 K mcu

Signed-off-by: Elias Bakken <elias@iagent.no>
2021-02-03 12:23:17 -05:00
Kevin O'Connor 3162f4746f test: Add printer-creality-ender3max-2021.cfg to printers.test
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 18:16:40 -05:00
Chad Schwieterman 84f8f93e8e
config: Add printer config for the Ender 3 Max by Creality3D (#3879)
Added Ender 3 Max config. Based off the configs from ender6, ender3-v2, and ender3. Also contains optional BLTouch parameters.

Signed-off-by: Chad Schwieterman <chad.devops@gmail.com>
2021-02-02 18:14:11 -05:00
Kevin O'Connor d9f6abdb56 canbus: Move high-level CAN code to new src/generic/canbus.c
Separate out the high-level command processing logic from the
low-level transmission code.  Place the high-level code in
src/generic/canbus.c .

This also removes the CAN dependency on serial_irq.c .

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 15:24:11 -05:00
Kevin O'Connor bee544eaca stm32: Simplify can.c irq handler
Don't perform any heavy tasks in the CAN interrupt handler - just
notify a background task to handle anything pending.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 15:17:14 -05:00
Kevin O'Connor 95adff7431 stm32: Use CAN_TSR_CODE to select next tx fifo in can.c
The spec states that the TX fifo is transmitted in chronological order
if the TXFP bit is set, but it's unclear if the software needs to fill
the tx fifo in a particular order to obtain that result.  Use the TSR
CODE bit field to fill the TX fifo in the order that the hardware
reports as next.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 15:17:14 -05:00
Kevin O'Connor 95eb00740b stm32: Avoid read+write modify instructions in can.c
Prefer explicitly setting the hardware registers and avoid using C
read and modify instructions where possible.  This avoids race
conditions where an interrupt or hardware change could cause subtle
corruption of the register state.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 15:17:14 -05:00
Kevin O'Connor c0371c94c8 stm32: Introduce new can_set_filter() helper function in can.c
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 15:17:14 -05:00
Kevin O'Connor 901ccfcb9d stm32: Update can.c to use more consistent indentation
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 15:17:14 -05:00