tillitis-key/hw/application_fpga/fw/tk1
Michael Cardell Widerkrantz df04fd56dd
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.
2025-02-27 14:29:07 +01:00
..
blake2s Rename to TK1 2022-10-26 09:20:02 +02:00
picorv32 fw: Add syscalls 2025-02-27 14:27:05 +01:00
assert.c fw: Remove unused header includes 2024-03-26 13:09:06 +01:00
assert.h fw: clang-tidy and splint: New make target: check 2023-03-22 11:05:32 +01:00
firmware.lds fpga/fw: Resize ROM and FW_RAM, add RESETINFO partition 2025-02-21 11:15:34 +01:00
led.c fw: Remove unusued forever_redflash() 2024-03-18 16:19:59 +01:00
led.h fw: Remove unusued forever_redflash() 2024-03-18 16:19:59 +01:00
lib.c fw: remove warning of missing prototypes when building with QEMU console 2024-09-19 16:52:04 +02:00
lib.h fw: remove warning of missing prototypes when building with QEMU console 2024-09-19 16:52:04 +02:00
main.c fw: Add syscalls 2025-02-27 14:27:05 +01:00
Makefile fw: Add syscalls 2025-02-27 14:27:05 +01:00
proto.c fw: Minimal CDC implementation of new framing protocol 2025-02-11 13:50:03 +01:00
proto.h ch552: Add new USB debug pipe (TKEYCTRL) 2025-02-11 13:50:05 +01:00
start.S fw: Add syscalls 2025-02-27 14:27:05 +01:00
state.h fw: Simplify logic 2023-03-14 11:31:47 +01:00
syscall_enable.h fw: Add syscalls 2025-02-27 14:27:05 +01:00
syscall_enable.S fw: Add syscalls 2025-02-27 14:27:05 +01:00
syscall_handler.c fpga/fw: Introduce syscall TK1_SYSCALL_GET_VIDPID 2025-02-27 14:29:07 +01:00
syscall_num.h fpga/fw: Introduce syscall TK1_SYSCALL_GET_VIDPID 2025-02-27 14:29:07 +01:00
types.h fw: Introduce an explicit state machine - changes protocol! 2022-11-28 16:17:19 +01:00