From 13f40561ab510de458aafd88267ceb8531d5db51 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] 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 cc0b3f3..4126f3b 100644 --- a/hw/application_fpga/fw/testapp/main.c +++ b/hw/application_fpga/fw/testapp/main.c @@ -249,9 +249,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);