啟動表要放在
mint_cm/mcm_daemon/mcm_module 內, 新增一個 C 檔案, 內容為 :
#include "mcm_lib/mcm_lheader/mcm_type.h"
#include "mcm_lib/mcm_lheader/mcm_return.h"
#include "mcm_lib/mcm_lheader/mcm_debug.h"
#include "../mcm_action_handle_define.h"
struct mcm_action_module_t MCM_ACTION_CUSTOM_MODULE_BOOT_PROFILE_LIST_NAME[] =
{
{""}
};
struct mcm_action_module_t MCM_ACTION_CUSTOM_MODULE_BOOT_OTHER_LIST_NAME[] =
{
{""}
};
int MCM_ACTION_CUSTOM_RESET_DEFAULT_NAME(
void)
{
return MCM_RCODE_PASS;
}
此章節只需要用到
MCM_ACTION_CUSTOM_MODULE_BOOT_OTHER_LIST_NAME[]
在列表中填入要執行的模組函式名稱, 會依序執行, 最後一組必須要是 {""}.
例如 :
struct mcm_action_module_t MCM_ACTION_CUSTOM_MODULE_BOOT_OTHER_LIST_NAME[] =
{
{"mcm_module_boot_config_01"},
{"mcm_module_boot_config_02"},
{"mcm_module_boot_config_03"},
{"mcm_module_boot_config_01"},
{""}
}