Skip to content

Commit

Permalink
PoC: testapp: Call reset syscall
Browse files Browse the repository at this point in the history
  • Loading branch information
agren committed Feb 4, 2025
1 parent 40954f9 commit c8f43bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hw/application_fpga/fw/testapp/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit c8f43bb

Please sign in to comment.