targets/plc_debug.c
changeset 502 5343ae43f6d0
parent 491 28afed8b1af5
child 504 688e84df3408
equal deleted inserted replaced
501:d7bf56b036a8 502:5343ae43f6d0
   277 }
   277 }
   278 int WaitDebugData(unsigned long *tick);
   278 int WaitDebugData(unsigned long *tick);
   279 /* Wait until debug data ready and return pointer to it */
   279 /* Wait until debug data ready and return pointer to it */
   280 int GetDebugData(unsigned long *tick, unsigned long *size, void **buffer){
   280 int GetDebugData(unsigned long *tick, unsigned long *size, void **buffer){
   281     int res = WaitDebugData(tick);
   281     int res = WaitDebugData(tick);
   282     *size = buffer_cursor - debug_buffer;
   282     if(res){
   283     *buffer = debug_buffer;
   283         *size = buffer_cursor - debug_buffer;
       
   284         *buffer = debug_buffer;
       
   285     }
   284     return res;
   286     return res;
   285 }
   287 }
   286 
   288