You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return v ? (TEST32(v, 31)) ? c : CLZ32(v << 1, c + 1) : 32;
37
37
}
38
-
#defineFTM_NEVERuint32_t(UINT16_MAX) // Reserved number to indicate "no ticks in this frame" (FRAME_TICKS_FP+1 would work too)
39
38
constexpruint32_tFRAME_TICKS = STEPPER_TIMER_RATE / FTM_FS; // Timer ticks per frame
40
39
constexpruint32_tFTM_Q_INT = 32u - CLZ32(FRAME_TICKS + 1U); // Bits to represent the integer part of the max value (duration of a frame, +1 one for FTM_NEVER).
0 commit comments