Skip to content

Commit c13ac70

Browse files
committed
ci: check register half word
1 parent 79fd265 commit c13ac70

File tree

23 files changed

+94
-44
lines changed

23 files changed

+94
-44
lines changed

components/esp_adc/test_apps/adc/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ if(CONFIG_COMPILER_DUMP_RTL_FILES)
2121
DEPENDS ${elf}
2222
)
2323
endif()
24+
25+
message(STATUS "Checking adc registers are not read-write by half-word")
26+
include($ENV{IDF_PATH}/tools/ci/check_register_rw_half_word.cmake)
27+
check_register_rw_half_word(SOC_MODULES "rtc_io" "sens" "syscon" "rtc_cntl" "apb_saradc"
28+
"system" "pmu" "pcr" "hp_sys_clkrst" "lpperi" "lp_adc"
29+
HAL_MODULES "adc")

components/esp_driver_ana_cmpr/test_apps/analog_comparator/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ if(CONFIG_COMPILER_DUMP_RTL_FILES)
1919
DEPENDS ${elf}
2020
)
2121
endif()
22+
23+
message(STATUS "Checking analog comparator registers are not read-write by half-word")
24+
include($ENV{IDF_PATH}/tools/ci/check_register_rw_half_word.cmake)
25+
check_register_rw_half_word(SOC_MODULES "gpio_ext" "lp_system" "gpio"
26+
HAL_MODULES "ana_cmpr")

components/esp_driver_cam/test_apps/csi/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ set(COMPONENTS main)
66

77
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
88
project(test_csi)
9+
10+
11+
message(STATUS "Checking camera registers are not read-write by half-word")
12+
include($ENV{IDF_PATH}/tools/ci/check_register_rw_half_word.cmake)
13+
check_register_rw_half_word(SOC_MODULES "lcd_cam" "hp_sys_clkrst" "*csi*"
14+
HAL_MODULES "cam" "*csi*")

components/esp_driver_dac/test_apps/dac/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ if(CONFIG_COMPILER_DUMP_RTL_FILES)
1919
DEPENDS ${elf}
2020
)
2121
endif()
22+
23+
message(STATUS "Checking dac registers are not read-write by half-word")
24+
include($ENV{IDF_PATH}/tools/ci/check_register_rw_half_word.cmake)
25+
check_register_rw_half_word(SOC_MODULES "rtc_io" "sens" "apb_saradc"
26+
HAL_MODULES "dac")

components/esp_driver_i2s/test_apps/i2s/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ if(CONFIG_COMPILER_DUMP_RTL_FILES)
1919
DEPENDS ${elf}
2020
)
2121
endif()
22+
23+
message(STATUS "Checking i2s registers are not read-write by half-word")
24+
include($ENV{IDF_PATH}/tools/ci/check_register_rw_half_word.cmake)
25+
check_register_rw_half_word(SOC_MODULES "i2s" "pcr" "hp_sys_clkrst"
26+
HAL_MODULES "i2s")

components/esp_driver_i2s/test_apps/lp_i2s/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ set(COMPONENTS main)
66

77
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
88
project(lp_i2s_test)
9+
10+
message(STATUS "Checking lp_i2s registers are not read-write by half-word")
11+
include($ENV{IDF_PATH}/tools/ci/check_register_rw_half_word.cmake)
12+
check_register_rw_half_word(SOC_MODULES "lp_i2s" "pcr" "hp_sys_clkrst"
13+
HAL_MODULES "lp_i2s")

components/esp_driver_isp/test_apps/isp/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ set(COMPONENTS main)
66

77
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
88
project(test_isp)
9+
10+
11+
message(STATUS "Checking isp registers are not read-write by half-word")
12+
include($ENV{IDF_PATH}/tools/ci/check_register_rw_half_word.cmake)
13+
check_register_rw_half_word(SOC_MODULES "isp" "hp_sys_clkrst"
14+
HAL_MODULES "isp")

components/esp_driver_spi/test_apps/master/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ if(CONFIG_COMPILER_DUMP_RTL_FILES)
1919
DEPENDS ${elf}
2020
)
2121
endif()
22+
23+
message(STATUS "Checking spi registers are not read-write by half-word")
24+
include($ENV{IDF_PATH}/tools/ci/check_register_rw_half_word.cmake)
25+
check_register_rw_half_word(SOC_MODULES "spi" "syscon" "pcr" "system" "hp_sys_clkrst"
26+
HAL_MODULES "spi")

components/esp_driver_touch_sens/test_apps/touch_sens/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ if(CONFIG_COMPILER_DUMP_RTL_FILES)
2020
DEPENDS ${elf}
2121
)
2222
endif()
23+
24+
message(STATUS "Checking touch sensor registers are not read-write by half-word")
25+
include($ENV{IDF_PATH}/tools/ci/check_register_rw_half_word.cmake)
26+
check_register_rw_half_word(SOC_MODULES "rtc_cntl" "sens" "rtc_io" "lp_analog_peri"
27+
"lp_clkrst" "lp_system" "lpperi" "touch" "pmu"
28+
HAL_MODULES "touch_sensor")

components/esp_hw_support/esp_clock_output.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "hal/clk_tree_ll.h"
1818
#include "soc/soc_caps.h"
1919
#include "soc/io_mux_reg.h"
20+
#include "esp_private/gpio.h"
2021

2122
typedef struct clkout_channel_handle {
2223
bool is_mapped;

0 commit comments

Comments
 (0)