FreeCalypso > hg > freecalypso-sw
comparison loadtools/flprogsrec.c @ 410:81d387690063
Intel flash: clear SR before programming
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Tue, 17 Jun 2014 03:40:49 +0000 |
parents | a212b4968b29 |
children |
comparison
equal
deleted
inserted
replaced
409:23ab8fe81764 | 410:81d387690063 |
---|---|
45 } | 45 } |
46 resp = tpinterf_pass_output(1); | 46 resp = tpinterf_pass_output(1); |
47 if (resp) { | 47 if (resp) { |
48 fclose(srr.openfile); | 48 fclose(srr.openfile); |
49 return(resp); | 49 return(resp); |
50 } | |
51 if (bi->ops->prep_for_program(bi) < 0) { | |
52 fclose(srr.openfile); | |
53 return(-1); | |
50 } | 54 } |
51 targv[0] = bi->ops->loadagent_program_cmd; | 55 targv[0] = bi->ops->loadagent_program_cmd; |
52 targv[1] = shortarg; | 56 targv[1] = shortarg; |
53 targv[2] = longarg; | 57 targv[2] = longarg; |
54 targv[3] = 0; | 58 targv[3] = 0; |