CVS: jtag/msp430 MSP430mspgcc.c,1.13,1.14
Chris Liechti <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/jtag/msp430
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2536/jtag/msp430
Modified Files:
MSP430mspgcc.c
Log Message:
use ReadMemQuick instead of slower ReadMem loop
Index: MSP430mspgcc.c
===================================================================
RCS file: /cvsroot/mspgcc/jtag/msp430/MSP430mspgcc.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -w -d -r1.13 -r1.14
--- MSP430mspgcc.c 27 Dec 2005 16:20:03 -0000 1.13
+++ MSP430mspgcc.c 29 Dec 2005 18:45:07 -0000 1.14
@@ -484,15 +484,15 @@
adjustLast = TRUE;
count--;
}
- //~ ReadMemQuick((WORD) (address + doneCount),
- //~ (WORD) ((count - doneCount) / 2),
- //~ (WORD*) (buffer + doneCount)
- //~ );
- //slow but reliable upload, instead of ReadMemQuick
- //but this is 3 times or so slower....
- for (i=0; i<(count - doneCount)/2; i++) {
- ((WORD*)(&buffer[doneCount]))[i] = ReadMem(F_WORD, (WORD)(address + doneCount + i*2));
- }
+ ReadMemQuick((WORD) (address + doneCount),
+ (WORD) ((count - doneCount) / 2),
+ (WORD*) (buffer + doneCount)
+ );
+ //~ //slow but reliable upload, instead of ReadMemQuick
+ //~ //but this is 3 times or so slower....
+ //~ for (i=0; i<(count - doneCount)/2; i++) {
+ //~ ((WORD*)(&buffer[doneCount]))[i] = ReadMem(F_WORD, (WORD)(address + doneCount + i*2));
+ //~ }
if (adjustLast) {
memValue = ReadMem(F_WORD, (WORD)(address + count));
*(buffer + count) = memValue & 0xFF;
@@ -523,6 +523,11 @@
(WORD) ((count - doneCount) / 2),
(WORD*) (buffer + doneCount)
);
+ //~ //slow but reliable download, instead of WriteMemQuick
+ //~ //but this is 3 times or so slower....
+ //~ for (i=0; i<(count - doneCount)/2; i++) {
+ //~ WriteMem(F_WORD, (WORD)(address + doneCount + i*2), ((WORD*)(&buffer[doneCount]))[i]);
+ //~ }
if (adjustLast) {
memValue = *(buffer + count) | 0xFF00;
WriteMem(F_WORD, (WORD) (address + count), memValue);
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click