From bd47f9713cb449452a957706c242c05d3e7b8b8c Mon Sep 17 00:00:00 2001 From: fbuirey Date: Tue, 16 Dec 2025 10:49:13 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20support=20d'un=20bouton=20customis?= =?UTF-8?q?=C3=A9=20pour=20Pico=20RP2350?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .gitmodules | 2 +- CMakeLists.txt | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c795b05 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index 852c02c..216b363 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "pico-keys-sdk"] path = pico-keys-sdk - url = https://github.com/polhenarejos/pico-keys-sdk + url = git@github.com:fbuirey/pico-keys-sdk.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 1cc83a2..497a4f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,6 +131,12 @@ target_compile_options(pico_fido PUBLIC -Werror ) + +if(CUST_BUTTON_PIN) + target_compile_definitions(pico_fido PUBLIC CUST_BUTTON_PIN=${CUST_BUTTON_PIN}) +endif() +message(STATUS "CUST_BUTTON_PIN is set to: ${CUST_BUTTON_PIN}") + string(FIND ${CMAKE_C_COMPILER} ":" COMPILER_COLON) if (${COMPILER_COLON} GREATER_EQUAL 0) target_compile_options(pico_fido PUBLIC