Added comment

This commit is contained in:
2026-08-02 11:23:10 +02:00
parent 6e48604f22
commit 7ff03e1308

View File

@@ -15,7 +15,7 @@ ISR_DIRECT_DECLARE(my_pwm_dither_isr)
// 2. Deine Akku-Rechnung
akku += target_val;
TIMx->CCR1 = (akku >> 6);
akku &= 0x3F;
akku &= 0x3F; // Behält die letzten 6 Bits: der Rest der Bit-Shift-Division
// 3. Kein Reschedule nötig, da wir keine Zephyr-API in der ISR aufrufen
return 0;