examples/CANOpenShell/CANOpenShell.c
changeset 754 4715f4ed8e0c
parent 751 d005211221c7
equal deleted inserted replaced
748:18ed0f3b030a 754:4715f4ed8e0c
    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 {