Hello all,
I have a quick question.
I have configured N2HET2 bits 4, 6 and 8 as GIO.
Then I went to edge interrupts and enabled edge0, edge1 and edge2 and told them to interact with HET2 4, 6, 8 bits on rising edge only.
Then I went to PIN 0-7 and configured bits 4 and 6 as input with pull up.
Lastly I got PIN 7 - 15 and configured bit 8 as input with pull up (same as previous ones).
On HET2 I placed three buttons.
On GIOB I have three LEDs.
I would like to turn on each LED by the push on the button via interrupt (notification.c).
When I turn them via sys_main.c all works fine.
How would I do that?
What do I need to turn on in VIM?
Trying to enable HET High / HET Low just produces the error.
I thought they might go to gioNotification and enabled GIO interrupt, but that doesn't seem to be the case.
So, I believe they will interact in edgeNotification, hence I've done this:
gioInit ();
hetInit ();
gioSetDirection (hetPORT2, 0x00000000);
gioEnableNotification (hetPORT2, 4U); // thought this would help but didn't
edgeEnableNotification (hetREG2, 0U);
_enable_IRQ ();
Can you tell me what I am doing wrong? :)
Thanks and Happy New Year!
Marc