//**************************************************************************** // //! Reboot the MCU by requesting hibernate for a short duration //! //! \return None // //**************************************************************************** static void RebootMCU() { // // Configure hibernate RTC wakeup // PRCMHibernateWakeupSourceEnable(PRCM_HIB_SLOW_CLK_CTR); // // Delay loop // MAP_UtilsDelay(8000000); // // Set wake up time // PRCMHibernateIntervalSet(330); // // Request hibernate // PRCMHibernateEnter(); // // Control should never reach here // while(1) { } }
void cc32xx_reboot(void) { sl_Stop(30); PRCMHibernateIntervalSet(330); PRCMHibernateWakeupSourceEnable(PRCM_HIB_SLOW_CLK_CTR); PRCMHibernateEnter(); PRCMMCUReset(true); Utils_TriggerHibCycle(); }
void HibernateInit() { // // Configure the HIB module GPIO wake up conditions // PRCMHibernateWakeUpGPIOSelect(PRCM_HIB_GPIO17, PRCM_HIB_FALL_EDGE); // // Enable the HIB GPIO // PRCMHibernateWakeupSourceEnable(PRCM_HIB_GPIO17); }