From 96e1fe502960e397f04ffe45d3ee19cd02358fe3 Mon Sep 17 00:00:00 2001 From: morris Date: Wed, 19 Jun 2024 22:39:50 +0800 Subject: [PATCH] test(emac): register are not read/write by half-word --- components/esp_eth/test_apps/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/esp_eth/test_apps/CMakeLists.txt b/components/esp_eth/test_apps/CMakeLists.txt index 7e4b7ad8d3..66d496fdf0 100644 --- a/components/esp_eth/test_apps/CMakeLists.txt +++ b/components/esp_eth/test_apps/CMakeLists.txt @@ -8,3 +8,8 @@ project(esp_eth_test) idf_component_get_property(lib esp_eth COMPONENT_LIB) target_compile_options(${lib} PRIVATE "-fsanitize=undefined" "-fno-sanitize=shift-base") + +message(STATUS "Checking emac registers are not read-write by half-word") +include($ENV{IDF_PATH}/tools/ci/check_register_rw_half_word.cmake) +check_register_rw_half_word(SOC_MODULES "emac*" "hp_system" "hp_sys_clkrst" "lp_clkrst" + HAL_MODULES "emac*")