In some circumstances it is desirable to replace code generated
by MC-3020 with code supplied by the user. This is often the case
with the timer subsystem (TIM) in TIM_bridge.c
and almost always the case with the system user callouts
(sys_user_co.c
and
sys_user_co.h
). In these cases, replacement
source files must be supplied to the code generation process.
To supply user source code that will replace files of the same
name generated by MC-3020, place the source files
(.c
and .h
) in the
gen
folder within the project folder. When the
code generation process runs, the supplied files will be copied in to
overwrite/replace those generated by the model compiler.