mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-11-27 02:46:24 -05:00
PoC: testapp: Call reset syscall
This commit is contained in:
parent
f34b4c3eb1
commit
c0a98196b6
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue