Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG,
Tool/software:
Hey there,
is there any interrupt handler generation by sysconfig or do I have to type the IRQ handler functions by myself?
Just asking because the sysconfig generates so many code snippets but i can't find any interrupt handler.
I could copy things like this from the example projects:
void GROUP1_IRQHandler(void)
{
switch (DL_Interrupt_getPendingGroup(DL_INTERRUPT_GROUP_1)) {
case GPIO_SWITCHES_INT_IIDX:
/* If SW is high, turn the LED off */
if (DL_GPIO_readPins(
GPIO_SWITCHES_PORT, GPIO_SWITCHES_USER_SWITCH_1_PIN)) {
DL_GPIO_setPins(GPIO_LEDS_PORT, GPIO_LEDS_USER_LED_1_PIN);
}
/* Otherwise, turn the LED on */
else {
DL_GPIO_clearPins(GPIO_LEDS_PORT, GPIO_LEDS_USER_LED_1_PIN);
}
break;
}
}
but i would prefer generated code that directly fits my needs.
And just another question:
Is it possible to have two interrupt handler functions for falling and rising edge interrupt?
Or do I have to check pin input level on interrupt event and decide whether it is high or low.
Thanks a lot in advance!
Matze


