mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-08 22:16:10 +02:00
Added a major refactoring to include Emulated interface.
It works in combination with virtualsmarcard module (vpcd). It properly installed, it creates a virtual reader that can be interfaced via PCSC+vcpd. At user app level, it has no difference of having a physical smart card. At this moment, it only works emulating a CCID interface. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -17,24 +17,31 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
include(pico_sdk_import.cmake)
|
||||
|
||||
project(pico_hsm_sdk C CXX ASM)
|
||||
|
||||
project(pico_hsm_sdk C)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
if(ENABLE_EMULATION)
|
||||
else()
|
||||
include(pico_sdk_import.cmake)
|
||||
pico_sdk_init()
|
||||
endif()
|
||||
|
||||
add_executable(pico_hsm_sdk_exe)
|
||||
|
||||
include(pico_hsm_sdk.cmake)
|
||||
set(USB_ITF_HID 1)
|
||||
set(USB_ITF_CCID 1)
|
||||
|
||||
include(pico_hsm_sdk_import.cmake)
|
||||
|
||||
target_compile_options(pico_hsm_sdk_exe PUBLIC
|
||||
-Wall
|
||||
-Werror
|
||||
)
|
||||
|
||||
if(ENABLE_EMULATION)
|
||||
else()
|
||||
pico_add_extra_outputs(pico_hsm_sdk_exe)
|
||||
|
||||
target_link_libraries(pico_hsm_sdk_exe PRIVATE pico_hsm_sdk pico_stdlib pico_multicore hardware_flash hardware_sync hardware_adc pico_unique_id hardware_rtc tinyusb_device tinyusb_board)
|
||||
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user