这个文件是生成的模板文件,调用生成主函数的文件,是在回调函数里面决定是生成
这个文件是根据模型的采样速率设置调用哪个文件,这个写的和视频介绍的不大一样,视频介绍的是根据单采样还是多采样设置不同的调用主函数
主要大的区别还是这个 %include “MC9S12XEP100_main.tlc”
设置任务调度还是调用的是哪个#include里面的main.tlc文件
/%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 雨的旋律汽车电子开发板
% 网店地址:http://shop108493800.taobao.com/
% 技术支持QQ群:153167747
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%/
%selectfile NULL_FILE
%assign ERTCustomFileTest = TLC_TRUE
%if EXISTS(“ERTCustomFileTest”) && ERTCustomFileTest == TLC_TRUE
%% Need to set the template compliance flag before you can use the API
%<LibSetCodeTemplateComplianceLevel(1)>
%if GenerateSampleERTMain
%assign CompiledModel.GenerateSampleERTMain = TLC_FALSE
%endif
%include "MC9S12XEP100_main.tlc"
%<s12xSingleTaskingMain()>
%endif