Part Number: MSP432P401R
Tool/software: TI-RTOS
Hello,
I want to shutdown the controller in the lowest power state (LPM4.5). Therefore I'm using the function:
Power_shutdown(PowerMSP432_SHUTDOWN_1, 0);
This function seems to work. But i can't wake up the controller with a GPIO interrupt. I have configured four buttons as interrupt inputs:
GPIO_PinConfig gpioPinConfigs[] = { /* Input pins */ /* * NOTE: Specifying FALLING edge triggering for these buttons to ensure the * interrupts are signaled immediately. See the description of the * PowerMSP432 driver's automatic pin parking feature for this rationale. */ /* Buttons */ GPIOMSP432_P4_0 | GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_FALLING, GPIOMSP432_P4_2 | GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_FALLING, GPIOMSP432_P4_1 | GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_FALLING, GPIOMSP432_P4_5 | GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_FALLING, } GPIO_setCallback(BUTTON_1, buttonCallback); GPIO_setCallback(BUTTON_2, buttonCallback); GPIO_setCallback(BUTTON_3, buttonCallback); GPIO_setCallback(BUTTON_4, buttonCallback); GPIO_enableInt(BUTTON_1); GPIO_enableInt(BUTTON_2); GPIO_enableInt(BUTTON_3); GPIO_enableInt(BUTTON_4);
I'm also using the CC1310 controller. There the shutdown and wakeup is working with the following code:
PINCC26XX_setWakeup(SPI_CSN_WakeUpTable); /* Wake-up pin table */ PIN_Config SPI_CSN_WakeUpTable[] = { CC1310_LAUNCHXL_SPI0_CSN | PIN_INPUT_EN | PIN_PULLUP | PINCC26XX_WAKEUP_NEGEDGE, PIN_TERMINATE /* Terminate list */ };
Is there something similar for the MSP432 available?
Thank you for your help & efforts
Kevin