Commit 5db6c60c authored by lcgamboa's avatar lcgamboa

new: New board Curiosity HPC

parent cc4ab5b1
<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>
<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>
This diff is collapsed.
/* ########################################################################
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment