Skip to content

Commit

Permalink
Latest MP1 system.c needs clocks value that are defaulted by HAL
Browse files Browse the repository at this point in the history
  • Loading branch information
xanthio committed May 12, 2024
1 parent d92c104 commit ed42cb8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/fetch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
4 changes: 4 additions & 0 deletions tests/hal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit ed42cb8

Please sign in to comment.