Platform/ECM3532/DSP/hw/csp/ecm3532/src/eta_csp_dsp.c
/***************************************************************************/
/**
 *
 *  EtaCspDspGoToSleep - Places the DSP Core in sleep, and keeps it there until
 *                       ready.
 *
 ******************************************************************************/
Places the DSP Core in sleep, and keeps it there until
ready.
Places the DSP Core in sleep and keeps it there until ready .
void
EtaCspDspGoToSleep(void)
{
    REG_DSPCTRL_DSP_CLK_CTRL_CLR = BM_DSPCTRL_DSP_CLK_CTRL_KEEP_CLK_RUNNING;
    while((REG_DSPCTRL_DSP_CLK_CTRL &
           BM_DSPCTRL_DSP_CLK_CTRL_KEEP_CLK_RUNNING) == 0)
    {
    }
}
void EtaCspDspGoToSleep ( void ) { REG_DSPCTRL_DSP_CLK_CTRL_CLR = BM_DSPCTRL_DSP_CLK_CTRL_KEEP_CLK_RUNNING ; while ( ( REG_DSPCTRL_DSP_CLK_CTRL & BM_DSPCTRL_DSP_CLK_CTRL_KEEP_CLK_RUNNING ) == 0 ) { } }
EtaCspDspGoToSleep - Places the DSP Core in sleep, and keeps it there until
                       ready.
EtaCspDspGoToSleep - Places the DSP Core in sleep and keeps it there until ready .
// This clears the Keep Clock Running bit // When the DMA wakes the DSP Complex, the DSP Core can execute a few // cycles. // This while loop ensures the DSP Core doesn't wonder through the code // until someone intended it to by enabling the clock.