SPC
Version 0.9.5
Main Page
Related Pages
Modules
Files
Examples
All
Files
Functions
Groups
Pages
ex_exitto.spc
This is an example of how to use the
ExitTo
function.
// When run, this program alternates between task A and task B until halted
// by pressing the gray button.
task B();
task A()
{
printf
(
"task A\n"
);
ExitTo
(B);
}
task B()
{
printf
(
"task B\n"
);
ExitTo
(A);
}
task main()
{
printf
(
"task main\n"
);
ExitTo
(B);
}
Generated by
1.8.2