Other Parts Discussed in Thread: CC1310, SIMPLELINK-CC13X0-SDK
Hi, I'm using cc1310 LAUNCHXL for some test. The environment is as follows:
1. SIMPLELINK-CC13X0-SDK 1.40.00
2. CCS IDE and compiler
3. application: gpiointerrupt example with NORTOS
Before while loop, GPIO_disableInt function has been executed and the gpio interrupt is disabled. But after sleep function executed, I found that the gpio interrupt is enabled automatically. And the gpioButtonFxn0 function will be executed when the button0 pressed.
The demo is:
----------------------------------------------------------------------------
void *mainThread(void *arg0)
{
GPIO_init();
GPIO_write(Board_GPIO_LED0, Board_GPIO_LED_OFF);
GPIO_setCallback(Board_GPIO_BUTTON0, gpioButtonFxn0);
GPIO_disableInt(Board_GPIO_BUTTON0);
while (1)
{
sleep(5);
}
return (NULL);
}
----------------------------------------------------------------------------