summaryrefslogtreecommitdiffstats
path: root/policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c
diff options
context:
space:
mode:
authorYuta Doi <yuta-d@witz-inc.co.jp>2018-07-11 16:21:37 +0900
committerYuta Doi <yuta-d@witz-inc.co.jp>2018-08-15 01:49:00 +0000
commit1859dd4135f5d019f16a1333df318ecd1211afb9 (patch)
treee8b5e087215b087143f7982bf459d1d60ed45f65 /policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c
parentc1d85371b1eb693128cf9553c356ea77e609d9a3 (diff)
Readd policy table generated by ZIPC for EXAMPLEflounder_5.99.4flounder_5.99.3flounder/5.99.4flounder/5.99.35.99.45.99.3
This patch reverts commit e4222ca8da3b02afca5625fa2cef6832aa8ce90e and update it. To Policy Manager, add the source code of policy table which is generated by ZIPC for EXAMPLE. If use this example, please comment out line 22 and uncomment line 23 in policy_manager/CMakeLists.txt as follows: #set(STM_DIR stub) set(STM_DIR zipc) If try to show split layout, please set bool value "ON" to TRY_SPLIT_LAYOUT at line 28 in policy_manager/CMakeLists.txt as follows: set(TRY_SPLIT_LAYOUT OFF CACHE BOOL "Enable to show split layout") The generated source codes by ZIPC are "Common" and "StateTransitionor" in policy_manager/stm/zipc/. Bug-AGL: SPEC-1537 Change-Id: I1f91cf728eab79c229c5b4b12b9e1bdd338f64aa Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c')
-rw-r--r--policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c764
1 files changed, 764 insertions, 0 deletions
diff --git a/policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c b/policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c
new file mode 100644
index 0000000..53a50e1
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c
@@ -0,0 +1,764 @@
+/************************************************************/
+/* ZOSL_OslMain.c */
+/* OslMain State transition model source file */
+/* ZIPC Designer Version 1.2.0 */
+/************************************************************/
+#include "../ZST_include.h"
+
+/* State management variable */
+static uint8_t ZOSL_OslMainState[ZOSL_OSLMAINSTATENOMAX];
+
+static void ZOSL_OslMains0StateEntry( void );
+static void ZOSL_OslMains1StateEntry( void );
+static void ZOSL_OslMains0e1( void );
+static void ZOSL_OslMains0e2( void );
+static void ZOSL_OslMains1e0( void );
+static void ZOSL_OslRestOffs0e0( void );
+static void ZOSL_OslRestOffs0e1( void );
+static void ZOSL_OslRestOffs0e4( void );
+static void ZOSL_OslRestOffs1e0( void );
+static void ZOSL_OslRestOffs1e2( void );
+static void ZOSL_OslRestOffs2e1( void );
+static void ZOSL_OslRestOns0e0( void );
+static void ZOSL_OslRestOns0e2( void );
+static void ZOSL_OslRestOns1e0( void );
+static void ZOSL_OslRestOns1e1( void );
+static void ZOSL_OslMains0Event( void );
+static void ZOSL_OslRestOffs0Event( void );
+static void ZOSL_OslRestOffs1Event( void );
+static void ZOSL_OslRestOffs2Event( void );
+static void ZOSL_OslMains1Event( void );
+static void ZOSL_OslRestOns0Event( void );
+static void ZOSL_OslRestOns1Event( void );
+
+/****************************************/
+/* State start activity function */
+/* STM : OslMain */
+/* State : restriction_mode_off( No 0 ) */
+/****************************************/
+static void ZOSL_OslMains0StateEntry( void )
+{
+ switch( ZOSL_OslMainState[ZOSL_OSLMAINS0F] )
+ {
+ case ZOSL_OSLRESTOFFS0:
+ stm_osl_start_activity_none();
+ break;
+ case ZOSL_OSLRESTOFFS1:
+ stm_osl_start_activity_pop_up();
+ break;
+ case ZOSL_OSLRESTOFFS2:
+ stm_osl_start_activity_system_alert();
+ break;
+ default:
+ /*Not accessible to this else (default).*/
+ break;
+ }
+}
+
+/****************************************/
+/* State start activity function */
+/* STM : OslMain */
+/* State : restriction_mode_2_on( No 1 ) */
+/****************************************/
+static void ZOSL_OslMains1StateEntry( void )
+{
+ switch( ZOSL_OslMainState[ZOSL_OSLMAINS1F] )
+ {
+ case ZOSL_OSLRESTONS0:
+ stm_osl_start_activity_none();
+ break;
+ case ZOSL_OSLRESTONS1:
+ stm_osl_start_activity_system_alert();
+ break;
+ default:
+ /*Not accessible to this else (default).*/
+ break;
+ }
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslMain */
+/* State : restriction_mode_off( No 0 ) */
+/* Event : stt_crr_layer_on_screen_pop( No 1 ) */
+/****************************************/
+static void ZOSL_OslMains0e1( void )
+{
+ ZOSL_OslMainState[ZOSL_OSLMAIN] = ( uint8_t )ZOSL_OSLMAINS1;
+ ZOSL_OslMainState[ZOSL_OSLMAINS1F] = ( uint8_t )ZOSL_OSLRESTONS0;
+ ZOSL_OslMains1StateEntry();
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslMain */
+/* State : restriction_mode_off( No 0 ) */
+/* Event : stt_crr_layer_on_screen_sys( No 2 ) */
+/****************************************/
+static void ZOSL_OslMains0e2( void )
+{
+ ZOSL_OslMainState[ZOSL_OSLMAIN] = ( uint8_t )ZOSL_OSLMAINS1;
+ ZOSL_OslMainState[ZOSL_OSLMAINS1F] = ( uint8_t )ZOSL_OSLRESTONS1;
+ ZOSL_OslMains1StateEntry();
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslMain */
+/* State : restriction_mode_2_on( No 1 ) */
+/* Event : stt_restriction_mode_off( No 0 ) */
+/****************************************/
+static void ZOSL_OslMains1e0( void )
+{
+ ZOSL_OslMainState[ZOSL_OSLMAIN] = ( uint8_t )ZOSL_OSLMAINS0;
+ ZOSL_OslMains0StateEntry();
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslRestOff */
+/* State : none( No 0 ) */
+/* Event : ara_onscreen( No 0 ) */
+/****************************************/
+static void ZOSL_OslRestOffs0e0( void )
+{
+ ZOSL_OslMainState[ZOSL_OSLMAINS0F] = ( uint8_t )ZOSL_OSLRESTOFFS1;
+ stm_osl_start_activity_pop_up();
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslRestOff */
+/* State : none( No 0 ) */
+/* Event : ara_onscreen( No 1 ) */
+/****************************************/
+static void ZOSL_OslRestOffs0e1( void )
+{
+ ZOSL_OslMainState[ZOSL_OSLMAINS0F] = ( uint8_t )ZOSL_OSLRESTOFFS2;
+ stm_osl_start_activity_system_alert();
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslRestOff */
+/* State : none( No 0 ) */
+/* Event : stt_prv_layer_on_screen_none( No 4 ) */
+/****************************************/
+static void ZOSL_OslRestOffs0e4( void )
+{
+ stm_osl_start_activity_none();
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslRestOff */
+/* State : popup( No 1 ) */
+/* Event : ara_onscreen( No 0 ) */
+/****************************************/
+static void ZOSL_OslRestOffs1e0( void )
+{
+ stm_osl_start_activity_pop_up();
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslRestOff */
+/* State : popup( No 1 ) */
+/* Event : ctg_popup( No 2 ) */
+/****************************************/
+static void ZOSL_OslRestOffs1e2( void )
+{
+ ZOSL_OslMainState[ZOSL_OSLMAINS0F] = ( uint8_t )ZOSL_OSLRESTOFFS0;
+ stm_osl_start_activity_none();
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslRestOff */
+/* State : system_alert( No 2 ) */
+/* Event : ara_onscreen( No 1 ) */
+/****************************************/
+static void ZOSL_OslRestOffs2e1( void )
+{
+ stm_osl_start_activity_system_alert();
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslRestOn */
+/* State : none( No 0 ) */
+/* Event : ara_onscreen( No 0 ) */
+/****************************************/
+static void ZOSL_OslRestOns0e0( void )
+{
+ ZOSL_OslMainState[ZOSL_OSLMAINS1F] = ( uint8_t )ZOSL_OSLRESTONS1;
+ stm_osl_start_activity_system_alert();
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslRestOn */
+/* State : none( No 0 ) */
+/* Event : stt_prv_layer_on_screen_none( No 2 ) */
+/****************************************/
+static void ZOSL_OslRestOns0e2( void )
+{
+ stm_osl_start_activity_none();
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslRestOn */
+/* State : system_alert( No 1 ) */
+/* Event : ara_onscreen( No 0 ) */
+/****************************************/
+static void ZOSL_OslRestOns1e0( void )
+{
+ stm_osl_start_activity_system_alert();
+}
+
+/****************************************/
+/* Action function */
+/* STM : OslRestOn */
+/* State : system_alert( No 1 ) */
+/* Event : ctg_systemalert( No 1 ) */
+/****************************************/
+static void ZOSL_OslRestOns1e1( void )
+{
+ ZOSL_OslMainState[ZOSL_OSLMAINS1F] = ( uint8_t )ZOSL_OSLRESTONS0;
+ stm_osl_start_activity_none();
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : OslMain */
+/* State : restriction_mode_off( No 0 ) */
+/****************************************/
+static void ZOSL_OslMains0Event( void )
+{
+ /*stt_restriction_mode_2_on*/
+ if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNo2On )
+ {
+ stm_rel_event_restriction_mode_2_on();
+ /*stt_crr_layer_on_screen_pop*/
+ if( g_stm_crr_state.layer[StmLayerNoOnScreen].state == StmLayoutNoPopUp )
+ {
+ ZOSL_OslMains0e1();
+ }
+ /*stt_crr_layer_on_screen_sys*/
+ else if( g_stm_crr_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
+ {
+ ZOSL_OslMains0e2();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : OslRestOff */
+/* State : none( No 0 ) */
+/****************************************/
+static void ZOSL_OslRestOffs0Event( void )
+{
+ /*stt_restriction_mode_off*/
+ if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
+ {
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_popup*/
+ if( g_stm_category == StmCtgNoPopUp )
+ {
+ /*ara_onscreen*/
+ if( g_stm_area == StmAreaNoOnScreen )
+ {
+ ZOSL_OslRestOffs0e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*ctg_systemalert*/
+ else if( g_stm_category == StmCtgNoSystemAlert )
+ {
+ /*ara_onscreen*/
+ if( g_stm_area == StmAreaNoOnScreen )
+ {
+ ZOSL_OslRestOffs0e1();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_undo*/
+ else if( g_stm_event == StmEvtNoUndo )
+ {
+ /*stt_prv_layer_on_screen_none*/
+ if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoNone )
+ {
+ ZOSL_OslRestOffs0e4();
+ }
+ /*stt_prv_layer_on_screen_pop_up*/
+ else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoPopUp )
+ {
+ ZOSL_OslRestOffs0e0();
+ }
+ /*stt_prv_layer_on_screen_sys_alt*/
+ else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
+ {
+ ZOSL_OslRestOffs0e1();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : OslRestOff */
+/* State : popup( No 1 ) */
+/****************************************/
+static void ZOSL_OslRestOffs1Event( void )
+{
+ /*stt_restriction_mode_off*/
+ if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
+ {
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_popup*/
+ if( g_stm_category == StmCtgNoPopUp )
+ {
+ /*ara_onscreen*/
+ if( g_stm_area == StmAreaNoOnScreen )
+ {
+ ZOSL_OslRestOffs1e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*ctg_systemalert*/
+ else if( g_stm_category == StmCtgNoSystemAlert )
+ {
+ /*ara_onscreen*/
+ if( g_stm_area == StmAreaNoOnScreen )
+ {
+ ZOSL_OslRestOffs0e1();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_deactivate*/
+ else if( g_stm_event == StmEvtNoDeactivate )
+ {
+ /*ctg_popup*/
+ if( g_stm_category == StmCtgNoPopUp )
+ {
+ ZOSL_OslRestOffs1e2();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_undo*/
+ else if( g_stm_event == StmEvtNoUndo )
+ {
+ /*stt_prv_layer_on_screen_none*/
+ if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoNone )
+ {
+ ZOSL_OslRestOffs1e2();
+ }
+ /*stt_prv_layer_on_screen_pop_up*/
+ else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoPopUp )
+ {
+ ZOSL_OslRestOffs1e0();
+ }
+ /*stt_prv_layer_on_screen_sys_alt*/
+ else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
+ {
+ ZOSL_OslRestOffs0e1();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : OslRestOff */
+/* State : system_alert( No 2 ) */
+/****************************************/
+static void ZOSL_OslRestOffs2Event( void )
+{
+ /*stt_restriction_mode_off*/
+ if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
+ {
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_systemalert*/
+ if( g_stm_category == StmCtgNoSystemAlert )
+ {
+ /*ara_onscreen*/
+ if( g_stm_area == StmAreaNoOnScreen )
+ {
+ ZOSL_OslRestOffs2e1();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_deactivate*/
+ else if( g_stm_event == StmEvtNoDeactivate )
+ {
+ /*ctg_systemalert*/
+ if( g_stm_category == StmCtgNoSystemAlert )
+ {
+ ZOSL_OslRestOffs1e2();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_undo*/
+ else if( g_stm_event == StmEvtNoUndo )
+ {
+ /*stt_prv_layer_on_screen_none*/
+ if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoNone )
+ {
+ ZOSL_OslRestOffs1e2();
+ }
+ /*stt_prv_layer_on_screen_pop_up*/
+ else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoPopUp )
+ {
+ ZOSL_OslRestOffs0e0();
+ }
+ /*stt_prv_layer_on_screen_sys_alt*/
+ else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
+ {
+ ZOSL_OslRestOffs2e1();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : OslMain */
+/* State : restriction_mode_2_on( No 1 ) */
+/****************************************/
+static void ZOSL_OslMains1Event( void )
+{
+ /*stt_restriction_mode_off*/
+ if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
+ {
+ stm_rel_event_restriction_mode_off();
+ ZOSL_OslMains1e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : OslRestOn */
+/* State : none( No 0 ) */
+/****************************************/
+static void ZOSL_OslRestOns0Event( void )
+{
+ /*stt_restriction_mode_2_on*/
+ if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNo2On )
+ {
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_systemalert*/
+ if( g_stm_category == StmCtgNoSystemAlert )
+ {
+ /*ara_onscreen*/
+ if( g_stm_area == StmAreaNoOnScreen )
+ {
+ ZOSL_OslRestOns0e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_undo*/
+ else if( g_stm_event == StmEvtNoUndo )
+ {
+ /*stt_prv_layer_on_screen_none*/
+ if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoNone )
+ {
+ ZOSL_OslRestOns0e2();
+ }
+ /*stt_prv_layer_on_screen_sys_alt*/
+ else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
+ {
+ ZOSL_OslRestOns0e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : OslRestOn */
+/* State : system_alert( No 1 ) */
+/****************************************/
+static void ZOSL_OslRestOns1Event( void )
+{
+ /*stt_restriction_mode_2_on*/
+ if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNo2On )
+ {
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_systemalert*/
+ if( g_stm_category == StmCtgNoSystemAlert )
+ {
+ /*ara_onscreen*/
+ if( g_stm_area == StmAreaNoOnScreen )
+ {
+ ZOSL_OslRestOns1e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_deactivate*/
+ else if( g_stm_event == StmEvtNoDeactivate )
+ {
+ /*ctg_systemalert*/
+ if( g_stm_category == StmCtgNoSystemAlert )
+ {
+ ZOSL_OslRestOns1e1();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_undo*/
+ else if( g_stm_event == StmEvtNoUndo )
+ {
+ /*stt_prv_layer_on_screen_none*/
+ if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoNone )
+ {
+ ZOSL_OslRestOns1e1();
+ }
+ /*stt_prv_layer_on_screen_sys_alt*/
+ else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
+ {
+ ZOSL_OslRestOns1e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event call function */
+/* STM : OslMain */
+/****************************************/
+void stm_osl_event_call( void )
+{
+ stm_osl_start_stm();
+ switch( ZOSL_OslMainState[ZOSL_OSLMAIN] )
+ {
+ case ZOSL_OSLMAINS0:
+ switch( ZOSL_OslMainState[ZOSL_OSLMAINS0F] )
+ {
+ case ZOSL_OSLRESTOFFS0:
+ ZOSL_OslRestOffs0Event();
+ break;
+ case ZOSL_OSLRESTOFFS1:
+ ZOSL_OslRestOffs1Event();
+ break;
+ case ZOSL_OSLRESTOFFS2:
+ ZOSL_OslRestOffs2Event();
+ break;
+ default:
+ /*Not accessible to this else (default).*/
+ break;
+ }
+ ZOSL_OslMains0Event();
+ break;
+ case ZOSL_OSLMAINS1:
+ switch( ZOSL_OslMainState[ZOSL_OSLMAINS1F] )
+ {
+ case ZOSL_OSLRESTONS0:
+ ZOSL_OslRestOns0Event();
+ break;
+ case ZOSL_OSLRESTONS1:
+ ZOSL_OslRestOns1Event();
+ break;
+ default:
+ /*Not accessible to this else (default).*/
+ break;
+ }
+ ZOSL_OslMains1Event();
+ break;
+ default:
+ /*Not accessible to this else (default).*/
+ break;
+ }
+}
+
+/****************************************/
+/* Initial function */
+/* STM : OslMain */
+/****************************************/
+void stm_osl_initialize( void )
+{
+ ZOSL_OslMainState[ZOSL_OSLMAIN] = ( uint8_t )ZOSL_OSLMAINS0;
+ ZOSL_OslMainState[ZOSL_OSLMAINS0F] = ( uint8_t )ZOSL_OSLRESTOFFS0;
+ ZOSL_OslMainState[ZOSL_OSLMAINS1F] = ( uint8_t )ZOSL_OSLRESTONS0;
+ ZOSL_OslMains0StateEntry();
+}
+
+/****************************************/
+/* Terminate function */
+/* STM : OslMain */
+/****************************************/
+void ZOSL_OslMainTerminate( void )
+{
+ ZOSL_OslMainState[ZOSL_OSLMAIN] = ( uint8_t )ZOSL_OSLMAINTERMINATE;
+}
+