/************************************************************************* * FUNCTION * DRVPDN_Disable * * DESCRIPTION * * CALLS * * PARAMETERS * MTK_SLEEP_ENABLE is to enable sleep mode * DRV_SLEEPONLY is only to enable drver sleep mode * * RETURNS * * GLOBALS AFFECTED * * HISTORY * NAME DATE REMARKS * Jessen Hu 04-03-2002 Create initial version 1.0 * Rex Luo 04-03-2002 Add comements and function description * *************************************************************************/ void DRVPDN_Disable(kal_uint32 addr,kal_uint16 code,kal_uint8 pdn_id) { PDN_INPUT pdn_data; pdn_data.addr = addr; pdn_data.code = code; lpwr_main_disable(&LPWR_DEV[pdn_id],&pdn_data); }
/************************************************************************* * FUNCTION * DRVPDN_Disable * * DESCRIPTION * Power up device. * * PARAMETERS * pdn_id - PDN ID for the target device * * RETURNS * none * *************************************************************************/ void DRVPDN_Disable(PDN_DEVICE pdn_id) { PDN_INPUT pdn_data; pdn_data.addr = pdn_clr_addr[pdn_id]; pdn_data.code = pdn_bits[pdn_id]; pdn_data.ctrl = pdn_ctrl_addr[pdn_id]; pdn_data.options = pdn_options[pdn_id]; lpwr_main_disable(&LPWR_DEV[pdn_id], &pdn_data); }