📄 _csl_pscmddsplocalreset.c
字号:
#include <csl_pscAux.h>
#pragma CODE_SECTION (CSL_pscDspLocalReset, ".text:csl_section:psc");
CSL_Status CSL_pscDspLocalReset(
CSL_PscHandle hPsc,
CSL_PscHwControlCmd lResetCmd
){
CSL_PscRegsOvly pscRegs = hPsc->regs;
if( lResetCmd == CSL_PSC_CMD_DSP_LRESET_DEASSERT ){
/* Set MDCTL39.LRST to 0x1 to de-assert DSP reset */
CSL_FINS(pscRegs->MDCTL[39], PSC_MDCTL_LRST, CSL_PSC_MDCTL_LRST_DEASSERT );
/*Lawrence: Not sure if we must delay for some time before accessing the DSP (e.g. interrupting the DSP). See LRSTDONE bit. */
}else{ /* if lResetCmd == CSL_PLLC_CMD_DSP_LRESET_ASSERT */ /*Law consider using elseif here */
/* Set MDCTL39.LRST to 0x0 to assert DSP reset */
CSL_FINS(pscRegs->MDCTL[39], PSC_MDCTL_LRST, CSL_PSC_MDCTL_LRST_ASSERT );
/*Lawrence: Not sure if we must delay for some time in between assert and de-assert. */
}
return (CSL_SOK);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -