Skip to content

Instantly share code, notes, and snippets.

@monpetit
Created June 19, 2015 07:33
Show Gist options
  • Select an option

  • Save monpetit/4730e6902bd8a27031ae to your computer and use it in GitHub Desktop.

Select an option

Save monpetit/4730e6902bd8a27031ae to your computer and use it in GitHub Desktop.
#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