examples/TestMasterSlave/TestMasterSlave.c
changeset 31 a82b70738e5c
parent 0 4472ee7c6c3e
child 32 8afa33692372
equal deleted inserted replaced
30:a5dd050b28cb 31:a82b70738e5c
    64 }
    64 }
    65 
    65 
    66 UNS32 OnMasterMap1Update(CO_Data* d, const indextable * unsused_indextable, UNS8 unsused_bSubindex)
    66 UNS32 OnMasterMap1Update(CO_Data* d, const indextable * unsused_indextable, UNS8 unsused_bSubindex)
    67 {
    67 {
    68 	eprintf("OnSlaveMap1Update:%d\n", SlaveMap1);
    68 	eprintf("OnSlaveMap1Update:%d\n", SlaveMap1);
       
    69 	return 0;
    69 }
    70 }
    70 
    71 
    71 
    72 
    72 
    73 
    73 void InitNodes(CO_Data* d, UNS32 id)
    74 void InitNodes(CO_Data* d, UNS32 id)
   132   printf("*   SDO and PDO.                                             *\n");
   133   printf("*   SDO and PDO.                                             *\n");
   133   printf("*                                                            *\n");
   134   printf("*                                                            *\n");
   134   printf("*   If you have chosen virtual CAN driver, just type         *\n");
   135   printf("*   If you have chosen virtual CAN driver, just type         *\n");
   135   printf("*   ./TestMasterSlave                                        *\n");
   136   printf("*   ./TestMasterSlave                                        *\n");
   136   printf("*                                                            *\n");
   137   printf("*                                                            *\n");
   137   printf("*   Else you need to sepcify bus:                            *\n");
   138   printf("*   Else you need to specify bus:                            *\n");
   138   printf("*                                                            *\n");
   139   printf("*                                                            *\n");
   139   printf("*     -s : slave CAN bus [default 0, peak first PCI]         *\n");
   140   printf("*     -s : slave CAN bus [default 0, peak first PCI]         *\n");
   140   printf("*     -m : master CAN bus [default 1, peak second PCI]       *\n");
   141   printf("*     -m : master CAN bus [default 1, peak second PCI]       *\n");
   141   printf("*                                                            *\n");
   142   printf("*                                                            *\n");
   142   printf("**************************************************************\n");
   143   printf("**************************************************************\n");