aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/mainwindow.cpp
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-25 14:57:00 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-25 14:57:00 +0100
commit1889bd9353b309ea54f3543f5d609015fec5b73c (patch)
treef203dac446435aa395cadbd34ea4d347efdaacd6 /qtmips_gui/mainwindow.cpp
parentca242e325d823bc627ca4e6ff8eca24b888a6113 (diff)
downloadqtmips-1889bd9353b309ea54f3543f5d609015fec5b73c.tar.gz
qtmips-1889bd9353b309ea54f3543f5d609015fec5b73c.tar.bz2
qtmips-1889bd9353b309ea54f3543f5d609015fec5b73c.zip
Simple serial port receive implementation.
Simple polled mode serial port input implemented for serial port peripheral and for read and readv system calls. When end of input character reserve is reached for read/readv, newline is automatically appended. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/mainwindow.cpp')
-rw-r--r--qtmips_gui/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qtmips_gui/mainwindow.cpp b/qtmips_gui/mainwindow.cpp
index 253ab03..01321cf 100644
--- a/qtmips_gui/mainwindow.cpp
+++ b/qtmips_gui/mainwindow.cpp
@@ -154,6 +154,8 @@ void MainWindow::create_core(const machine::MachineConfig &config) {
osemu::OsSyscallExceptionHandler *osemu_handler = new osemu::OsSyscallExceptionHandler;
machine->register_exception_handler(machine::EXCAUSE_SYSCALL, osemu_handler);
connect(osemu_handler, SIGNAL(char_written(int,uint)), terminal, SLOT(tx_byte(int,uint)));
+ connect(osemu_handler, SIGNAL(rx_byte_pool(int,uint&,bool&)),
+ terminal, SLOT(rx_byte_pool(int,uint&,bool&)));
#endif
// Connect machine signals and slots