targets/Linux/plc_Linux_main.c
changeset 290 3bd617ae7a05
parent 280 f2ef79f3dba0
child 329 22e65b8e20f4
equal deleted inserted replaced
289:d17bd2f00a87 290:3bd617ae7a05
   139     pthread_mutex_unlock(&debug_wait_mutex);
   139     pthread_mutex_unlock(&debug_wait_mutex);
   140 }
   140 }
   141 
   141 
   142 void suspendDebug(void)
   142 void suspendDebug(void)
   143 {
   143 {
       
   144     __DEBUG = 0;
   144     /* Prevent PLC to enter debug code */
   145     /* Prevent PLC to enter debug code */
   145     pthread_mutex_lock(&debug_mutex);
   146     pthread_mutex_lock(&debug_mutex);
   146 }
   147 }
   147 
   148 
   148 void resumeDebug(void)
   149 void resumeDebug(void)
   149 {
   150 {
       
   151     __DEBUG = 1;
   150     /* Let PLC enter debug code */
   152     /* Let PLC enter debug code */
   151     pthread_mutex_unlock(&debug_mutex);
   153     pthread_mutex_unlock(&debug_mutex);
   152 }
   154 }
   153 
   155 
   154 /* from plc_python.c */
   156 /* from plc_python.c */