* its associated macro definitions.
*/
#include "simstruc.h"
+
+#ifndef WITHOUT_HW
#include "mf624_SIMULINK.h"
+#endif /*WITHOUT_HW*/
/* Error handling
* --------------
*/
static void mdlStart(SimStruct *S)
{
+ #ifndef WITHOUT_HW
if (mf624_init(NULL) != 0)
return;
mfst->DOut=0;
-
+ #endif /*WITHOUT_HW*/
}
#endif /* MDL_START */
{
const real_T *u = (const real_T*) ssGetInputPortSignal(S,0);
+ #ifndef WITHOUT_HW
if (mf624_check(S) != 0)
return;
}
mf624_write16(mfst->DOut, MFST2REG(mfst, 2, DOUT_reg));
+ #endif /*WITHOUT_HW*/
}
*/
static void mdlTerminate(SimStruct *S)
{
- mf624_done();
+ #ifndef WITHOUT_HW
+ mf624_done();
+ #endif /*WITHOUT_HW*/
}