examples/CANOpenShell/CANOpenShell.c
changeset 751 d005211221c7
parent 664 a03f0aa7d219
equal deleted inserted replaced
750:bfb63ff7106e 751:d005211221c7
    62 char LibraryPath[512];
    62 char LibraryPath[512];
    63 
    63 
    64 /* Sleep for n seconds */
    64 /* Sleep for n seconds */
    65 void SleepFunction(int second)
    65 void SleepFunction(int second)
    66 {
    66 {
       
    67 #ifdef USE_RTAI
       
    68 	sleep(second);
       
    69 #else
    67 	SLEEP(second);
    70 	SLEEP(second);
       
    71 #endif
    68 }
    72 }
    69 
    73 
    70 /* Ask a slave node to go in operational mode */
    74 /* Ask a slave node to go in operational mode */
    71 void StartNode(UNS8 nodeid)
    75 void StartNode(UNS8 nodeid)
    72 {
    76 {