NVRAM_READ&WRITENVRAM runs as a task in MTK, and NVRAM runs as an independent task. In the nvram_main.c file, (the code has been deleted, and the comments are marked in yellow for easy reading) void nvram_task_main(task_entry_struct *task_entry_ptr) { kal_get_my_task_index(&my_index); /* nvram special service */ nvram_special_service(); while (1) { //Get the message from Q receive_msg_ext_q(task_info_g[task_entry_ptr- >task_indx].task_ext_qid, ¤t_ilm); stack_set_active_module_id(my_index, current_ilm.dest_mod_id); // Process the message nvram_main(¤t_ilm); // Release the message free_ilm(¤t_ilm); }} Nvram_main function, processing NVRAM related messages void nvram_main(ilm_struct *ilm_ptr){ if (ilm_ptr != NULL) { if ((ilm_ptr->msg_id >= MSG_ID_NVRAM_CODE_BEGIN) && (ilm_ptr->msg_id
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore