aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-14 11:08:28 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-14 11:08:28 +0100
commitf71d28a3107bf14ad3fa22109a34c746911b3f61 (patch)
tree4ab337b92db01f69cb6e264f5ff8180347968af3 /qtmips_machine
parent7341a3329994bf655f2490c4e9758929bd95c23f (diff)
downloadqtmips-f71d28a3107bf14ad3fa22109a34c746911b3f61.tar.gz
qtmips-f71d28a3107bf14ad3fa22109a34c746911b3f61.tar.bz2
qtmips-f71d28a3107bf14ad3fa22109a34c746911b3f61.zip
Implemented graphic representation and update of line and RGB LEDs.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/peripspiled.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qtmips_machine/peripspiled.cpp b/qtmips_machine/peripspiled.cpp
index f811714..03b74f9 100644
--- a/qtmips_machine/peripspiled.cpp
+++ b/qtmips_machine/peripspiled.cpp
@@ -61,12 +61,15 @@ bool PeripSpiLed::wword(std::uint32_t address, std::uint32_t value) {
switch (address) {
case SPILED_REG_LED_LINE_o:
spiled_reg_led_line = value;
+ emit led_line_changed(value);
break;
case SPILED_REG_LED_RGB1_o:
spiled_reg_led_rgb1 = value;
+ emit led_rgb1_changed(value);
break;
case SPILED_REG_LED_RGB2_o:
spiled_reg_led_rgb2 = value;
+ emit led_rgb2_changed(value);
break;
default:
break;