46 __cleanup(); |
46 __cleanup(); |
47 return 0; |
47 return 0; |
48 } |
48 } |
49 |
49 |
50 extern unsigned long __tick; |
50 extern unsigned long __tick; |
|
51 int _DebugDataAvailable = 0; |
51 /* from plc_debugger.c */ |
52 /* from plc_debugger.c */ |
52 int WaitDebugData(unsigned long *tick) |
53 int WaitDebugData(unsigned long *tick) |
53 { |
54 { |
54 *tick = __tick; |
55 *tick = __tick; |
55 return 0; |
56 return _DebugDataAvailable; |
56 } |
57 } |
57 |
58 |
58 /* Called by PLC thread when debug_publish finished |
59 /* Called by PLC thread when debug_publish finished |
59 * This is supposed to unlock debugger thread in WaitDebugData*/ |
60 * This is supposed to unlock debugger thread in WaitDebugData*/ |
60 void InitiateDebugTransfer(void) |
61 void InitiateDebugTransfer(void) |
61 { |
62 { |
|
63 _DebugDataAvailable = 1; |
62 } |
64 } |
63 |
65 |
64 void suspendDebug(void) |
66 void suspendDebug(int disable) |
65 { |
67 { |
|
68 __DEBUG = !disable; |
66 } |
69 } |
67 |
70 |
68 void resumeDebug(void) |
71 void resumeDebug(void) |
69 { |
72 { |
70 } |
73 __DEBUG = 1; |
71 |
|
72 /* from plc_python.c */ |
|
73 int WaitPythonCommands(void) |
|
74 { |
|
75 return 0; |
|
76 } |
|
77 |
|
78 /* Called by PLC thread on each new python command*/ |
|
79 void UnBlockPythonCommands(void) |
|
80 { |
|
81 } |
|
82 |
|
83 int TryLockPython(void) |
|
84 { |
|
85 return 0; |
|
86 } |
|
87 |
|
88 void UnLockPython(void) |
|
89 { |
|
90 } |
|
91 |
|
92 void LockPython(void) |
|
93 { |
|
94 } |
74 } |
95 |
75 |
96 void Retain(unsigned int offset, unsigned int count, void *p) |
76 void Retain(unsigned int offset, unsigned int count, void *p) |
97 { |
77 { |
98 } |
78 } |