Ajout du support d'un bouton customisé pour Pico RP2350

This commit is contained in:
fbuirey
2025-12-16 10:49:13 +01:00
parent 7dddfd971e
commit bd47f9713c
3 changed files with 8 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
build

2
.gitmodules vendored
View File

@@ -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

View File

@@ -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