Problem with Ecc2
Posted: Wed Apr 01, 2009 9:37 am
Hi,
I have a problem with interrupt under the ECC2 Kernel Mode.
I write a program with EDF Kernel Mode, than I want to use this with ECC2 Kernel Mode.
I have modified the OIL file e recompile the project with no Error but the interrupt of the Timer1 and Timer4 don\'t work any more....
I must include same specific file or modify the code for run interrupt under ECC2?
The code of interrupt is:
with a SetRelAlarm(AlarmSend, 10, 1000).
with the myCounter:
Thank\'s
I have a problem with interrupt under the ECC2 Kernel Mode.
I write a program with EDF Kernel Mode, than I want to use this with ECC2 Kernel Mode.
I have modified the OIL file e recompile the project with no Error but the interrupt of the Timer1 and Timer4 don\'t work any more....
I must include same specific file or modify the code for run interrupt under ECC2?
The code of interrupt is:
Code: Select all
ISR2(_T1Interrupt)
{
/* clear the interrupt source */
T1_clear();
/* count the interrupts, waking up expired alarms */
CounterTick(myCounter);
}
with the myCounter:
Code: Select all
COUNTER myCounter {
MINCYCLE = 2;
MAXALLOWEDVALUE = 0xFFFF ;
TICKSPERBASE = 1;
};
ALARM AlarmSend {
COUNTER = \"myCounter\";
ACTION = ACTIVATETASK { TASK = \"TaskSend\"; };
};