From a68b646edffc0391a8c4a3df18f7a68a7f16c4ee 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 8eaf9cd..c8acdec 100644 --- a/hw/application_fpga/fw/testapp/main.c +++ b/hw/application_fpga/fw/testapp/main.c @@ -266,9 +266,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(&mode, &mode_bytes_left); + if (in == '+') { + syscall(TK1_SYSCALL_RESET, 0); + } writebyte(MODE_CDC); writebyte(1);