targets/Linux/plc_Linux_main.c
changeset 245 60a221d72152
parent 239 112b4bc523b3
child 280 f2ef79f3dba0
equal deleted inserted replaced
244:85e92d9e34a8 245:60a221d72152
   135     pthread_mutex_unlock(&wait_mutex);
   135     pthread_mutex_unlock(&wait_mutex);
   136 }
   136 }
   137 
   137 
   138 void suspendDebug()
   138 void suspendDebug()
   139 {
   139 {
       
   140     __DEBUG = 0;
   140     /* Prevent PLC to enter debug code */
   141     /* Prevent PLC to enter debug code */
   141     pthread_mutex_lock(&debug_mutex);
   142     pthread_mutex_lock(&debug_mutex);
   142 }
   143 }
   143 
   144 
   144 void resumeDebug()
   145 void resumeDebug()
   145 {
   146 {
       
   147     __DEBUG = 1;
   146     /* Let PLC enter debug code */
   148     /* Let PLC enter debug code */
   147     pthread_mutex_unlock(&debug_mutex);
   149     pthread_mutex_unlock(&debug_mutex);
   148 }
   150 }
   149 
   151