From 1889bd9353b309ea54f3543f5d609015fec5b73c Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 25 Feb 2019 14:57:00 +0100 Subject: 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 --- qtmips_gui/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qtmips_gui/mainwindow.cpp') 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 -- cgit v1.2.3