Feature/custom_button #223

Closed
fbuirey wants to merge 2 commits from feature/custom_button into main
4 changed files with 9 additions and 2 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