summaryrefslogtreecommitdiff
path: root/Debugger/debug_runlooptasks.S
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-06-29 12:03:14 +0800
committerTat-Chee Wan (USM)2011-06-29 12:03:14 +0800
commitf68750cddf5754e527278f56e472757671fc6869 (patch)
tree1884253ca790af98b6cd516f057aa63e31f814cc /Debugger/debug_runlooptasks.S
parent5ad59e0fa53a9e57e4d06a408ab6051c3d6af701 (diff)
remove wait delay in comm transmit
dbg__sendCommMsg does not need 1 ms delay. Removed. dbg__runloopTasks needs the 1 ms delay, otherwise Armdebug doess not reliably detect incoming messages in comm buffer. This probably masks synchronization issues related to the USB Receive Buffer checking and handling, and should be fixed (eventually).
Diffstat (limited to 'Debugger/debug_runlooptasks.S')
-rw-r--r--Debugger/debug_runlooptasks.S5
1 files changed, 1 insertions, 4 deletions
diff --git a/Debugger/debug_runlooptasks.S b/Debugger/debug_runlooptasks.S
index d2557d5..8eed3ad 100644
--- a/Debugger/debug_runlooptasks.S
+++ b/Debugger/debug_runlooptasks.S
@@ -172,7 +172,6 @@ _dbg__reboot_wait:
#ifdef __NXOS__
.extern debug_OutCommBuf
- .extern nx_systick_wait_ms
/****************************************************************************
*
* NxOS Communications Driver Interface Routine
@@ -201,9 +200,7 @@ dbg__sendCommMsg:
mov r1, r4 /* Comm buffer length */
bl nx_usb_write
-1: mov r0, #1 /* 1 ms delay */
- bl nx_systick_wait_ms
- bl nx_usb_data_written /* R0 = True if data has been sent */
+1: bl nx_usb_data_written /* R0 = True if data has been sent */
teq r0, #0 /* FALSE == #0;
We can't check for True condition since values
used by C-Compiler & ARMDEBUG are different */