We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An AUTOSTART Alarm with 2 appmodes only declares One Appmode into the AutoStartAlarm generated array.
Example:
OIL: ` APPMODE = AppMode1; APPMODE = AppMode2;
ALARM ActivatePeriodicTask { COUNTER = HardwareCounter; ACTION = ACTIVATETASK { TASK = PeriodicTask; } AUTOSTART = TRUE { APPMODE = AppMode1; APPMODE = AppMode2; ALARMTIME = 0; CYCLETIME = 100; } }`
generates (into os_internal_cfg.c):
const AutoStartAlarmType AutoStartAlarm[ALARM_AUTOSTART_COUNT] = { { AppMode1, /* Application Mode */ ActivatePeriodicTask2, /* Alarms */ 0, /* Alarm Time */ 200 /* Alarm Time */ } };
so this portion of StartOS:
for ( loopi = 0; loopi < ALARM_AUTOSTART_COUNT; loopi++ ) { if ( AutoStartAlarm[loopi].Mode == Mode ) { ( void )SetRelAlarm( AutoStartAlarm[loopi].Alarm, AutoStartAlarm[loopi].AlarmTime, AutoStartAlarm[loopi].AlarmCycleTime ); } }
will never start the alarm, for the second AppMode.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
An AUTOSTART Alarm with 2 appmodes only declares One Appmode into the AutoStartAlarm generated array.
Example:
OIL:
` APPMODE = AppMode1;
APPMODE = AppMode2;
ALARM ActivatePeriodicTask {
COUNTER = HardwareCounter;
ACTION = ACTIVATETASK {
TASK = PeriodicTask;
}
AUTOSTART = TRUE {
APPMODE = AppMode1;
APPMODE = AppMode2;
ALARMTIME = 0;
CYCLETIME = 100;
}
}`
generates (into os_internal_cfg.c):
const AutoStartAlarmType AutoStartAlarm[ALARM_AUTOSTART_COUNT] = { { AppMode1, /* Application Mode */ ActivatePeriodicTask2, /* Alarms */ 0, /* Alarm Time */ 200 /* Alarm Time */ } };
so this portion of StartOS:
for ( loopi = 0; loopi < ALARM_AUTOSTART_COUNT; loopi++ ) { if ( AutoStartAlarm[loopi].Mode == Mode ) { ( void )SetRelAlarm( AutoStartAlarm[loopi].Alarm, AutoStartAlarm[loopi].AlarmTime, AutoStartAlarm[loopi].AlarmCycleTime ); } }
will never start the alarm, for the second AppMode.
The text was updated successfully, but these errors were encountered: