forked from GTRONICK/QPickit
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprogrammer.cpp
More file actions
32 lines (28 loc) · 1.93 KB
/
programmer.cpp
File metadata and controls
32 lines (28 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "programmer.h"
Programmer::Programmer() {
// The mainwindow supports the target commands "Program", "Read", "Verify", "Detect", "Erase", blank "Check"
// The PICkit2 window provides support for PICkit2 related commands "Info" and set "NewID"
// Other optional progammer may provide only a subset of the target commands, the unsupported buttons will be hidden
// PICkit2 target cmds
commands[ "PICkit2" ][ "Program" ] = QStringList( { "pk2cmd", "-p", "-m", "-f" } );
commands[ "PICkit2" ][ "Read" ] = QStringList( { "pk2cmd", "-p", "-gf" } );
commands[ "PICkit2" ][ "Verify" ] = QStringList( { "pk2cmd", "-p", "-y", "-f" } );
commands[ "PICkit2" ][ "DetectPIC" ] = QStringList( { "pk2cmd", "-p", "-i" } );
commands[ "PICkit2" ][ "Erase" ] = QStringList( { "pk2cmd", "-p", "-e" } );
commands[ "PICkit2" ][ "BlankCheck" ] = QStringList( { "pk2cmd", "-p", "-c" } );
// PICkit2 programmer cmds
commands[ "PICkit2" ][ "pk2Info" ] = QStringList( { "pk2cmd", "-s#" } );
commands[ "PICkit2" ][ "pk2NewID" ] = QStringList( { "pk2cmd", "-n" } );
// PICkit1 target cmds
commands[ "PICkit1" ][ "Program" ] = QStringList( { "pickit1", "-p" } );
commands[ "PICkit1" ][ "Read" ] = QStringList( { "pickit1", "-x" } );
commands[ "PICkit1" ][ "Verify" ] = QStringList( { "pickit1", "-v" } );
commands[ "PICkit1" ][ "DetectPIC" ] = QStringList( { "pickit1", "-c" } );
commands[ "PICkit1" ][ "Erase" ] = QStringList( { "pickit1", "-e" } );
commands[ "PICkit1" ][ "BlankCheck" ] = QStringList( { "pickit1", "-b" } );
// ArdPicProg target cmds
commands[ "ArdPicProg" ][ "Program" ] = QStringList( { "ardpicprog", "--erase", "--burn", "-i" } );
commands[ "ArdPicProg" ][ "Read" ] = QStringList( { "ardpicprog", "-o" } );
commands[ "ArdPicProg" ][ "DetectPIC" ] = QStringList( { "ardpicprog", "--detect" } );
commands[ "ArdPicProg" ][ "Erase" ] = QStringList( { "ardpicprog", "--erase" } );
}