targets/plc_debug.c
changeset 280 f2ef79f3dba0
parent 244 85e92d9e34a8
child 335 c5f3f71e7260
equal deleted inserted replaced
279:47d29c4b55a3 280:f2ef79f3dba0
    51 struct_plcvar variable_table[%(variables_pointer_type_table_count)d];
    51 struct_plcvar variable_table[%(variables_pointer_type_table_count)d];
    52 
    52 
    53 void __init_debug()
    53 void __init_debug()
    54 {
    54 {
    55 %(variables_pointer_type_table_initializer)s
    55 %(variables_pointer_type_table_initializer)s
    56 AtomicCompareExchange(
    56     buffer_state = BUFFER_FREE;
    57             &buffer_state,
       
    58             BUFFER_BUSY,
       
    59             BUFFER_FREE);
       
    60 }
    57 }
    61 
    58 
    62 void __cleanup_debug()
    59 void __cleanup_debug()
    63 {
    60 {
    64 }
    61 }