add source for ces2019
[apps/agl-service-windowmanager-2017.git] / policy_manager / stm / zipc / StateTransitionor / OnScreenlayer / ZOSL_OslMain.c
1 /************************************************************/
2 /*     ZOSL_OslMain.c                                       */
3 /*     OslMain State transition model source file           */
4 /*     ZIPC Designer Version 1.2.0                          */
5 /************************************************************/
6 #include "../ZST_include.h"
7
8 /* State management variable */
9 static uint8_t ZOSL_OslMainState[ZOSL_OSLMAINSTATENOMAX];
10
11 static void ZOSL_OslMains0StateEntry( void );
12 static void ZOSL_OslMains1StateEntry( void );
13 static void ZOSL_OslMains0e1( void );
14 static void ZOSL_OslMains0e2( void );
15 static void ZOSL_OslMains1e0( void );
16 static void ZOSL_OslRestOffs0e0( void );
17 static void ZOSL_OslRestOffs0e1( void );
18 static void ZOSL_OslRestOffs0e4( void );
19 static void ZOSL_OslRestOffs1e0( void );
20 static void ZOSL_OslRestOffs1e2( void );
21 static void ZOSL_OslRestOffs2e6( void );
22 static void ZOSL_OslRestOns0e0( void );
23 static void ZOSL_OslRestOns0e2( void );
24 static void ZOSL_OslRestOns1e1( void );
25 static void ZOSL_OslRestOns1e3( void );
26 static void ZOSL_OslMains0Event( void );
27 static void ZOSL_OslRestOffs0Event( void );
28 static void ZOSL_OslRestOffs1Event( void );
29 static void ZOSL_OslRestOffs2Event( void );
30 static void ZOSL_OslMains1Event( void );
31 static void ZOSL_OslRestOns0Event( void );
32 static void ZOSL_OslRestOns1Event( void );
33
34 /****************************************/
35 /* State start activity function        */
36 /*   STM : OslMain                      */
37 /*   State : restriction_mode_off( No 0 ) */
38 /****************************************/
39 static void ZOSL_OslMains0StateEntry( void )
40 {
41     switch( ZOSL_OslMainState[ZOSL_OSLMAINS0F] )
42     {
43     case ZOSL_OSLRESTOFFS0:
44         stm_osl_start_activity_none();
45         break;
46     case ZOSL_OSLRESTOFFS1:
47         stm_osl_start_activity_pop_up();
48         break;
49     case ZOSL_OSLRESTOFFS2:
50         stm_osl_start_activity_system_alert();
51         break;
52     default:
53         /*Not accessible to this else (default).*/
54         break;
55     }
56 }
57
58 /****************************************/
59 /* State start activity function        */
60 /*   STM : OslMain                      */
61 /*   State : restriction_mode_on( No 1 )*/
62 /****************************************/
63 static void ZOSL_OslMains1StateEntry( void )
64 {
65     switch( ZOSL_OslMainState[ZOSL_OSLMAINS1F] )
66     {
67     case ZOSL_OSLRESTONS0:
68         stm_osl_start_activity_none();
69         break;
70     case ZOSL_OSLRESTONS1:
71         stm_osl_start_activity_system_alert();
72         break;
73     default:
74         /*Not accessible to this else (default).*/
75         break;
76     }
77 }
78
79 /****************************************/
80 /* Action function                      */
81 /*   STM : OslMain                      */
82 /*   State : restriction_mode_off( No 0 ) */
83 /*   Event : stt_crr_layer_on_screen_pop( No 1 ) */
84 /****************************************/
85 static void ZOSL_OslMains0e1( void )
86 {
87     ZOSL_OslMainState[ZOSL_OSLMAIN] = ( uint8_t )ZOSL_OSLMAINS1;
88     ZOSL_OslMainState[ZOSL_OSLMAINS1F] = ( uint8_t )ZOSL_OSLRESTONS0;
89     ZOSL_OslMains1StateEntry();
90 }
91
92 /****************************************/
93 /* Action function                      */
94 /*   STM : OslMain                      */
95 /*   State : restriction_mode_off( No 0 ) */
96 /*   Event : stt_crr_layer_on_screen_sys( No 2 ) */
97 /****************************************/
98 static void ZOSL_OslMains0e2( void )
99 {
100     ZOSL_OslMainState[ZOSL_OSLMAIN] = ( uint8_t )ZOSL_OSLMAINS1;
101     ZOSL_OslMainState[ZOSL_OSLMAINS1F] = ( uint8_t )ZOSL_OSLRESTONS1;
102     ZOSL_OslMains1StateEntry();
103 }
104
105 /****************************************/
106 /* Action function                      */
107 /*   STM : OslMain                      */
108 /*   State : restriction_mode_on( No 1 )*/
109 /*   Event : stt_restriction_mode_off( No 0 ) */
110 /****************************************/
111 static void ZOSL_OslMains1e0( void )
112 {
113     ZOSL_OslMainState[ZOSL_OSLMAIN] = ( uint8_t )ZOSL_OSLMAINS0;
114     ZOSL_OslMains0StateEntry();
115 }
116
117 /****************************************/
118 /* Action function                      */
119 /*   STM : OslRestOff                   */
120 /*   State : none( No 0 )               */
121 /*   Event : ara_onscreen( No 0 )       */
122 /****************************************/
123 static void ZOSL_OslRestOffs0e0( void )
124 {
125     ZOSL_OslMainState[ZOSL_OSLMAINS0F] = ( uint8_t )ZOSL_OSLRESTOFFS1;
126     stm_osl_start_activity_pop_up();
127 }
128
129 /****************************************/
130 /* Action function                      */
131 /*   STM : OslRestOff                   */
132 /*   State : none( No 0 )               */
133 /*   Event : ara_onscreen( No 1 )       */
134 /****************************************/
135 static void ZOSL_OslRestOffs0e1( void )
136 {
137     ZOSL_OslMainState[ZOSL_OSLMAINS0F] = ( uint8_t )ZOSL_OSLRESTOFFS2;
138     stm_osl_start_activity_system_alert();
139 }
140
141 /****************************************/
142 /* Action function                      */
143 /*   STM : OslRestOff                   */
144 /*   State : none( No 0 )               */
145 /*   Event : stt_prv_layer_on_screen_none( No 4 ) */
146 /****************************************/
147 static void ZOSL_OslRestOffs0e4( void )
148 {
149     stm_osl_start_activity_none();
150 }
151
152 /****************************************/
153 /* Action function                      */
154 /*   STM : OslRestOff                   */
155 /*   State : popup( No 1 )              */
156 /*   Event : ara_onscreen( No 0 )       */
157 /****************************************/
158 static void ZOSL_OslRestOffs1e0( void )
159 {
160     stm_osl_start_activity_pop_up();
161 }
162
163 /****************************************/
164 /* Action function                      */
165 /*   STM : OslRestOff                   */
166 /*   State : popup( No 1 )              */
167 /*   Event : ctg_popup( No 2 )          */
168 /****************************************/
169 static void ZOSL_OslRestOffs1e2( void )
170 {
171     ZOSL_OslMainState[ZOSL_OSLMAINS0F] = ( uint8_t )ZOSL_OSLRESTOFFS0;
172     stm_osl_start_activity_none();
173 }
174
175 /****************************************/
176 /* Action function                      */
177 /*   STM : OslRestOff                   */
178 /*   State : system_alert( No 2 )       */
179 /*   Event : stt_prv_layer_on_screen_sys_alt( No 6 ) */
180 /****************************************/
181 static void ZOSL_OslRestOffs2e6( void )
182 {
183     stm_osl_start_activity_system_alert();
184 }
185
186 /****************************************/
187 /* Action function                      */
188 /*   STM : OslRestOn                    */
189 /*   State : none( No 0 )               */
190 /*   Event : ara_onscreen( No 0 )       */
191 /****************************************/
192 static void ZOSL_OslRestOns0e0( void )
193 {
194     ZOSL_OslMainState[ZOSL_OSLMAINS1F] = ( uint8_t )ZOSL_OSLRESTONS1;
195     stm_osl_start_activity_system_alert();
196 }
197
198 /****************************************/
199 /* Action function                      */
200 /*   STM : OslRestOn                    */
201 /*   State : none( No 0 )               */
202 /*   Event : stt_prv_layer_on_screen_none( No 2 ) */
203 /****************************************/
204 static void ZOSL_OslRestOns0e2( void )
205 {
206     stm_osl_start_activity_none();
207 }
208
209 /****************************************/
210 /* Action function                      */
211 /*   STM : OslRestOn                    */
212 /*   State : system_alert( No 1 )       */
213 /*   Event : ctg_systemalert( No 1 )    */
214 /****************************************/
215 static void ZOSL_OslRestOns1e1( void )
216 {
217     ZOSL_OslMainState[ZOSL_OSLMAINS1F] = ( uint8_t )ZOSL_OSLRESTONS0;
218     stm_osl_start_activity_none();
219 }
220
221 /****************************************/
222 /* Action function                      */
223 /*   STM : OslRestOn                    */
224 /*   State : system_alert( No 1 )       */
225 /*   Event : stt_prv_layer_on_screen_sys_alt( No 3 ) */
226 /****************************************/
227 static void ZOSL_OslRestOns1e3( void )
228 {
229     stm_osl_start_activity_system_alert();
230 }
231
232 /****************************************/
233 /* Event appraisal function             */
234 /*   STM : OslMain                      */
235 /*   State : restriction_mode_off( No 0 ) */
236 /****************************************/
237 static void ZOSL_OslMains0Event( void )
238 {
239     /*stt_restriction_mode_on*/
240     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
241     {
242         stm_rel_event_restriction_mode_on();
243         /*stt_crr_layer_on_screen_pop*/
244         if( g_stm_crr_state.layer[StmLayerNoOnScreen].state == StmLayoutNoPopUp )
245         {
246             ZOSL_OslMains0e1();
247         }
248         /*stt_crr_layer_on_screen_sys*/
249         else if( g_stm_crr_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
250         {
251             ZOSL_OslMains0e2();
252         }
253         else
254         {
255             /*Else and default design have not done.*/
256             /*Please confirm the STM and design else and default.*/
257         }
258     }
259     else
260     {
261         /*Else and default design have not done.*/
262         /*Please confirm the STM and design else and default.*/
263     }
264 }
265
266 /****************************************/
267 /* Event appraisal function             */
268 /*   STM : OslRestOff                   */
269 /*   State : none( No 0 )               */
270 /****************************************/
271 static void ZOSL_OslRestOffs0Event( void )
272 {
273     /*stt_restriction_mode_off*/
274     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
275     {
276         /*evt_activate*/
277         if( g_stm_event == StmEvtNoActivate )
278         {
279             /*ctg_popup*/
280             if( g_stm_category == StmCtgNoPopUp )
281             {
282                 /*ara_onscreen*/
283                 if( g_stm_area == StmAreaNoOnScreen )
284                 {
285                     ZOSL_OslRestOffs0e0();
286                 }
287                 else
288                 {
289                     /*Else and default design have not done.*/
290                     /*Please confirm the STM and design else and default.*/
291                 }
292             }
293             /*ctg_systemalert*/
294             else if( g_stm_category == StmCtgNoSystemAlert )
295             {
296                 /*ara_onscreen*/
297                 if( g_stm_area == StmAreaNoOnScreen )
298                 {
299                     ZOSL_OslRestOffs0e1();
300                 }
301                 else
302                 {
303                     /*Else and default design have not done.*/
304                     /*Please confirm the STM and design else and default.*/
305                 }
306             }
307             else
308             {
309                 /*Else and default design have not done.*/
310                 /*Please confirm the STM and design else and default.*/
311             }
312         }
313         /*evt_undo*/
314         else if( g_stm_event == StmEvtNoUndo )
315         {
316             /*stt_prv_layer_on_screen_none*/
317             if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoNone )
318             {
319                 ZOSL_OslRestOffs0e4();
320             }
321             /*stt_prv_layer_on_screen_pop_up*/
322             else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoPopUp )
323             {
324                 ZOSL_OslRestOffs0e0();
325             }
326             /*stt_prv_layer_on_screen_sys_alt*/
327             else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
328             {
329                 ZOSL_OslRestOffs0e1();
330             }
331             else
332             {
333                 /*Else and default design have not done.*/
334                 /*Please confirm the STM and design else and default.*/
335             }
336         }
337         else
338         {
339             /*Else and default design have not done.*/
340             /*Please confirm the STM and design else and default.*/
341         }
342     }
343     else
344     {
345         /*Else and default design have not done.*/
346         /*Please confirm the STM and design else and default.*/
347     }
348 }
349
350 /****************************************/
351 /* Event appraisal function             */
352 /*   STM : OslRestOff                   */
353 /*   State : popup( No 1 )              */
354 /****************************************/
355 static void ZOSL_OslRestOffs1Event( void )
356 {
357     /*stt_restriction_mode_off*/
358     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
359     {
360         /*evt_activate*/
361         if( g_stm_event == StmEvtNoActivate )
362         {
363             /*ctg_popup*/
364             if( g_stm_category == StmCtgNoPopUp )
365             {
366                 /*ara_onscreen*/
367                 if( g_stm_area == StmAreaNoOnScreen )
368                 {
369                     ZOSL_OslRestOffs1e0();
370                 }
371                 else
372                 {
373                     /*Else and default design have not done.*/
374                     /*Please confirm the STM and design else and default.*/
375                 }
376             }
377             /*ctg_systemalert*/
378             else if( g_stm_category == StmCtgNoSystemAlert )
379             {
380                 /*ara_onscreen*/
381                 if( g_stm_area == StmAreaNoOnScreen )
382                 {
383                     ZOSL_OslRestOffs0e1();
384                 }
385                 else
386                 {
387                     /*Else and default design have not done.*/
388                     /*Please confirm the STM and design else and default.*/
389                 }
390             }
391             else
392             {
393                 /*Else and default design have not done.*/
394                 /*Please confirm the STM and design else and default.*/
395             }
396         }
397         /*evt_deactivate*/
398         else if( g_stm_event == StmEvtNoDeactivate )
399         {
400             /*ctg_popup*/
401             if( g_stm_category == StmCtgNoPopUp )
402             {
403                 ZOSL_OslRestOffs1e2();
404             }
405             else
406             {
407                 /*Else and default design have not done.*/
408                 /*Please confirm the STM and design else and default.*/
409             }
410         }
411         /*evt_undo*/
412         else if( g_stm_event == StmEvtNoUndo )
413         {
414             /*stt_prv_layer_on_screen_none*/
415             if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoNone )
416             {
417                 ZOSL_OslRestOffs1e2();
418             }
419             /*stt_prv_layer_on_screen_pop_up*/
420             else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoPopUp )
421             {
422                 ZOSL_OslRestOffs1e0();
423             }
424             /*stt_prv_layer_on_screen_sys_alt*/
425             else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
426             {
427                 ZOSL_OslRestOffs0e1();
428             }
429             else
430             {
431                 /*Else and default design have not done.*/
432                 /*Please confirm the STM and design else and default.*/
433             }
434         }
435         else
436         {
437             /*Else and default design have not done.*/
438             /*Please confirm the STM and design else and default.*/
439         }
440     }
441     else
442     {
443         /*Else and default design have not done.*/
444         /*Please confirm the STM and design else and default.*/
445     }
446 }
447
448 /****************************************/
449 /* Event appraisal function             */
450 /*   STM : OslRestOff                   */
451 /*   State : system_alert( No 2 )       */
452 /****************************************/
453 static void ZOSL_OslRestOffs2Event( void )
454 {
455     /*stt_restriction_mode_off*/
456     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
457     {
458         /*evt_deactivate*/
459         if( g_stm_event == StmEvtNoDeactivate )
460         {
461             /*ctg_systemalert*/
462             if( g_stm_category == StmCtgNoSystemAlert )
463             {
464                 ZOSL_OslRestOffs1e2();
465             }
466             else
467             {
468                 /*Else and default design have not done.*/
469                 /*Please confirm the STM and design else and default.*/
470             }
471         }
472         /*evt_undo*/
473         else if( g_stm_event == StmEvtNoUndo )
474         {
475             /*stt_prv_layer_on_screen_none*/
476             if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoNone )
477             {
478                 ZOSL_OslRestOffs1e2();
479             }
480             /*stt_prv_layer_on_screen_pop_up*/
481             else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoPopUp )
482             {
483                 ZOSL_OslRestOffs0e0();
484             }
485             /*stt_prv_layer_on_screen_sys_alt*/
486             else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
487             {
488                 ZOSL_OslRestOffs2e6();
489             }
490             else
491             {
492                 /*Else and default design have not done.*/
493                 /*Please confirm the STM and design else and default.*/
494             }
495         }
496         else
497         {
498             /*Else and default design have not done.*/
499             /*Please confirm the STM and design else and default.*/
500         }
501     }
502     else
503     {
504         /*Else and default design have not done.*/
505         /*Please confirm the STM and design else and default.*/
506     }
507 }
508
509 /****************************************/
510 /* Event appraisal function             */
511 /*   STM : OslMain                      */
512 /*   State : restriction_mode_on( No 1 )*/
513 /****************************************/
514 static void ZOSL_OslMains1Event( void )
515 {
516     /*stt_restriction_mode_off*/
517     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
518     {
519         stm_rel_event_restriction_mode_off();
520         ZOSL_OslMains1e0();
521     }
522     else
523     {
524         /*Else and default design have not done.*/
525         /*Please confirm the STM and design else and default.*/
526     }
527 }
528
529 /****************************************/
530 /* Event appraisal function             */
531 /*   STM : OslRestOn                    */
532 /*   State : none( No 0 )               */
533 /****************************************/
534 static void ZOSL_OslRestOns0Event( void )
535 {
536     /*stt_restriction_mode_on*/
537     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
538     {
539         /*evt_activate*/
540         if( g_stm_event == StmEvtNoActivate )
541         {
542             /*ctg_systemalert*/
543             if( g_stm_category == StmCtgNoSystemAlert )
544             {
545                 /*ara_onscreen*/
546                 if( g_stm_area == StmAreaNoOnScreen )
547                 {
548                     ZOSL_OslRestOns0e0();
549                 }
550                 else
551                 {
552                     /*Else and default design have not done.*/
553                     /*Please confirm the STM and design else and default.*/
554                 }
555             }
556             else
557             {
558                 /*Else and default design have not done.*/
559                 /*Please confirm the STM and design else and default.*/
560             }
561         }
562         /*evt_undo*/
563         else if( g_stm_event == StmEvtNoUndo )
564         {
565             /*stt_prv_layer_on_screen_none*/
566             if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoNone )
567             {
568                 ZOSL_OslRestOns0e2();
569             }
570             /*stt_prv_layer_on_screen_sys_alt*/
571             else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
572             {
573                 ZOSL_OslRestOns0e0();
574             }
575             else
576             {
577                 /*Else and default design have not done.*/
578                 /*Please confirm the STM and design else and default.*/
579             }
580         }
581         else
582         {
583             /*Else and default design have not done.*/
584             /*Please confirm the STM and design else and default.*/
585         }
586     }
587     else
588     {
589         /*Else and default design have not done.*/
590         /*Please confirm the STM and design else and default.*/
591     }
592 }
593
594 /****************************************/
595 /* Event appraisal function             */
596 /*   STM : OslRestOn                    */
597 /*   State : system_alert( No 1 )       */
598 /****************************************/
599 static void ZOSL_OslRestOns1Event( void )
600 {
601     /*stt_restriction_mode_on*/
602     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
603     {
604         /*evt_deactivate*/
605         if( g_stm_event == StmEvtNoDeactivate )
606         {
607             /*ctg_systemalert*/
608             if( g_stm_category == StmCtgNoSystemAlert )
609             {
610                 ZOSL_OslRestOns1e1();
611             }
612             else
613             {
614                 /*Else and default design have not done.*/
615                 /*Please confirm the STM and design else and default.*/
616             }
617         }
618         /*evt_undo*/
619         else if( g_stm_event == StmEvtNoUndo )
620         {
621             /*stt_prv_layer_on_screen_none*/
622             if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoNone )
623             {
624                 ZOSL_OslRestOns1e1();
625             }
626             /*stt_prv_layer_on_screen_sys_alt*/
627             else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
628             {
629                 ZOSL_OslRestOns1e3();
630             }
631             else
632             {
633                 /*Else and default design have not done.*/
634                 /*Please confirm the STM and design else and default.*/
635             }
636         }
637         else
638         {
639             /*Else and default design have not done.*/
640             /*Please confirm the STM and design else and default.*/
641         }
642     }
643     else
644     {
645         /*Else and default design have not done.*/
646         /*Please confirm the STM and design else and default.*/
647     }
648 }
649
650 /****************************************/
651 /* Event call function                  */
652 /*   STM : OslMain                      */
653 /****************************************/
654 void stm_osl_event_call( void )
655 {
656     stm_osl_start_stm();
657     switch( ZOSL_OslMainState[ZOSL_OSLMAIN] )
658     {
659     case ZOSL_OSLMAINS0:
660         switch( ZOSL_OslMainState[ZOSL_OSLMAINS0F] )
661         {
662         case ZOSL_OSLRESTOFFS0:
663             ZOSL_OslRestOffs0Event();
664             break;
665         case ZOSL_OSLRESTOFFS1:
666             ZOSL_OslRestOffs1Event();
667             break;
668         case ZOSL_OSLRESTOFFS2:
669             ZOSL_OslRestOffs2Event();
670             break;
671         default:
672             /*Not accessible to this else (default).*/
673             break;
674         }
675         ZOSL_OslMains0Event();
676         break;
677     case ZOSL_OSLMAINS1:
678         switch( ZOSL_OslMainState[ZOSL_OSLMAINS1F] )
679         {
680         case ZOSL_OSLRESTONS0:
681             ZOSL_OslRestOns0Event();
682             break;
683         case ZOSL_OSLRESTONS1:
684             ZOSL_OslRestOns1Event();
685             break;
686         default:
687             /*Not accessible to this else (default).*/
688             break;
689         }
690         ZOSL_OslMains1Event();
691         break;
692     default:
693         /*Not accessible to this else (default).*/
694         break;
695     }
696 }
697
698 /****************************************/
699 /* Initial function                     */
700 /*   STM : OslMain                      */
701 /****************************************/
702 void stm_osl_initialize( void )
703 {
704     ZOSL_OslMainState[ZOSL_OSLMAIN] = ( uint8_t )ZOSL_OSLMAINS0;
705     ZOSL_OslMainState[ZOSL_OSLMAINS0F] = ( uint8_t )ZOSL_OSLRESTOFFS0;
706     ZOSL_OslMainState[ZOSL_OSLMAINS1F] = ( uint8_t )ZOSL_OSLRESTONS0;
707     ZOSL_OslMains0StateEntry();
708 }
709
710 /****************************************/
711 /* Terminate function                   */
712 /*   STM : OslMain                      */
713 /****************************************/
714 void ZOSL_OslMainTerminate( void )
715 {
716     ZOSL_OslMainState[ZOSL_OSLMAIN] = ( uint8_t )ZOSL_OSLMAINTERMINATE;
717 }
718