aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/peripheralsdock.cpp
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-13 21:59:29 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-13 21:59:29 +0100
commit3442b5fdeb4f8dfef38977078c5c6e801dcc2b51 (patch)
tree830a084743461bf4aab21554889f50886507ef7a /qtmips_gui/peripheralsdock.cpp
parentf17eedb8856ae568ebb9b45b367ef6edf1bb7318 (diff)
downloadqtmips-3442b5fdeb4f8dfef38977078c5c6e801dcc2b51.tar.gz
qtmips-3442b5fdeb4f8dfef38977078c5c6e801dcc2b51.tar.bz2
qtmips-3442b5fdeb4f8dfef38977078c5c6e801dcc2b51.zip
Implemented three dials equivalent to MZ_APO RGB dials.
Tested with code compiled by Linux PIC based GCC compiler with calling musl-libc sprintf function. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/peripheralsdock.cpp')
-rw-r--r--qtmips_gui/peripheralsdock.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qtmips_gui/peripheralsdock.cpp b/qtmips_gui/peripheralsdock.cpp
index ad423a0..4494948 100644
--- a/qtmips_gui/peripheralsdock.cpp
+++ b/qtmips_gui/peripheralsdock.cpp
@@ -39,11 +39,13 @@ PeripheralsDock::PeripheralsDock(QWidget *parent, QSettings *settings) : QDockWi
top_widget = new QWidget(this);
setWidget(top_widget);
layout_box = new QVBoxLayout(top_widget);
+ periph_view = new PeripheralsView(0);
+ layout_box->addWidget(periph_view);
setObjectName("Peripherals");
setWindowTitle("Peripherals");
}
-void PeripheralsDock::setup(const machine::QtMipsMachine *machine) {
-
+void PeripheralsDock::setup(const machine::PeripSpiLed *perip_spi_led) {
+ periph_view->setup(perip_spi_led);
}