mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-07-09 08:19:41 -04:00
testapp: Call reset syscall
This commit is contained in:
parent
4ba164732d
commit
13f40561ab
1 changed files with 4 additions and 1 deletions
|
@ -249,9 +249,12 @@ int main(void)
|
||||||
}
|
}
|
||||||
puts("\r\n");
|
puts("\r\n");
|
||||||
|
|
||||||
puts("Now echoing what you type...\r\n");
|
puts("Now echoing what you type...Type + to reset device\r\n");
|
||||||
for (;;) {
|
for (;;) {
|
||||||
in = readbyte(&mode, &mode_bytes_left);
|
in = readbyte(&mode, &mode_bytes_left);
|
||||||
|
if (in == '+') {
|
||||||
|
syscall(TK1_SYSCALL_RESET, 0);
|
||||||
|
}
|
||||||
|
|
||||||
writebyte(MODE_CDC);
|
writebyte(MODE_CDC);
|
||||||
writebyte(1);
|
writebyte(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue