]> git.sur5r.net Git - openocd/commitdiff
dsp5680xx fix constante ref
authorRodrigo L. Rosa <rodrigorosa.LG@gmail.com>
Wed, 20 Jul 2011 03:04:46 +0000 (20:04 -0700)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 9 Aug 2011 18:07:49 +0000 (20:07 +0200)
a counter was incorrectly set
when i added the macros i incorrectly called them.
fixed that.

src/target/dsp5680xx.c

index fc1f9c646fb5ec8e2247ef2bea9e55af67a37445..175f77790840ac095370926fb2797fd1050d2e3d 100644 (file)
@@ -742,7 +742,7 @@ static int dsp5680xx_read(struct target * target, uint32_t address, unsigned siz
   for (unsigned i=0; i<count; i++){
     if(--counter==0){
       dsp5680xx_context.flush = 1;
-      counter = FLUSH_COUNT_FLASH;
+      counter = FLUSH_COUNT_READ_WRITE;
     }
     switch (size){
     case 1: