Add necessary includes and init functions to main of model. All changes
are used only if model is compiled with extmode.
/* External mode header file */
#include "ext_work.h"
#include <drv/sci.h>
+ #include <drv/emac.h>
%endif
%closefile tmpBuf
%endif
rpp_sci_init();
+ %if extMode == 1
+ rpp_eth_init();
+ %endif
+
// Speed up the SCI
rpp_sci_setup(115200);
%assign model_info = SPRINTF("'%s' - %s (TLC %s)\\r\\n", LibGetMdlPubHdrBaseName(), TLC_TIME, TLC_VERSION)
rpp_sci_printk("%<model_info>");
%endif
-
+
%if extMode == 1
vSemaphoreCreateBinary(ext_mode_ready);
xSemaphoreTake(ext_mode_ready, 0);