//**************************************************************************** // //! \brief This function restore the backed up data (after S3) //! //! \param none //! //! \return none // //**************************************************************************** void lp3p0_restore_soc_data(void) { /* Invoking the default CC3xxx service impl. */ cc_restore_soc_data(); // // Configure the pinmux settings for the peripherals exercised // PinMuxConfig(); cc_gpio_restore_context(); #ifdef DEBUG_GPIO cc_gpio_write(tGPIODbgHndl, GPIO_09, 1); #endif /* Initialize timer services */ MAP_PRCMPeripheralClkEnable(PRCM_TIMERA0, PRCM_RUN_MODE_CLK| PRCM_SLP_MODE_CLK); /* ungates the clk for the shared SPI*/ MAP_PRCMPeripheralClkEnable(PRCM_SSPI, PRCM_RUN_MODE_CLK| PRCM_SLP_MODE_CLK); /* Initialize the DMA module */ MAP_PRCMPeripheralClkEnable(PRCM_UDMA, PRCM_RUN_MODE_CLK| PRCM_SLP_MODE_CLK); MAP_uDMAControlBaseSet(dma_ctrl_table); MAP_uDMAEnable(); MAP_PRCMIntEnable(PRCM_INT_SLOW_CLK_CTR); }
//**************************************************************************** // //! \brief This function restore the backed up data (after S3) //! //! \param none //! //! \return none // //**************************************************************************** void lp3p0_restore_soc_data(void) { /* Invoking the default CC3xxx service impl. */ cc_restore_soc_data(); PRCMCC3200MCUInit(); /* disabling all wk up srcs */ PRCMLPDSWakeupSourceDisable(PRCM_LPDS_HOST_IRQ|PRCM_LPDS_GPIO|PRCM_LPDS_TIMER); // // Configure the pinmux settings for the peripherals exercised // PinMuxConfig(); // // enable peripherals // enable_peripherals(); /* ungates the clk for the shared SPI*/ MAP_PRCMPeripheralClkEnable(PRCM_SSPI, PRCM_RUN_MODE_CLK| PRCM_SLP_MODE_CLK); MAP_PRCMIntEnable(PRCM_INT_SLOW_CLK_CTR); }