prusa3d / Prusa-Firmware

Firmware for Original Prusa i3 3D printer by PrusaResearch
GNU General Public License v3.0
2.02k stars 1.05k forks source link

PFW-1523 Add a new timer for Prusa Link #4460

Closed gudnimg closed 1 year ago

gudnimg commented 1 year ago

The idea is to have the host ping the printer periodically with a M79 to enable certain features/UI. Using the usb_timer is not a good solution for this as it depends on seeing a 'G' character

The LCD code, or whatever code is implementing the new functionality will need to include host.h and check whether M79_timer_get_status() returns 0 (timer not running) or 1 (timer is running).

I created a new file for the code host.cpp which we can use to expand host related functionality and not clutter Marlin_main.cpp further.

Some ideas how this could be used (nothing set in stone):


TODO

github-actions[bot] commented 1 year ago

All values in bytes. Δ Delta to base

Target ΔFlash ΔSRAM Used Flash Used SRAM Free Flash Free SRAM
MK3S_MULTILANG 104 5 246014 5638 7938 2554
MK3_MULTILANG 106 5 245300 5647 8652 2545