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

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