Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
picsimlab
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
picsimlab
Commits
ba2fe1d1
Commit
ba2fe1d1
authored
Aug 07, 2020
by
lcgamboa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chg: debug name defined in board class now !minor
parent
cd528a00
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
40 additions
and
8 deletions
+40
-8
src/boards/board.h
src/boards/board.h
+5
-0
src/boards/board_Breadboard.cc
src/boards/board_Breadboard.cc
+15
-0
src/boards/board_Breadboard.h
src/boards/board_Breadboard.h
+1
-0
src/boards/board_picsim.h
src/boards/board_picsim.h
+1
-0
src/boards/board_qemu_stm32.h
src/boards/board_qemu_stm32.h
+1
-0
src/boards/board_simavr.cc
src/boards/board_simavr.cc
+14
-0
src/boards/board_simavr.h
src/boards/board_simavr.h
+1
-0
src/boards/board_ucsim.h
src/boards/board_ucsim.h
+1
-0
src/picsimlab1.cc
src/picsimlab1.cc
+1
-8
No files found.
src/boards/board.h
View file @
ba2fe1d1
...
@@ -208,6 +208,11 @@ class board
...
@@ -208,6 +208,11 @@ class board
*/
*/
virtual
int
DebugInit
(
int
dtyppe
)
=
0
;
virtual
int
DebugInit
(
int
dtyppe
)
=
0
;
/**
* @brief Get debug interface name
*/
virtual
String
GetDebugName
(
void
)
=
0
;
/**
/**
* @brief debug step (pooling)
* @brief debug step (pooling)
*/
*/
...
...
src/boards/board_Breadboard.cc
View file @
ba2fe1d1
...
@@ -534,6 +534,21 @@ cboard_Breadboard::DebugInit(int dtyppe)
...
@@ -534,6 +534,21 @@ cboard_Breadboard::DebugInit(int dtyppe)
return
0
;
return
0
;
}
}
String
cboard_Breadboard
::
GetDebugName
(
void
)
{
switch
(
ptype
)
{
case
_PIC
:
return
board_picsim
::
GetDebugName
();
break
;
case
_AVR
:
return
board_simavr
::
GetDebugName
();
break
;
}
return
""
;
}
void
void
cboard_Breadboard
::
DebugLoop
(
void
)
cboard_Breadboard
::
DebugLoop
(
void
)
{
{
...
...
src/boards/board_Breadboard.h
View file @
ba2fe1d1
...
@@ -42,6 +42,7 @@ class cboard_Breadboard:public board_picsim, public board_simavr
...
@@ -42,6 +42,7 @@ class cboard_Breadboard:public board_picsim, public board_simavr
lxBitmap
*
micbmp
;
lxBitmap
*
micbmp
;
public:
public:
int
DebugInit
(
int
dtyppe
);
int
DebugInit
(
int
dtyppe
);
String
GetDebugName
(
void
);
void
DebugLoop
(
void
);
void
DebugLoop
(
void
);
int
CpuInitialized
(
void
);
int
CpuInitialized
(
void
);
void
MSetSerial
(
const
char
*
port
);
void
MSetSerial
(
const
char
*
port
);
...
...
src/boards/board_picsim.h
View file @
ba2fe1d1
...
@@ -34,6 +34,7 @@ class board_picsim: virtual public board
...
@@ -34,6 +34,7 @@ class board_picsim: virtual public board
{
{
public:
public:
int
DebugInit
(
int
dtyppe
);
int
DebugInit
(
int
dtyppe
);
String
GetDebugName
(
void
){
return
"MDB"
;};
void
DebugLoop
(
void
);
void
DebugLoop
(
void
);
int
CpuInitialized
(
void
);
int
CpuInitialized
(
void
);
void
MSetSerial
(
const
char
*
port
);
void
MSetSerial
(
const
char
*
port
);
...
...
src/boards/board_qemu_stm32.h
View file @
ba2fe1d1
...
@@ -34,6 +34,7 @@ class board_qemu_stm32: virtual public board
...
@@ -34,6 +34,7 @@ class board_qemu_stm32: virtual public board
public:
public:
board_qemu_stm32
(
void
);
board_qemu_stm32
(
void
);
int
DebugInit
(
int
dtyppe
);
int
DebugInit
(
int
dtyppe
);
String
GetDebugName
(
void
){
return
"GDB"
;};
void
DebugLoop
(
void
);
void
DebugLoop
(
void
);
int
CpuInitialized
(
void
);
int
CpuInitialized
(
void
);
void
MSetSerial
(
const
char
*
port
);
void
MSetSerial
(
const
char
*
port
);
...
...
src/boards/board_simavr.cc
View file @
ba2fe1d1
...
@@ -383,6 +383,20 @@ board_simavr::DebugInit(int dtyppe)
...
@@ -383,6 +383,20 @@ board_simavr::DebugInit(int dtyppe)
}
}
}
}
String
board_simavr
::
GetDebugName
(
void
)
{
if
(
avr_debug_type
)
{
return
"GDB"
;
}
else
{
return
"MDB"
;
}
}
void
void
board_simavr
::
DebugLoop
(
void
)
board_simavr
::
DebugLoop
(
void
)
{
{
...
...
src/boards/board_simavr.h
View file @
ba2fe1d1
...
@@ -46,6 +46,7 @@ class board_simavr: virtual public board
...
@@ -46,6 +46,7 @@ class board_simavr: virtual public board
public:
public:
board_simavr
(
void
);
//Called once on board creation
board_simavr
(
void
);
//Called once on board creation
int
DebugInit
(
int
dtyppe
);
int
DebugInit
(
int
dtyppe
);
String
GetDebugName
(
void
);
void
DebugLoop
(
void
);
void
DebugLoop
(
void
);
int
CpuInitialized
(
void
);
int
CpuInitialized
(
void
);
void
MSetSerial
(
const
char
*
port
);
void
MSetSerial
(
const
char
*
port
);
...
...
src/boards/board_ucsim.h
View file @
ba2fe1d1
...
@@ -34,6 +34,7 @@ class board_ucsim: virtual public board
...
@@ -34,6 +34,7 @@ class board_ucsim: virtual public board
public:
public:
board_ucsim
(
void
);
board_ucsim
(
void
);
int
DebugInit
(
int
dtyppe
);
int
DebugInit
(
int
dtyppe
);
String
GetDebugName
(
void
){
return
"uCsim"
;};
void
DebugLoop
(
void
);
void
DebugLoop
(
void
);
int
CpuInitialized
(
void
);
int
CpuInitialized
(
void
);
void
MSetSerial
(
const
char
*
port
);
void
MSetSerial
(
const
char
*
port
);
...
...
src/picsimlab1.cc
View file @
ba2fe1d1
...
@@ -478,14 +478,7 @@ CPWindow1::Configure(CControl * control, const char * home)
...
@@ -478,14 +478,7 @@ CPWindow1::Configure(CControl * control, const char * home)
}
}
else
else
{
{
if
(
ret
)
statusbar1
.
SetField
(
1
,
status
+
lxT
(
"Debug: "
)
+
pboard
->
GetDebugName
()
+
":"
+
itoa
(
debug_port
));
{
statusbar1
.
SetField
(
1
,
status
+
lxT
(
"Debug: GDB:"
)
+
itoa
(
debug_port
));
}
else
{
statusbar1
.
SetField
(
1
,
status
+
lxT
(
"Debug: MDB:"
)
+
itoa
(
debug_port
));
}
}
}
}
}
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment