From ed42cb8dcda73794f8f2d54728baf215b072f87b Mon Sep 17 00:00:00 2001 From: Maxime JOURDAN - XANTHIO Date: Sun, 12 May 2024 14:21:06 +0200 Subject: [PATCH] Latest MP1 system.c needs clocks value that are defaulted by HAL --- tests/fetch/CMakeLists.txt | 5 +++++ tests/hal/CMakeLists.txt | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/tests/fetch/CMakeLists.txt b/tests/fetch/CMakeLists.txt index 641e4776..2c2f1e64 100644 --- a/tests/fetch/CMakeLists.txt +++ b/tests/fetch/CMakeLists.txt @@ -33,4 +33,9 @@ foreach(FAMILY ${TEST_FAMILIES}) add_executable(fetch-test-${FAMILY} ${SOURCES}) target_link_libraries(fetch-test-${FAMILY} STM32::NoSys HAL::STM32::${FAMILY}${CORE}::CORTEX CMSIS::STM32::${DEVICE}${CORE}) + + if(${FAMILY} STREQUAL "MP1") + target_compile_definitions(fetch-test-${FAMILY} PRIVATE USE_HAL_DRIVER) + endif() + endforeach() diff --git a/tests/hal/CMakeLists.txt b/tests/hal/CMakeLists.txt index c1f5da7b..840de8cd 100644 --- a/tests/hal/CMakeLists.txt +++ b/tests/hal/CMakeLists.txt @@ -36,6 +36,10 @@ foreach(FAMILY ${TEST_FAMILIES}) add_executable(hal-test-${FAMILY} ${SOURCES}) target_compile_definitions(hal-test-${FAMILY} PRIVATE USE_FULL_LL_DRIVER) + if(${FAMILY} STREQUAL "MP1") + target_compile_definitions(hal-test-${FAMILY} PRIVATE USE_HAL_DRIVER) + endif() + foreach(DRIVER ${HAL_DRIVERS_${FAMILY}}) string(TOUPPER ${DRIVER} DRIVER) target_link_libraries(hal-test-${FAMILY} HAL::STM32::${FAMILY}${CORE}::${DRIVER})