2020-09-25 01:57:52 -04:00
|
|
|
idf_component_register(SRCS "lldesc.c"
|
2022-04-28 05:44:59 -04:00
|
|
|
"dport_access_common.c"
|
2020-09-17 08:05:23 -04:00
|
|
|
INCLUDE_DIRS include
|
2021-03-10 06:33:24 -05:00
|
|
|
LDFRAGMENTS "linker.lf")
|
2018-03-22 02:27:10 -04:00
|
|
|
|
2020-09-25 03:23:52 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
add_subdirectory(${target})
|
2021-07-21 09:09:45 -04:00
|
|
|
|
2023-02-22 23:35:52 -05:00
|
|
|
# For an embedded system, the MMU page size should always be defined statically
|
|
|
|
# For IDF, we define it according to the Flash size that user selects
|
|
|
|
# Replace this value in an adaptive way, if Kconfig isn't available on your platform
|
|
|
|
target_compile_definitions(${COMPONENT_LIB} INTERFACE SOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE)
|
|
|
|
|
2021-07-21 09:09:45 -04:00
|
|
|
target_linker_script(${COMPONENT_LIB} INTERFACE "${target}/ld/${target}.peripherals.ld")
|