doc

MTK log, NVRAM operation, suitable for beginners

  • 2013-09-29
  • 65.5KB
  • Points it Requires : 2

              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

unfold

You Might Like

Uploader
justyouandmehr
 

Recommended ContentMore

Popular Components

Just Take a LookMore

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
×