Other Parts Discussed in Thread: MSPM0G3519
器件型号: MSPM0G3519
您好、
我正在处理具有 GPIO 唤醒功能的 MSPM0G3519 低功耗模式实施。 我获取了计时器 ISR 示例代码、并添加了启用了唤醒功能的 GPIO。

#include "ti_msp_dl_config.h"
uint32_t switchInput =0;
int main(void)
{
SYSCFG_DL_init();
// NVIC_EnableIRQ(TIMER_0_INST_INT_IRQN);
/* Calling WFI after calling DL_SYSCTL_enableSleepOnExit will result in
* only ISR code to be executed. This is done to showcase the device's
* low power consumption when sleeping.
*/
DL_SYSCTL_setPowerPolicySTOP0();
while (1) {
DL_GPIO_togglePins(GPIO_LEDS_PORT,
GPIO_LEDS_USER_LED_1_PIN);
/*
* Enter STOP0
*/
// __WFI();
switchInput =
DL_GPIO_readPins(GPIO_SWITCH_PORT,
GPIO_SWITCH_FastWakeup_PA12_PIN);
delay_cycles(6000000);
DL_GPIO_togglePins(GPIO_LEDS_PORT,
GPIO_LEDS_USER_LED_2_PIN);
}
}
请指导我实现从低功耗模式唤醒 GPIO。
此致、
SaKhan