Created
June 19, 2015 07:33
-
-
Save monpetit/4730e6902bd8a27031ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "inc/hw_types.h" | |
| #include "driverlib/prcm.h" | |
| #define SLOW_CLK_FREQ (32*1024) | |
| void hibernate_reset(void) | |
| { | |
| // 동면에서 깨어날 시간(RTC) 설정 (본 예제는 1초) | |
| MAP_PRCMHibernateIntervalSet(1 * SLOW_CLK_FREQ); | |
| // HIB RTC 활성화 | |
| MAP_PRCMHibernateWakeupSourceEnable(PRCM_HIB_SLOW_CLK_CTR); | |
| // HIBernate 모드로 진입 | |
| MAP_PRCMHibernateEnter(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment