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
5db6c60c
Commit
5db6c60c
authored
Aug 05, 2020
by
lcgamboa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new: New board Curiosity HPC
parent
cc4ab5b1
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
770 additions
and
0 deletions
+770
-0
share/boards/Curiosity_HPC/board.png
share/boards/Curiosity_HPC/board.png
+0
-0
share/boards/Curiosity_HPC/input.map
share/boards/Curiosity_HPC/input.map
+15
-0
share/boards/Curiosity_HPC/output.map
share/boards/Curiosity_HPC/output.map
+16
-0
src/boards/board_Curiosity_HPC.cc
src/boards/board_Curiosity_HPC.cc
+644
-0
src/boards/board_Curiosity_HPC.h
src/boards/board_Curiosity_HPC.h
+95
-0
src/boards/board_uCboard.cc
src/boards/board_uCboard.cc
+0
-0
src/boards/board_uCboard.h
src/boards/board_uCboard.h
+0
-0
No files found.
share/boards/Curiosity_HPC/board.png
0 → 100644
View file @
5db6c60c
296 KB
share/boards/Curiosity_HPC/input.map
0 → 100644
View file @
5db6c60c
<img src="[Curiosity_HPC] (imported)" width="700" height="386" border="0" usemap="#map" />
<map name="map">
<!-- #$-:Image map file created by GIMP Image Map plug-in -->
<!-- #$-:GIMP Image Map plug-in by Maurits Rijk -->
<!-- #$-:Please do not edit lines starting with "#$" -->
<!-- #$VERSION:2.3 -->
<!-- #$AUTHOR:medelk -->
<area shape="rect" coords="64,63,162,81" href="I_ICSP" />
<area shape="rect" coords="125,114,155,145" href="I_RST" />
<area shape="rect" coords="51,105,100,122" href="I_JMP" />
<area shape="rect" coords="3,178,34,227" href="I_PWR" />
<area shape="rect" coords="259,322,293,362" href="I_S1" />
<area shape="rect" coords="355,324,387,362" href="I_S2" />
</map>
share/boards/Curiosity_HPC/output.map
0 → 100644
View file @
5db6c60c
<img src="[Curiosity_HPC] (imported)" width="700" height="386" border="0" usemap="#map" />
<map name="map">
<!-- #$-:Image map file created by GIMP Image Map plug-in -->
<!-- #$-:GIMP Image Map plug-in by Maurits Rijk -->
<!-- #$-:Please do not edit lines starting with "#$" -->
<!-- #$VERSION:2.3 -->
<!-- #$AUTHOR:medelk -->
<area shape="rect" coords="289,246,294,263" href="O_D5" />
<area shape="rect" coords="368,246,373,263" href="O_D2" />
<area shape="rect" coords="75,353,100,360" href="O_D6" />
<area shape="rect" coords="47,104,101,120" href="O_JMP" />
<area shape="rect" coords="314,246,319,263" href="O_D4" />
<area shape="rect" coords="341,245,346,262" href="O_D3" />
<area shape="rect" coords="145,354,170,361" href="O_D7" />
</map>
src/boards/board_Curiosity_HPC.cc
0 → 100644
View file @
5db6c60c
This diff is collapsed.
Click to expand it.
src/boards/board_Curiosity_HPC.h
0 → 100644
View file @
5db6c60c
/* ########################################################################
PICsimLab - PIC laboratory simulator
########################################################################
Copyright (c) : 2020 El-khadraouy Mohammed <mohammed.el-khadraouy@ecole.ensicaen.fr>
Copyright (c) : 2015-2018 Luis Claudio Gambôa Lopes
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
For e-mail suggestions : lcgamboa@yahoo.com
######################################################################## */
#ifndef BOARD_Curiosity_HPC_H
#define BOARD_Curiosity_HPC_H
#include<lxrad.h>
#include "board_picsim.h"
//New board Class derived from board class defined in board.h
class
cboard_Curiosity_HPC
:
public
board_picsim
{
private:
int
p_BT1
;
// Button S1
int
p_BT2
;
// Button S2
int
jmp
[
1
];
//jumper
//controls to be added in simulator window
CScroll
*
scroll1
;
//scroll for analog input AN0
CGauge
*
gauge1
;
//gauge to show mean value of RA4
CGauge
*
gauge2
;
//gauge to show mean value of RA5
CGauge
*
gauge3
;
//gauge to show mean value of RA6
CGauge
*
gauge4
;
//gauge to show mean value of RA7
CLabel
*
label1
;
//label of scroll AN4
CLabel
*
label2
;
//label of gauge RA4
CLabel
*
label3
;
//label of gauge RA5
CLabel
*
label4
;
//label of gauge RA6
CLabel
*
label5
;
//label of gauge RA7
public:
//Constructor called once on board creation
cboard_Curiosity_HPC
(
void
);
//Destructor called once on board destruction
~
cboard_Curiosity_HPC
(
void
);
//Called ever 100ms to draw board
void
Draw
(
CDraw
*
draw
,
double
scale
);
void
Run_CPU
(
void
);
//Return a list of board supported microcontrollers
String
GetSupportedDevices
(
void
){
return
lxT
(
"PIC16F1619,PIC18F27K40,"
);};
//Return the filename of board picture
String
GetPictureFileName
(
void
){
return
lxT
(
"Curiosity_HPC/board.png"
);};
//Return the filename of board picture input map
String
GetInputMapFile
(
void
){
return
lxT
(
"Curiosity_HPC/input.map"
);};
//Return the filename of board picture output map
String
GetOutputMapFile
(
void
){
return
lxT
(
"Curiosity_HPC/output.map"
);};
//Reset board status
void
Reset
(
void
);
//Event on the board
void
EvMouseButtonPress
(
uint
button
,
uint
x
,
uint
y
,
uint
state
);
//Event on the board
void
EvMouseButtonRelease
(
uint
button
,
uint
x
,
uint
y
,
uint
state
);
//Event on the board
void
EvKeyPress
(
uint
key
,
uint
mask
);
//Event on the board
void
EvKeyRelease
(
uint
key
,
uint
mask
);
void
EvOnShow
(
void
){};
//Called ever 1s to refresh status
void
RefreshStatus
(
void
);
//Called to save board preferences in configuration file
void
WritePreferences
(
void
);
//Called whe configuration file load preferences
void
ReadPreferences
(
char
*
name
,
char
*
value
);
//return the input ids numbers of names used in input map
unsigned
short
get_in_id
(
char
*
name
);
//return the output ids numbers of names used in output map
unsigned
short
get_out_id
(
char
*
name
);
};
#endif
/* BOARD_Curiosity_HPC_H */
\ No newline at end of file
src/boards/board_
s51
.cc
→
src/boards/board_
uCboard
.cc
View file @
5db6c60c
File moved
src/boards/board_
s51
.h
→
src/boards/board_
uCboard
.h
View file @
5db6c60c
File moved
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