X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_tmr.h;h=c2bf22f37b6e04596f2dc5395293ffa6e236c526;hb=2d7cc55af9bcc15e02b4d390b66f7bed3e82e9dd;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..c2bf22f37 100644 --- a/src/du_app/du_tmr.h +++ b/src/du_app/du_tmr.h @@ -16,35 +16,12 @@ ################################################################################ *******************************************************************************/ -#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); +void duStopTmr(PTR cb, uint8_t tmrType); /********************************************************************** End of file **********************************************************************/