Prusa-Firmware-MMU/tests/unit/modules
D.R.racer b2dd038814 LEDs: unify common app-logic behavior into functions
In the entire code base, we basically use 4 LED scenarios:
- all off
- active slot green on
- active slot green blinking
- active slot red blinking

Compacting this behaviour into 4 functions saves in total ~140B - which is huge.
It's not an entirely clean solution, LEDs should not know anything about globals::ActiveSlot, but the savings are more important.
Ideally, such an optimization could have been done by the compiler.
2025-12-01 10:48:28 +01:00
..
buttons Optimise Catch2 V3 includes + fix a few cases of missing includes 2022-10-22 15:41:44 +02:00
leds LEDs: unify common app-logic behavior into functions 2025-12-01 10:48:28 +01:00
motion motion: Also test for the simplest case of a single+unplanned move 2022-10-22 17:40:28 +02:00
protocol Optimise Catch2 V3 includes + fix a few cases of missing includes 2022-10-22 15:41:44 +02:00
pulse_gen cleanup: unit tests: Remove unused Catch namespace 2023-06-04 14:06:03 +00:00
speed_table cleanup: unit tests: Remove unused Catch namespace 2023-06-04 14:06:03 +00:00
stubs Prototype adaptive Idler homing sg_thrs 2023-03-14 17:58:11 +01:00
timebase cleanup: unit tests: Remove unused Catch namespace 2023-06-04 14:06:03 +00:00
user_input Generate exactly 1 userInput event when button pressed (and held) 2022-11-15 07:19:20 +01:00
CMakeLists.txt Fix unit tests 2022-06-20 17:03:40 +02:00