2024-12-27 10:50:32 +03:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
|
2025-01-13 11:09:58 +03:00
|
|
|
IF [%1]==[] (set params_sfunction=.\Inu\wrapper_inu_1.c)
|
|
|
|
IF NOT [%1]==[] (set params_sfunction=.\Inu\%1)
|
2024-12-27 10:50:32 +03:00
|
|
|
|
2025-01-13 11:09:58 +03:00
|
|
|
echo %params_sfunction%
|
2024-12-27 10:50:32 +03:00
|
|
|
|
|
|
|
set params_d1=-D"ML" -D"__IQMATHLIB_H_INCLUDED__" -D"_MATLAB_SIMULATOR"
|
|
|
|
set params_d2=-D"_MATLAB_FAST_SIMULATOR" -D"PROJECT_SHIP=1"
|
|
|
|
|
|
|
|
set params_i=-I"..\device_support_ml\include"^
|
|
|
|
-I"."^
|
|
|
|
-I".\Inu"^
|
|
|
|
-I".\Inu\Src\main"^
|
|
|
|
-I".\Inu\Src\N12_VectorControl"^
|
|
|
|
-I".\Inu\Src\main_matlab"^
|
|
|
|
-I".\Inu\Src\N12_Libs"^
|
|
|
|
-I".\Inu\Src\N12_Xilinx"
|
|
|
|
|
|
|
|
set params_o=-outdir "."
|
|
|
|
|
2025-01-13 11:09:58 +03:00
|
|
|
set params_wrapper_c=.\Inu\controller.c^
|
2025-01-14 13:26:48 +03:00
|
|
|
.\Inu\pwm_sim.c^
|
2025-01-13 13:05:34 +03:00
|
|
|
.\Inu\Src\main_matlab\init28335.c^
|
2025-01-13 16:58:59 +03:00
|
|
|
.\Inu\Src\main_matlab\param.c^
|
2024-12-27 10:50:32 +03:00
|
|
|
.\Inu\Src\main_matlab\main_matlab.c^
|
2025-01-13 11:09:58 +03:00
|
|
|
.\Inu\Src\main_matlab\IQmathLib_matlab.c
|
|
|
|
|
|
|
|
set params_vectorcontorl_c=.\Inu\Src\N12_VectorControl\vector_control.c^
|
|
|
|
.\Inu\Src\N12_VectorControl\teta_calc.c^
|
2024-12-27 10:50:32 +03:00
|
|
|
.\Inu\Src\N12_VectorControl\regul_power.c^
|
|
|
|
.\Inu\Src\N12_VectorControl\regul_turns.c^
|
2025-01-13 11:09:58 +03:00
|
|
|
.\Inu\Src\N12_VectorControl\abc_to_dq.c^
|
2025-01-13 13:05:34 +03:00
|
|
|
.\Inu\Src\N12_VectorControl\dq_to_alphabeta_cos.c^
|
|
|
|
.\Inu\Src\N12_VectorControl\alphabeta_to_dq.c^
|
|
|
|
.\Inu\Src\N12_VectorControl\abc_to_alphabeta.c^
|
|
|
|
.\Inu\Src\N12_VectorControl\alg_pll.c
|
2024-12-27 10:50:32 +03:00
|
|
|
|
2025-01-13 11:09:58 +03:00
|
|
|
|
|
|
|
set params_libs_c=.\Inu\Src\N12_Libs\mathlib.c^
|
|
|
|
.\Inu\Src\N12_Libs\pid_reg3.c^
|
|
|
|
.\Inu\Src\N12_Libs\rmp_cntl_v1.c^
|
|
|
|
.\Inu\Src\N12_Libs\rmp_cntl_v2.c^
|
|
|
|
.\Inu\Src\N12_Libs\filter_v1.c^
|
|
|
|
.\Inu\Src\N12_Libs\uf_alg_ing.c^
|
|
|
|
.\Inu\Src\N12_Libs\svgen_mf.c^
|
|
|
|
.\Inu\Src\N12_Libs\svgen_dq_v2.c^
|
2025-01-13 13:05:34 +03:00
|
|
|
.\Inu\Src\N12_Libs\control_station.c^
|
|
|
|
.\Inu\Src\N12_Libs\global_time.c^
|
2025-01-13 11:09:58 +03:00
|
|
|
.\Inu\Src\N12_Xilinx\xp_write_xpwm_time.c^
|
|
|
|
.\Inu\Src\main\adc_tools.c^
|
2025-01-13 13:05:34 +03:00
|
|
|
.\Inu\Src\main\v_pwm24_v2.c^
|
|
|
|
.\Inu\Src\main\limit_power.c^
|
|
|
|
.\Inu\Src\main\limit_lib.c^
|
|
|
|
.\Inu\Src\main\pll_tools.c^
|
2025-01-13 16:58:59 +03:00
|
|
|
.\Inu\Src\main\calc_rms_vals.c^
|
|
|
|
.\Inu\Src\main\alg_simple_scalar.c^
|
|
|
|
.\Inu\Src\main\control_station_project.c^
|
2025-01-13 13:05:34 +03:00
|
|
|
.\Inu\Src\main\ramp_zadanie_tools.c
|
2024-12-27 10:50:32 +03:00
|
|
|
|
|
|
|
set params_obj=..\device_support_ml\source\C28x_FPU_FastRTS.obj ..\device_support_ml\source\DSP2833x_GlobalVariableDefs.obj
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-01-13 11:09:58 +03:00
|
|
|
echo mex %params_d1% %params_d2% %params_i% %params_o% %params_sfunction% %params_wrapper_c% %params_vectorcontorl_c% %params_libs_c% %params_obj% -g
|
2024-12-27 10:50:32 +03:00
|
|
|
|
|
|
|
|
2025-01-13 11:09:58 +03:00
|
|
|
mex %params_d1% %params_d2% %params_i% %params_o% %params_sfunction% %params_wrapper_c% %params_vectorcontorl_c% %params_libs_c% %params_obj% -g
|