Platform/ECM3532/M3/hw/power/ecm3532/src/eta_pwr_gov.c
/**
 *  pwr gov init
 *
 * intial pwr gov is sw module, which will
 *
 * @param timer_num     Timer number to initialize
 */
pwr gov init
intial pwr gov is sw module, which will

@param timer_num     Timer number to initialize
pwr gov init intial pwr gov is sw module which will @param timer_num Timer number to initialize
__attribute__((section(".initSection"))) int ecm35xx_pwrg_init(int hw_tmr)
{
    HalTmrChInit(hw_tmr);
    ecm3531_pg.ti = hw_tmr;
    ecm3531_pg.sPmTmr = HalTmrCreate(hw_tmr, HalTmrOneShot,
                                    ecm3531_pg.tmr_period,
                                    ecm3531_tcb, NULL);
#ifdef CONFIG_PM_MON
    init_mon_tasks();
#endif
    ecm3531_mini_freq = CONFIG_MIN_M3_FREQ;
    ecm3531_max_freq = CONFIG_MAX_M3_FREQ;
    ecm3531_pg.curr_freq = CONFIG_M3_INIT_FREQ;
#ifdef CONFIG_LPM_LED
    HalGpioOutInit(CONFIG_LPM_LED_GPIO, 1);
#endif
    return 0;
}
__attribute__ ( ( section ( " " ) ) ) int ecm35xx_pwrg_init ( int hw_tmr ) { HalTmrChInit ( hw_tmr ) ; ecm3531_pg . ti = hw_tmr ; ecm3531_pg . sPmTmr = HalTmrCreate ( hw_tmr , HalTmrOneShot , ecm3531_pg . tmr_period , ecm3531_tcb , NULL ) ; #ifdef CONFIG_PM_MON init_mon_tasks ( ) ; #endif ecm3531_mini_freq = CONFIG_MIN_M3_FREQ ; ecm3531_max_freq = CONFIG_MAX_M3_FREQ ; ecm3531_pg . curr_freq = CONFIG_M3_INIT_FREQ ; #ifdef CONFIG_LPM_LED HalGpioOutInit ( CONFIG_LPM_LED_GPIO , 1 ) ; #endif return 0 ; }
pwr gov init
 intial pwr gov is sw module, which will
pwr gov init intial pwr gov is sw module which will