__selectCore
In this section:
Syntax
__selectCore(intcore)
Parameters
coreThe core to switch to. The cores are numbered from
0and upwards.
Return value
int 0
For use with
The C-SPY simulator.
The C-SPY I-jet driver.
Description
Switches focus from the current core to the specified core for the duration of the macro invocation or until any next invocation of __selectCore.
Example
test ()
{
__message "Core: ", __getSelectedCore(), " pc = ", #PC:%x, “\n”;
__selectCore(0);
__message "Core: ", __getSelectedCore(), " pc = ", #PC:%x, “\n”;
__selectCore(1);
__message "Core: ", __getSelectedCore(), " pc = ", #PC:%x, “\n”;A typical result of the above macro would be (assuming that the original core was number 1):
Core: 1 pc = 0000213C Core: 0 pc = 00000494 Core: 1 pc = 0000213C