source: ISPProgrammer/RFU/URFUProgrammer.pas

Last change on this file was 370, checked in by chronos, 13 years ago
  • Modified: ISPProgrammer now use updated component oriented TJobProgressView from Common package.
File size: 1.3 KB
Line 
1unit URFUProgrammer;
2
3{$mode delphi}
4
5interface
6
7uses
8 Classes, SysUtils, Forms, UISPProgrammer, UCPUType, Process, UJobProgressView;
9
10type
11
12 { TRFUProgrammer }
13
14 TRFUProgrammer = class(TISPProgrammer)
15 procedure Write(Job: TJob); override;
16 procedure Verify(Job: TJob); override;
17 procedure Erase; override;
18 procedure Reset; override;
19 constructor Create; override;
20 destructor Destroy; override;
21 end;
22
23
24implementation
25
26{ TRFUProgrammer }
27
28procedure TRFUProgrammer.Write(Job: TJob);
29begin
30 inherited;
31 with TProcess.Create(nil) do
32 try
33 CommandLine := 'clRFU.exe ' + FileName + ' -cl coldload.bin -pb pilot.bin';
34 CurrentDirectory := ExtractFileDir(Application.ExeName) +
35 DirectorySeparator + 'Programmer' + DirectorySeparator + 'RFU';
36 Options := [];
37 Execute;
38 finally
39 Free;
40 end;
41end;
42
43procedure TRFUProgrammer.Verify(Job: TJob);
44begin
45 inherited;
46end;
47
48procedure TRFUProgrammer.Erase;
49begin
50 inherited Erase;
51end;
52
53procedure TRFUProgrammer.Reset;
54begin
55 inherited Reset;
56end;
57
58constructor TRFUProgrammer.Create;
59begin
60 inherited Create;
61 Capabilities := [ipcWrite];
62 CPUType := ctRC3000;
63end;
64
65destructor TRFUProgrammer.Destroy;
66begin
67 inherited Destroy;
68end;
69
70end.
71
Note: See TracBrowser for help on using the repository browser.