822 FPGA rnv init

This commit is contained in:
wuzhenghui
2021-09-02 20:48:39 +08:00
committed by laokaiyao
parent b9a84b96ce
commit 968c42d88c
30 changed files with 9776 additions and 882 deletions

View File

@@ -16,4 +16,14 @@ set(srcs
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}")
target_sources(${COMPONENT_LIB} PRIVATE "${srcs}")
target_include_directories(${COMPONENT_LIB} PUBLIC . include)
if(target STREQUAL "esp32h2")
if(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1)
set(inc_file "include/soc/rev1")
elseif(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_2)
set(inc_file "include/soc/rev2")
endif()
target_include_directories(${COMPONENT_LIB} PUBLIC . include ${inc_file})
else()
target_include_directories(${COMPONENT_LIB} PUBLIC . include)
endif()