feat: config manager

This commit is contained in:
awalol
2026-05-05 01:17:15 +08:00
parent 572d017ec5
commit fb8624b61b
9 changed files with 263 additions and 15 deletions
+4 -1
View File
@@ -44,6 +44,8 @@ add_executable(ds5-bridge
src/usb.cpp
src/audio.cpp
src/bt.cpp
src/config.cpp
src/cmd.cpp
)
# Cockos WDLResampler
@@ -67,7 +69,7 @@ target_compile_definitions(ds5-bridge PRIVATE
CYW43_LWIP=0
PICO_FLASH_ASSUME_CORE1_SAFE=1
WDL_RESAMPLE_TYPE=float
CYW43_PIO_CLOCK_DIV_INT=4
CYW43_PIO_CLOCK_DIV_INT=5
)
option(ENABLE_DSE "Enable DSE" OFF)
if(ENABLE_DSE)
@@ -98,6 +100,7 @@ target_link_libraries(ds5-bridge
pico_multicore
hardware_watchdog
hardware_timer
hardware_flash
pico_btstack_classic
# pico_cyw43_arch_threadsafe_background
pico_cyw43_arch_poll