The main function (in part)
External synchronization signal, receives the signal after the interruption function called
FpgaDelayInit (ISR_DELAY);/* delay */
FpgaDioInit (BackIsr/* */callback function, 0 XFF);/* FpgaDioInit (function, 0 XFF) */
FpgaDioEn ();/* can make */
A subroutine 1
Int BackIsr (used in the condition of variable)
{
Write a condition) if (
{
SemGive (semSendSuccess1);
}
}
A subroutine 2
Int testTask (void)
{
The TEST t;
T.a=0 x11;
T.b=0 x22;
Tc=0 x44;
T.d=0 x11;
T.e=0 x22;
T.f=0 x44;
T.g=0 xaa;
Todd Harper=0 XFF;
While (1)
{
SemTake (g_semsendzt WAIT_FOREVER);
If (g_sendzt) g_sendzt=1/* */
{
SendvpxBusData (8, (char *) & amp; T, sizeof (t), 1);
}
}
}