Other Parts Discussed in Thread: HALCOGEN
Hello,
I'm trying to use the interrupt of the RM48 using halcogen.
I have done a simple control to the push button ( polling ).
---------------------------
if( gioGetBit(gioPORTA,7))
{
hetREG1->DOUT = 0x00000000;
}
else
{
hetREG1->DOUT = 0xFFFFFFFF;
}
----------------------------
and it is working. But when I run
" gioEnableNotification(7); "
nothing happens, I've putted a breakpoint the callback "gioNotification(int bit)".
To configure the interrupts in HalCoGEN I've done the following steps.
1. Created a RM4x, TMDXRM48HDK project.
2. Set GIO driver compilation in Driver Enable Tab
3. Enabled IRQ Handling via VIC Controller in Cortex-R4F tab
4. Set IRQ to vectored mode in Interrupts Bab
5. Enabled GIO Low Interrupt ( 23 ) to IRQ in VIM Channel 0-31
6. Enable the Interrupt in Gio Tab to Pin 7
6.1 Diretion is input
6.2 Pull down enabled
6.3 Falling Edge interrupt
6.4 Low Priority interrupt
In the sys_main I've called :
gioInit();
gioEnableNotification(7);
runned it and pushed the button, but no gioNotification was generated.
I'm missing something ? Is there any Init() I've to do to activate interrupts ?
Thanks,
Cristiano