/* Function: rt_ExtModeInit ====================================================
 * Abstract:
 *  Called once at program startup to do any initialization related to external
 *  mode. 
 */
PUBLIC boolean_T rt_ExtModeInit(void)
{
    int i;
    boolean_T error = EXT_NO_ERROR;

#ifdef TMW_EXTMODE_TESTING_REQ
#  ifndef TMW_EXTMODE_TESTING
#ifndef EXTMODE_DISABLEPRINTF 
    fprintf(stderr,"Error: External mode tests should use the external mode test harness.\n");
#endif
    error = EXT_ERROR;
#  endif
#endif
    if (error != EXT_NO_ERROR) goto EXIT_POINT;

    error = ExtInit(extUD);
    if (error != EXT_NO_ERROR) goto EXIT_POINT;

    for (i=0; i<NUM_UPINFOS; i++) {
        UploadLogInfoReset(i);
    }

    rtExtModeTestingInit();

EXIT_POINT:
    return(error);
} /* end rt_ExtModeInit */
Пример #2
0
/* Function: rt_ExtModeInit ====================================================
 * Abstract:
 *  Called once at program startup to do any initialization related to external
 *  mode. 
 */
PUBLIC boolean_T rt_ExtModeInit(void)
{
    int i;
    boolean_T error = EXT_NO_ERROR;

    error = ExtInit(extUD);
    if (error != EXT_NO_ERROR) goto EXIT_POINT;

    for (i=0; i<NUM_UPINFOS; i++) {
        UploadLogInfoReset(i);
    }

    rtExtModeTestingInit();

EXIT_POINT:
    return(error);
} /* end rt_ExtModeInit */