MT25003D开关机振动

定义位置

1、开机振动

定义在mcu\plutommi\mmi\Bootup\BootupSrc\BootupFlow.cmmi_bootup_flow_early_init函数中,具体如下:

#if defined(__MMI_POWER_ON_OFF_MUTE__) || defined(__SMART_TERMINAL_SUPPER__)
    srv_vibrator_play_once();
#endif
2、关机振动

定义在mcu\plutommi\mmi\Shutdown\ShutdownSrc\ShutdownFlow.cmmi_shutdown_normal_start函数中,具体如下:

#if defined(__MMI_POWER_ON_OFF_MUTE__) || defined(__SMART_TERMINAL_SUPPER__)
    srv_vibrator_play_once();
#endif
3、重启振动

定义在mcu\plutommi\Service\ShutdownSrv\ShutdownSrv.csrv_reboot_normal_start函数中,具体如下:

#ifdef __MMI_POWER_ON_OFF_MUTE__
    srv_vibrator_play_once();
#endif

宏开关

__MMI_POWER_ON_OFF_MUTE__定义在mcu\plutommi\mmi\Inc\MMI_features.h下,

#if defined(CFG_MMI_POWER_ON_OFF_MUTE) && ((CFG_MMI_POWER_ON_OFF_MUTE == __ON__) || (CFG_MMI_POWER_ON_OFF_MUTE == __AUTO__))
    #ifndef __MMI_POWER_ON_OFF_MUTE__
    #define __MMI_POWER_ON_OFF_MUTE__
    #endif
#endif

__SMART_TERMINAL_SUPPER__分别在mcu\make文件夹下的Option.makULTRA2503D_11C_GPRS.mak中定义。

ifdef SMART_TERMINAL_SUPPER
    ifeq ($(strip $(SMART_TERMINAL_SUPPER)),TRUE)
        #COMMINCDIRS += interface\smartterminal
        COM_DEFS += __SMART_TERMINAL_SUPPER__
        #COM_DEFS += __DETECT_UNCALLIBRATON_SUPPER__
        #COM_DEFS += __CUSTOM_DEFAULT_MAC_SUPPER__
        COM_DEFS += __MMI_BATTERY_MULT_SHOW_SUPPORT__
        #COM_DEFS += __MMI_FACTORY_TEST_SUPPORT__
        #COM_DEFS += __MMI_TEST_LED_DISPLAY_SUPPORT__
    endif
endif
#**********************************************************************
#custom defined
#**********************************************************************
SMART_TERMINAL_SUPPER = TRUE 

你可能感兴趣的:(MT25003D开关机振动)