targets/plc_debug.c
changeset 1800 1711339585ce
parent 1677 db05cb9e0439
child 2172 9fa5be79bb77
equal deleted inserted replaced
1799:9fd7bbf6ec45 1800:1711339585ce
     8  * Buffer content is read asynchronously, (from non real time part), 
     8  * Buffer content is read asynchronously, (from non real time part), 
     9  * and then buffer marked free again.
     9  * and then buffer marked free again.
    10  *  
    10  *  
    11  * 
    11  * 
    12  * */
    12  * */
       
    13 
       
    14 #ifdef TARGET_DEBUG_DISABLE
       
    15 
       
    16 void __init_debug    (void){}
       
    17 void __cleanup_debug (void){}
       
    18 void __retrieve_debug(void){}
       
    19 void __publish_debug (void){}
       
    20 
       
    21 #else
       
    22 
    13 #include "iec_types_all.h"
    23 #include "iec_types_all.h"
    14 #include "POUS.h"
    24 #include "POUS.h"
    15 /*for memcpy*/
    25 /*for memcpy*/
    16 #include <string.h>
    26 #include <string.h>
    17 #include <stdio.h>
    27 #include <stdio.h>
   326         *buffer = debug_buffer;
   336         *buffer = debug_buffer;
   327     }
   337     }
   328     return wait_error;
   338     return wait_error;
   329 }
   339 }
   330 
   340 
       
   341 #endif
       
   342