##// END OF EJS Templates
removed warnings
removed warnings

File last commit:

r6:7a60353699c8 default
r13:8ee59f35313b default
Show More
mainwindow.cpp
25 lines | 860 B | text/x-c | CppLexer
Jeandet Alexis
Cleaned path to use as hg submodule of lppmon_sdk or any other project.
r5 #include "mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
qint32 baseAddress = 0x8000100;
added soc viewer.
r6 qint32 baseAddress2 = 0x8000200;
// testWidget = new peripheralWidget("UART1",baseAddress,this);
// for(int i=0;i<10;i++)
// testWidget->addRegister(QString("REG%1").arg((uint)i),baseAddress+(i*4));
socViewer = new socRegsViewer("leon 3");
socViewer->addPeripheral(new peripheralWidget("UART1",baseAddress,this));
socViewer->addPeripheral(new peripheralWidget("UART2",baseAddress2,this));
Jeandet Alexis
Cleaned path to use as hg submodule of lppmon_sdk or any other project.
r5 for(int i=0;i<10;i++)
added soc viewer.
r6 {
socViewer->peripheral(0)->addRegister(QString("REG%1").arg((uint)i),baseAddress+(i*4));
socViewer->peripheral(1)->addRegister(QString("REG%1").arg((uint)i),baseAddress2+(i*4));
}
this->setCentralWidget(socViewer);
Jeandet Alexis
Cleaned path to use as hg submodule of lppmon_sdk or any other project.
r5 }
MainWindow::~MainWindow()
{
}