8 Development Support Tool
8.6 Port Debug
8-14
HW1484528
HW1484528
8.6.4 Debug Port APIs
mpDebugPortInit
Initializes the debug port for the port debug function of MotoPlusIDE.
Before using the port, it is necessary to execute it once.
Syntax
int mpDebugPortInit(
int portNo,
char* name
);
Argument
[portNo]
Specify the port number from 0 to 4.
[name]
Specifies the name of the debug port. The port name which is specified in
this step is displayed in the window of the port debug. For the port name,
use a maximum of 32 characters.
Return value
0: Normal end
-1: Error