cmd940 - GP2X Framework for the 2nd CPU
This is a framework for the GP2X which will make it easier to utilize the ARM940t CPU. The framework consists of a set of source files and scripts and is supposed to be extended to suit each individual need.
Using this framework you basically are able to call a function from the 920 and it will automatically be executed on the 940. It may also have an optional return value.
So it is as simple as the following function call to execute stuff on the 940.
unsigned int result = cmd940::factorial(10);
Naturally the function has to be implemented on the 940.
The above function will be executed synchronously as it has a return value but that must not necessarily be the case. Consider the following example:
// This is async as it has no return value that we would have to wait for
// ... do some work here ...
// Now get the result back. This is synchronous and will wait until the
// actual computation is finished.
unsigned int result = cmd940::fibonacci_async_last_result();
More info will be given in the Readme.txt file which accompanies the download.