1.  Fix the 'structure pointer variable allocating heap memory' issue :
1.  Fix the 'structure pointer variable allocating heap memory' issue :

	PST_Access_Ctrl_SwitchRelayMatrix pSwitch = (PST_Access_Ctrl_SwitchRelayMatrix)malloc(sizeof(ST_Access_Ctrl_SwitchRelayMatrix));

	Because of Renesas compiler configuring the heap memory, when using 'malloc() function' to allocate the heap memory for a structure  pointer variable in a function, it cannot succeed in allocating for this pointer variable.

	I was forced to allocate the stack memory, by defining a structure variable, not a structure pointer, as below :

	ST_Access_Ctrl_SwitchRelayMatrix pSwitch = {0x00, 0, OFF};
	and subsequently assign the structure's member :
		pSwitch.byteBoardID = (BYTE)lValue;
		pSwitch.dwSwitch_Relay_CHn = (DWORD)lValue;
		pSwitch.eOpen_Close_State = ON;

		Control_Single_Switch(&pSwitch);

		// free(&pSwitch);	====> No need to free the local variable inside a function, because the variable's memory was allocated in the stack area.
						when quiting from the function, her stack memory will be automatically released, compiler will determine this point.

2.  Fix an error : strcspn() function searched the position of specified character set "," from a string,  if no found, it will return the position value = the position of NULL terminating character '\0',   position-value != 0
	uiPosOfComma = strcspn(sRestSubStringOfAttributeList, ",");
	if (uiPosOfComma == strlen(sRestSubStringOfAttributeList))	// Fix the bug for the condition : when no "," was found, it means going to the end of the string.

3.  Slightly enlarge the size of variable "char sTempSubString[64] = {0};",  this variable is used to temporarily store the sub-string.
     When handling the special format : $ACTIon:SWITch 0x01:XXXXX1XXXX0XX1X011X1001X!      because the length of string "XXXXX1XXXX0XX1X011X1001X!" is larger than 16.

4.  Insert a remark to describe the differences for 3 kinds of memory area : Heap memory,  Stack memory and Static storing area.

TimXhHuang/Renesas_uPD70F3376_DCU_Controller,TimXhHuang/Renesas_uPD70F3376_DCU_Controller