Part Number: MSPM0L1105
Tool/software:
Hi Forum,
Please support me in this applications.
void GROUP1_IRQHandler(void)
{
switch (DL_Interrupt_getPendingGroup(DL_INTERRUPT_GROUP_1)) {
case GPIO_GRP_0_INT_IRQN:
switch (DL_GPIO_getPendingInterrupt(GPIO_GRP_0_PORT)) {
case GPIO_GRP_0_PIN_HALL_SENSE_IIDX:
----------
------
}
break;
case GPIO_GRP_0_PIN_KEY_IIDX:
/* If SW is high, turn the LED off */
if (DL_GPIO_readPins(
GPIO_GRP_0_PORT, GPIO_GRP_0_PIN_KEY_PIN )) {
button_handler();
DL_GPIO_setPins(GPIO_LEDS_PORT, GPIO_LEDS_GREEN_LED_PIN);
}//}
/* Otherwise, turn the LED on */
else {
DL_GPIO_clearPins(GPIO_LEDS_PORT, GPIO_LEDS_GREEN_LED_PIN);
}
break;
}
In the highlighted code. If this button input pressed for 10sec then only I want to run button_handler() or else it will directly go to else state. Please help me with how do I process this.