tmr_counter_enable(TMR1, FALSE);
tmr_flag_clear(TMR1, TMR_OVF_FLAG);
can_wake_int();
crm_periph_clock_enable(CRM_GPIOC_PERIPH_CLOCK,FALSE);
crm_periph_clock_enable(CRM_GPIOA_PERIPH_CLOCK,TRUE);
crm_periph_clock_enable(CRM_GPIOB_PERIPH_CLOCK,TRUE);
crm_periph_clock_enable(CRM_USART3_PERIPH_CLOCK,FALSE);
crm_clock_source_enable(CRM_CLOCK_SOURCE_LICK,TRUE);
system_core_clock_update();
pwc_deep_sleep_mode_enter(PWC_DEEP_SLEEP_ENTER_WFE);
crm_clock_source_enable(CRM_CLOCK_SOURCE_HEXT,TRUE);
system_core_clock_update();
crm_periph_clock_enable(CRM_GPIOC_PERIPH_CLOCK,TRUE);
crm_periph_clock_enable(CRM_GPIOA_PERIPH_CLOCK,TRUE);
crm_periph_clock_enable(CRM_GPIOB_PERIPH_CLOCK,TRUE);
crm_periph_clock_enable(CRM_USART3_PERIPH_CLOCK,TRUE);
logic_key_clear();
can_wake_deint();
tmr_counter_enable(TMR1, TRUE);
tmr_flag_clear(TMR1, TMR_OVF_FLAG);
OLED_BLK_Set();
DTU_Pwr_Set();
这个流程可行吗?
|