From c0a98196b6192dedd06cd99f96bc1ce8440db12e 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 c593547..67e4115 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); } }