mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-05-02 06:06:24 -04:00
testapp: Fix illegal TK1_SYSCALL_RESET call
This commit is contained in:
parent
e1e964082f
commit
12a4575911
1 changed files with 5 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <tkey/tk1_mem.h>
|
||||
|
||||
#include "../tk1/proto.h"
|
||||
#include "../tk1/resetinfo.h"
|
||||
#include "../tk1/syscall_num.h"
|
||||
#include "syscall.h"
|
||||
|
||||
|
@ -258,7 +259,10 @@ int main(void)
|
|||
}
|
||||
|
||||
if (in == '+') {
|
||||
syscall(TK1_SYSCALL_RESET, 0, 0, 0);
|
||||
struct reset rst;
|
||||
memset(&rst, 0, sizeof(rst));
|
||||
rst.type = START_DEFAULT;
|
||||
syscall(TK1_SYSCALL_RESET, (uint32_t)&rst, 0, 0);
|
||||
}
|
||||
|
||||
write(IO_CDC, &in, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue