mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-12-15 16:49:15 -05:00
fpga/fw: Introduce syscall TK1_SYSCALL_GET_VIDPID
Introduce new syscall TK1_SYSCALL_GET_VIDPID to get Vendor ID and Product ID from the protected Unique Device Identification number. UDI is protected from device apps to protect the serial number, so apps won't know the exact TKey they are running on other than the CDI. It may, however, be important to know what *kind* of TKey they are running on, so we want to expose the Vendor ID and Product ID. - fpga: Allow UDI to be read when doing syscalls. - Add the new syscall to firmware. - Add test to testapp directly after negative test of reading UDI to read out VID/PID through a syscall.
This commit is contained in:
parent
13f40561ab
commit
df04fd56dd
3 changed files with 15 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
enum syscall_num {
|
||||
TK1_SYSCALL_RESET = 1,
|
||||
TK1_SYSCALL_SET_LED = 10,
|
||||
TK1_SYSCALL_GET_VIDPID = 12,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue