Hello
I try to use (on Netdcu8) connector J5 the Pins 1-4 for input interrupts.
Pin 2,3,4 are working properly. Pin 1 only works one time after power on of the Netdcu and program start. When closing and restart the program again, Pin 1 is´nt rising a interrupt anymore, only Pin 2,3,4 are working ok. I have to say I use a customer kernel with CF35.
Could you give me a idea what I could check?
I like to show here the code fragments for the Pin1:
I initialise so:
- m_hIsrEvent_J5_Pin1=CreateEvent( NULL, FALSE, FALSE, _T("ISR_Pin1") );//Geht nur als interupt
- //DIGITALIO driver is not respsonsible for this pin.
- //The interrupt is triggered at low level, not at an edge.
- m_dwSysIntr_Pin1=SYSINTR_EXTIO; //J5 pin 1
- if(!InterruptInitialize(m_dwSysIntr_Pin1,m_hIsrEvent_J5_Pin1,NULL,0))
- {
- ErrorMessage(_T("J5 pin 1 InterruptInitialize failed"));
- return false;
- }
- InterruptDone(SYSINTR_EXTIO);
The waiting part:
When program stop I do this:
The registry settings:
reg set value Channel dword 20
reg open \drivers\builtin\digitalio
reg set value port dword 0
reg set value index dword 0
reg set value UseAsIO DWORD 0x00ff0fff
reg set value DataDir DWORD 0x00000f1f
reg set value DataInit DWORD 0x00000000
reg set value IRQCfg0 DWORD 0x000000e0
reg set value IRQCfg1 DWORD 0x000000e0
reg set value IRQCfg2 DWORD 0x00000000