main_init
2016-09-13 15:41:50 0 举报
`main_init` 是一个常见的函数名,通常用于初始化主程序的运行环境。在许多编程语言中,`main_init` 函数是程序的入口点,它在程序开始运行时被调用。这个函数通常负责设置全局变量、创建对象、分配内存等任务,以确保程序能够顺利运行。 例如,在 Python 中,可以使用 `__name__ == '__main__':` 语句来检查当前模块是否作为主程序运行。然后,可以在 `main_init` 函数中编写初始化代码。当程序运行时,`main_init` 函数会被自动调用。
作者其他创作
大纲/内容
N
Hook_ECRetunrMainFuncKeepCondition()=0x33(EC leaves follow mode or EC scatch ROM )
main_service
disable all interrupt()(first disable all interrupt complete init reg and interrupt config.)
启动后初始化core_init.oem_init.(init reg and interrupt configuration)
while(1){main_service()} //polling
Y
Start
main1-2
Core_Initialization(); //init core regOem_Initialization();//init oem memoryInitEnableInterrupt(); //init interrupt config.
Direct_Map_Core_Flash(); //map flash WinFlashMark = 0x88;//A92WinFlashMark2 = 0x66;//A92Hook_ECExitFollowMode(); //exit follow modeInit_Kbd();Init_Timers(); //init kbd and timersEnableModuleInterrupt();
0 条评论
下一页
为你推荐
查看更多