Changeset 370 for ISPProgrammer/PRESTO/UPresto.pas
- Timestamp:
- May 31, 2012, 6:29:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ISPProgrammer/PRESTO/UPresto.pas
r363 r370 8 8 9 9 uses 10 Classes, SysUtils, UISPProgrammer, URegistry, UPrestoDLL, 11 UStreamHelper, Globals, Processors, Delays, UCPUType, Registry; 10 Classes, SysUtils, UISPProgrammer, UPrestoDLL, 11 UStreamHelper, Globals, Processors, Delays, UCPUType, Registry, 12 UJobProgressView; 12 13 13 14 type … … 33 34 procedure SaveToRegistry(Root: HKEY; Key: string); override; 34 35 function ReadIdentification: string; override; 35 procedure Write ; override;36 procedure Verify ; override;36 procedure Write(Job: TJob); override; 37 procedure Verify(Job: TJob); override; 37 38 procedure Erase; override; 38 39 procedure Reset; override; … … 46 47 47 48 {$IFDEF Windows} 48 49 uses50 UJobProgressView;51 52 const53 TempHexFile = 'Dump.hex';54 49 55 50 resourcestring … … 279 274 end; 280 275 281 procedure TPrestoProgrammer.Write ;276 procedure TPrestoProgrammer.Write(Job: TJob); 282 277 var 283 278 Address, I, PageSize, MinAdr, MaxAdr: Integer; … … 312 307 // AT89S8253, AT89S2051/4051, AT89S51/52, AVRs with page programming 313 308 PageSize := Signatures[devicenr].fpagesize; 314 Job ProgressView.CurrentJob.Progress.Max := MaxAdr;309 Job.Progress.Max := MaxAdr; 315 310 WritePage.Size := PageSize; 316 311 ReadPage.Size := PageSize; … … 361 356 Inc(Address); 362 357 end; 363 Job ProgressView.CurrentJob.Progress.Value := Address;364 if Job ProgressView.CurrentJob.Terminate then Break;358 Job.Progress.Value := Address; 359 if Job.Terminate then Break; 365 360 end; 366 361 Log(SProgramOK); … … 372 367 end; 373 368 374 procedure TPrestoProgrammer.Verify ;375 begin 376 inherited Verify;369 procedure TPrestoProgrammer.Verify(Job: TJob); 370 begin 371 inherited; 377 372 end; 378 373 … … 446 441 procedure TPrestoProgrammer.ISPWriteFlashPage(Address: Integer; Buffer: TStream); 447 442 var 448 pagesize, pagemask , raddr: integer;443 pagesize, pagemask: integer; 449 444 Data: TStreamHelper; 450 ptr: ^byte;451 445 begin 452 446 try … … 536 530 537 531 procedure TPrestoProgrammer.SetActive(AValue: Boolean); 538 var539 Answer: Integer;540 532 begin 541 533 if Active = AValue then Exit;
Note:
See TracChangeset
for help on using the changeset viewer.