Rewrite chipid.c so that it contains just the USB and canbus id
manipulation code. Move the low-level chipid reading to bootrom.c.
Also, introduce a new bootrom_reboot_usb_bootloader() function in
bootrom.c so that the main.c code does not need to know the specifics
of rebooting into the bootrom.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
The rp2350 chip requires a higher internal frequency, so choose a
value that works for both rp2040 and rp2350.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Some versions of the system memcpy() may make unaligned memory
accesses, which can result in a bus fault when accessing the usb dpram
device memory.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Recent versions of the rp2040 sdk no longer contain the elf2uf2 tool.
So, move that code to a new dedicated directory. This is in
preparation for updating the rp2040 sdk version.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Return an empty list instead of an emptry string if no command found.
This improves compatibility within console.py on python3.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit adds automatic calculation support for compensating X and Y axis twist in the axis_twist_compensation module.
Signed-off-by: Jorge Apaza Merma <yochiwarez@gmail.com>
This commit implements support for the Y-axis in the axis_twist_compensation
module. This update enables the module to handle corrections for printers
with a twisted Y rail.
Signed-off-by: Jorge Apaza Merma <yochiwarez@gmail.com>
Commit 9d4ab862 broke support for '#' style comments on the same line
as [include] config directives. Fix by adding back in the check for
comments in _parse_config().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Corrected issue where accelerometer names were incorrectly prefixed
with "adxl345", preventing the selection of other chip types when running TEST_RESONANCES.
Implemented support for selecting the `accel_per_hz` parameter when running TEST_RESONANCES.
docs: Update TEST_RESONANCES + SHAPER_CALIBRATE with missing parameters and bracket corrections
Signed-off-by: Maksim Bolgov <maksim8024@gmail.com>
Don't look for includes in autosave data nor from the internal menu,
display, and temperature configs.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Separate out the low-level parsing code to a new ConfigFileReader()
class.
Separate out the auto-save handling code to a new ConfigAutoSave()
class.
This simplifies the main PrinterConfig() class.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>