Skip to content

Commit

Permalink
do not use spi in v3 by default, use it only with mpu9250
Browse files Browse the repository at this point in the history
  • Loading branch information
PonomarevDA committed Dec 19, 2024
1 parent cea7821 commit 45f12a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Src/drivers/mpu9250/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Copyright (C) 2023 Dmitry Ponomarev <[email protected]>
# Distributed under the terms of the GPL v3 license, available in the file LICENSE.

# Include guard
if(SRC_DRIVERS_MPU9250_DIR)
return()
endif()
set(SRC_DRIVERS_MPU9250_DIR ${CMAKE_CURRENT_LIST_DIR})

list(APPEND APPLICATION_SOURCES
${CMAKE_CURRENT_LIST_DIR}/mpu9250.cpp
)

include(${ROOT_DIR}/Src/peripheral/spi/CMakeLists.txt)
1 change: 0 additions & 1 deletion Src/platform/stm32g0b1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ cmake_path(GET CMAKE_CURRENT_LIST_DIR PARENT_PATH PLATFORM_DIR)
cmake_path(GET PLATFORM_DIR PARENT_PATH SRC_DIR)
cmake_path(GET SRC_DIR PARENT_PATH ROOT_DIR)

include(${ROOT_DIR}/Src/peripheral/spi/CMakeLists.txt)
include(${ROOT_DIR}/Src/peripheral/adc/CMakeLists.txt)

set(EXECUTABLE ${PROJECT_NAME}.out)
Expand Down

0 comments on commit 45f12a5

Please sign in to comment.