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 | |
---|
1 | unit URFUProgrammer;
|
---|
2 |
|
---|
3 | {$mode delphi}
|
---|
4 |
|
---|
5 | interface
|
---|
6 |
|
---|
7 | uses
|
---|
8 | Classes, SysUtils, Forms, UISPProgrammer, UCPUType, Process, UJobProgressView;
|
---|
9 |
|
---|
10 | type
|
---|
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 |
|
---|
24 | implementation
|
---|
25 |
|
---|
26 | { TRFUProgrammer }
|
---|
27 |
|
---|
28 | procedure TRFUProgrammer.Write(Job: TJob);
|
---|
29 | begin
|
---|
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;
|
---|
41 | end;
|
---|
42 |
|
---|
43 | procedure TRFUProgrammer.Verify(Job: TJob);
|
---|
44 | begin
|
---|
45 | inherited;
|
---|
46 | end;
|
---|
47 |
|
---|
48 | procedure TRFUProgrammer.Erase;
|
---|
49 | begin
|
---|
50 | inherited Erase;
|
---|
51 | end;
|
---|
52 |
|
---|
53 | procedure TRFUProgrammer.Reset;
|
---|
54 | begin
|
---|
55 | inherited Reset;
|
---|
56 | end;
|
---|
57 |
|
---|
58 | constructor TRFUProgrammer.Create;
|
---|
59 | begin
|
---|
60 | inherited Create;
|
---|
61 | Capabilities := [ipcWrite];
|
---|
62 | CPUType := ctRC3000;
|
---|
63 | end;
|
---|
64 |
|
---|
65 | destructor TRFUProgrammer.Destroy;
|
---|
66 | begin
|
---|
67 | inherited Destroy;
|
---|
68 | end;
|
---|
69 |
|
---|
70 | end.
|
---|
71 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.