targets/plc_debug.c
changeset 397 6a7ff66a811d
parent 394 5371e3d32f05
child 423 4d7ac355701d
equal deleted inserted replaced
396:d1083f580ca1 397:6a7ff66a811d
    68 extern int TryEnterDebugSection(void);
    68 extern int TryEnterDebugSection(void);
    69 extern void LeaveDebugSection(void);
    69 extern void LeaveDebugSection(void);
    70 extern long AtomicCompareExchange(long*, long, long);
    70 extern long AtomicCompareExchange(long*, long, long);
    71 extern void InitiateDebugTransfer(void);
    71 extern void InitiateDebugTransfer(void);
    72 
    72 
    73 extern int __tick;
    73 extern unsigned long __tick;
    74 void __publish_debug()
    74 void __publish_debug()
    75 {
    75 {
    76     /* Check there is no running debugger re-configuration */
    76     /* Check there is no running debugger re-configuration */
    77     if(TryEnterDebugSection()){
    77     if(TryEnterDebugSection()){
    78         /* Lock buffer */
    78         /* Lock buffer */