Hi
I am working with HIB and I want to wake up the module with the GPIO´s 13(SW3 in the Launchpad)
this is my code:
MAP_PRCMPeripheralClkEnable(PRCM_GPIOA1, PRCM_RUN_MODE_CLK);
//
// Configure PIN_4 for GPIOInput
//
MAP_PinTypeGPIO(PIN_04, PIN_MODE_0, false);
MAP_GPIODirModeSet(GPIOA1_BASE, GPIO_PIN_5, GPIO_DIR_MODE_IN);
void EnterHIBernate()
{
#define SLOW_CLK_FREQ (32*1024)
//
// Configure the HIB module RTC wake time
//
MAP_PRCMHibernateIntervalSet(5 * SLOW_CLK_FREQ);
//
// Enable the HIB RTC ang gpio
//
MAP_PRCMHibernateWakeupSourceEnable(PRCM_HIB_GPIO13 |PRCM_HIB_SLOW_CLK_CTR);
MAP_PRCMHibernateWakeUpGPIOSelect(PRCM_HIB_GPIO13,PRCM_HIB_FALL_EDGE);
Message("HIB: Entering HIBernate...\n\r");
MAP_UtilsDelay(80000);
//
// powering down SPI Flash to save power
//
//Utils_SpiFlashDeepPowerDown();
//
// Enter HIBernate mode
//
MAP_PRCMHibernateEnter();
}
when I use the EnterHIBernate();, the launchpad dosen't wake up with SW3 or rtc, and I can't reset the board with RESET button. How can I solve this?
Best Regards.