Part Number: CC2642R
In certain condition, I want to disable global interrupts by calling Hwi_disable() and restore it only when a specific GPIO line changes its state. Is following code correct?
hwiKey = Hwi_disable(); // Only allow interrupt for GPIO line 14 PIN_setInterrupt(gpioPinHandle, (PIN_Config)(IOID_14 | PIN_IRQ_BOTHEDGES);
Whether SYS/BIOS execution stops once Hwi_disable() is called and no other thread can execute?
On GPIO interrupt:
Hwi_restore(hwiKey); // Restore previous state and allow SYS/BIOS to run
Whether the MCU can go to the standby case when Hwi_disable() is called? Whether TI RTOS Power Manager works in order to go to the standby mode and the MCU gets out of standby mode when GPIO interrupt occurs?