X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_tmr.h;h=54aced7119bc369002d8c1556a92e9d0a11d1fbe;hb=349ce6153f82d03f3ec90e2450788ea15abe05ed;hp=d7529b77c674d9002d7d8df2321e63f060f69ea1;hpb=cdf2274ce07f8a5e066f1a49e92db156f1a92c66;p=o-du%2Fl2.git diff --git a/src/du_app/du_tmr.h b/src/du_app/du_tmr.h index d7529b77c..54aced711 100644 --- a/src/du_app/du_tmr.h +++ b/src/du_app/du_tmr.h @@ -19,31 +19,9 @@ #define DU_TIMER_RESOLUTION 1 #define DU_TQ_SIZE 2 -/** - * @def DU_TMR_CALCUATE_WAIT - * - * This macro calculates and assigns wait time based on the value of the - * timer and the timer resolution. Timer value of 0 signifies that the - * timer is not configured - * - * @param[out] _wait Time for which to arm the timer changed to proper - * value according to the resolution - * @param[in] _tmrVal Value of the timer - * @param[in] _timerRes Resolution of the timer - * -*/ -#define DU_TMR_CALCUATE_WAIT(_wait, _tmrVal, _timerRes) \ -{ \ - (_wait) = ((_tmrVal) * SS_TICKS_SEC)/((_timerRes) * 1000); \ - if((0 != (_tmrVal)) && (0 == (_wait))) \ - { \ - (_wait) = 1; \ - } \ -} - short int duActvTmr(Ent ent,Inst inst); bool duChkTmr(PTR cb, int16_t tmrEvnt); -void duStartTmr(PTR cb, int16_t tmrEvnt, uint8_t timerValue); +void duStartTmr(PTR cb, int16_t tmrEvnt, uint32_t timerValue); /********************************************************************** End of file