From f17a327766a8c6830f9d04908cb832cfc1597d66 Mon Sep 17 00:00:00 2001 From: whowechina Date: Thu, 4 Apr 2024 11:01:37 +0800 Subject: [PATCH] Integrating AIC pico library --- .gitmodules | 3 +++ firmware/CMakeLists.txt | 5 ++++- firmware/modules/aic_pico | 1 + firmware/src/CMakeLists.txt | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 160000 firmware/modules/aic_pico diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0aadfd0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "aic_pico"] + path = firmware/modules/aic_pico + url = https://github.com/whowechina/aic_pico diff --git a/firmware/CMakeLists.txt b/firmware/CMakeLists.txt index b328053..9604ab1 100644 --- a/firmware/CMakeLists.txt +++ b/firmware/CMakeLists.txt @@ -3,9 +3,12 @@ cmake_minimum_required(VERSION 3.12) # Pull in SDK (must set be before project) include(pico_sdk_import.cmake) -project(iidx_pico C CXX ASM) +project(mai_pico C CXX ASM) set(CMAKE_C_STANDARD 11) pico_sdk_init() +add_subdirectory(modules/aic_pico/firmware aic) +include_directories(modules/aic_pico/firmware/include) + add_subdirectory(src) diff --git a/firmware/modules/aic_pico b/firmware/modules/aic_pico new file mode 160000 index 0000000..b69e562 --- /dev/null +++ b/firmware/modules/aic_pico @@ -0,0 +1 @@ +Subproject commit b69e562e40aa8ec944c7d31f154a7701ecfec881 diff --git a/firmware/src/CMakeLists.txt b/firmware/src/CMakeLists.txt index da7d95c..5ed911e 100644 --- a/firmware/src/CMakeLists.txt +++ b/firmware/src/CMakeLists.txt @@ -19,6 +19,7 @@ function(make_firmware board board_def) ${LWIP_ROOT}/src/include) target_link_libraries(${board} PRIVATE + aic pico_multicore pico_stdlib hardware_pio hardware_pwm hardware_flash hardware_adc hardware_i2c hardware_watchdog pico_unique_id tinyusb_device tinyusb_board)