From c8f43bb0ef2ee2dd48782dab68405ec44a077cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20=C3=85gren?= Date: Tue, 4 Feb 2025 09:09:15 +0100 Subject: [PATCH] PoC: testapp: Call reset syscall --- hw/application_fpga/fw/testapp/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/application_fpga/fw/testapp/main.c b/hw/application_fpga/fw/testapp/main.c index c593547c..67e41158 100644 --- a/hw/application_fpga/fw/testapp/main.c +++ b/hw/application_fpga/fw/testapp/main.c @@ -286,9 +286,12 @@ int main(void) } puts("\r\n"); - puts("Now echoing what you type...\r\n"); + puts("Now echoing what you type...Type + to reset device\r\n"); for (;;) { in = readbyte(); // blocks + if (in == '+') { + syscall(TK1_SYSCALL_RESET, 0); + } writebyte(in); } }