merge with main Canfestival repository
authorMongo
Mon, 21 May 2012 17:21:57 +0200
changeset 719 438a979fda5d
parent 718 0b33d9cdbdeb (diff)
parent 714 ab83333fee78 (current diff)
child 738 396839c5d70f
merge with main Canfestival repository
CanFestival-3.vc8.sln
CanFestival-3.vc8.vcproj
drivers/can_anagate_win32/can_anagate_win32.vcproj
drivers/can_copcican_win32/can_copcican_win32.vcxproj
drivers/can_copcican_win32/can_copcican_win32.vcxproj.filters
drivers/can_ixxat_win32/can_ixxat_win32.vc8.vcproj
drivers/can_peak_win32/can_peak_win32.vcproj
drivers/can_uvccm_win32/can_uvccm_win32.vcproj
examples/CANOpenShell/CANOpenShell.sln
examples/CANOpenShell/CANOpenShell.vcproj
examples/DS401_Master/TestMasterMicroMod.vcproj
examples/TestMasterMicroMod/TestMasterMicroMod.vcproj
examples/TestMasterSlave/TestMasterSlave.vcproj
examples/TestMasterSlaveLSS/TestMasterSlaveLSS.vcproj
examples/win32test/win32test.vcproj
src/sdo.c
--- a/examples/TestMasterSlaveLSS/Master.c	Sat Feb 04 17:08:48 2012 +0100
+++ b/examples/TestMasterSlaveLSS/Master.c	Mon May 21 17:21:57 2012 +0200
@@ -41,7 +41,7 @@
 {
 	UNS32 PDO1_COBID = 0x0182; 
 	UNS32 PDO2_COBID = 0x0183;
-	UNS8 size = sizeof(UNS32); 
+	UNS32 size = sizeof(UNS32); 
 	
 	eprintf("TestMaster_initialisation\n");
 
@@ -78,7 +78,7 @@
 {
 	UNS32 abortCode;	
 	if(getWriteResultNetworkDict (d, nodeId, &abortCode) != SDO_FINISHED)
-		eprintf("Master : Failed in initializing slave %2.2x, step %d, AbortCode :%4.4x \n", nodeId, init_step, abortCode);
+		eprintf("Master : Failed in initializing slave %2.2x, AbortCode :%4.4x \n", nodeId, abortCode);
 
 	/* Finalise last SDO transfer with this node */
 	closeSDOtransfer(&TestMaster_Data, nodeId, SDO_CLIENT);
@@ -126,12 +126,13 @@
 					1, /*UNS8 count*/
 					0, /*UNS8 dataType*/
 					&Transmission_Type,/*void *data*/
-					CheckSDOAndContinue); /*SDOCallback_t Callback*/
+					CheckSDOAndContinue, /*SDOCallback_t Callback*/
+                    0); /*UNS8 useBlockMode*/
 					break;
 		case 2: /* Second step : Set the new heartbeat producer time in the slave */
 		{
 			UNS32 Master_Cons_Heartbeat_T=Master_Cons_Heartbeat_Base + (nodeId * 0x10000);
-			UNS8 size = sizeof(UNS32); 
+			UNS32 size = sizeof(UNS32); 
 			
 			eprintf("Master : set slave %2.2x Producer Heartbeat Time = %d\n", nodeId,Slave_Prod_Heartbeat_T);
 			res = writeNetworkDictCallBack (d, /*CO_Data* d*/
@@ -141,7 +142,8 @@
 					2, /*UNS8 count*/
 					0, /*UNS8 dataType*/
 					&Slave_Prod_Heartbeat_T,/*void *data*/
-					CheckSDOAndContinue); /*SDOCallback_t Callback*/
+					CheckSDOAndContinue, /*SDOCallback_t Callback*/
+                    0); /*UNS8 useBlockMode*/
 					break;
 					
 			/* Set the new heartbeat consumer time in the master*/
@@ -212,7 +214,7 @@
    			if(dat1==0){
    				UNS8 LSS_mode=LSS_WAITING_MODE;
 				UNS32 SINC_cicle=50000;// us
-				UNS8 size = sizeof(UNS32); 
+				UNS32 size = sizeof(UNS32); 
 	
 				/* The slaves are now configured (nodeId and Baudrate) via the LSS services.
    			 	* Switch the LSS state to WAITING and restart the slaves. */
--- a/src/sdo.c	Sat Feb 04 17:08:48 2012 +0100
+++ b/src/sdo.c	Mon May 21 17:21:57 2012 +0200
@@ -1992,6 +1992,7 @@
  ** @param count
  ** @param dataType
  ** @param data
+ ** @param useBlockMode
  **
  ** @return
  **/
@@ -2012,6 +2013,7 @@
  ** @param dataType
  ** @param data
  ** @param Callback
+ ** @param useBlockMode
  **
  ** @return
  **/
@@ -2079,6 +2081,7 @@
  ** @param subIndex
  ** @param dataType
  ** @param Callback
+ ** @param useBlockMode
  **
  ** @return
  **/
@@ -2156,6 +2159,7 @@
  ** @param index
  ** @param subIndex
  ** @param dataType
+ ** @param useBlockMode
  **
  ** @return
  **/
@@ -2173,6 +2177,7 @@
  ** @param subIndex
  ** @param dataType
  ** @param Callback
+ ** @param useBlockMode
  **
  ** @return
  **/