Platform/ECM3532/M3/hw/power/ecm3532/src/eta_pwr_gov.c
/**
 *  start timer fun
 *
 *  start HAL timer for governor period load measurement
 *
 *  @param timer period
 *
 */
start timer fun
start HAL timer for governor period load measurement

@param timer period
start timer fun start HAL timer for governor period load measurement @param timer period
static void
ecm3531_start_gov_timer()
{
    unsigned int tout;
    HalTmrChangePeriod(ecm3531_pg.sPmTmr,
                        ecm3531_pg.tmr_period);
    tout = HalTmrRead(ecm3531_pg.ti);
    ecm3531_pg.start_cnt = tout;
    tout += ecm3531_pg.tmr_period;
    ecm3531_pg.stop_cnt = tout;
    while(ecm3531_pg.tmr_state == TIMER_RUN);
    HalTmrStart(ecm3531_pg.sPmTmr);
    ecm3531_pg.tmr_state = TIMER_RUN;
}
static void ecm3531_start_gov_timer ( ) { unsigned int tout ; HalTmrChangePeriod ( ecm3531_pg . sPmTmr , ecm3531_pg . tmr_period ) ; tout = HalTmrRead ( ecm3531_pg . ti ) ; ecm3531_pg . start_cnt = tout ; tout += ecm3531_pg . tmr_period ; ecm3531_pg . stop_cnt = tout ; while ( ecm3531_pg . tmr_state == TIMER_RUN ) ; HalTmrStart ( ecm3531_pg . sPmTmr ) ; ecm3531_pg . tmr_state = TIMER_RUN ; }
start timer fun
  start HAL timer for governor period load measurement
start timer fun start HAL timer for governor period load measurement
/* start time to curr time */ /* period of load measurement */