17 lines
795 B
CMake
17 lines
795 B
CMake
# Add set(CONFIG_USE_middleware_motor_control_pmsm_frac_template true) in config.cmake to use this component
|
|
|
|
include_guard(GLOBAL)
|
|
message("${CMAKE_CURRENT_LIST_FILE} component is included.")
|
|
|
|
if((CONFIG_CORE STREQUAL cm33))
|
|
|
|
add_config_file(${CMAKE_CURRENT_LIST_DIR}/pmsm/pmsm_frac/mc_cfg_template/m1_pmsm_appconfig.h "" middleware_motor_control_pmsm_frac_template)
|
|
add_config_file(${CMAKE_CURRENT_LIST_DIR}/pmsm/pmsm_frac/mc_cfg_template/mc_periph_init.c "" middleware_motor_control_pmsm_frac_template)
|
|
add_config_file(${CMAKE_CURRENT_LIST_DIR}/pmsm/pmsm_frac/mc_cfg_template/mc_periph_init.h "" middleware_motor_control_pmsm_frac_template)
|
|
|
|
else()
|
|
|
|
message(SEND_ERROR "middleware_motor_control_pmsm_frac_template dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
|
|
|
|
endif()
|