I'm trying to use (and understand ) how to use the EXT driver and setup the configuration.
I can see a call to the interrupt callback when I use this and hit PA0:
Code: Select all
static EXTConfig extInterruptsConfiguration = {
{
{EXT_CH_MODE_BOTH_EDGES | EXT_MODE_GPIOA , extInterruptCallback},
...
}
};
or this and then I hit PC0:
Code: Select all
static EXTConfig extInterruptsConfiguration = {
{
{EXT_CH_MODE_BOTH_EDGES | EXT_MODE_GPIOC , extInterruptCallback},
...
}
};
but it seems that I can't use this because now it only reacts to PC0:
Code: Select all
static EXTConfig extInterruptsConfiguration = {
{
{EXT_CH_MODE_BOTH_EDGES | EXT_MODE_GPIOA | EXT_MODE_GPI0C , extInterruptCallback},
...
}
};
Could you please help me understand how to properly configure this?
Can't I have channel 0 reacting to all Pn0 pins, channel 3 reacting to all Pn3 pins, etc?
Thanks!