資源簡介
MTK向來都是資料保密,對于學習其中的技術非常不方便,該資料是我開發過程中總結和網絡收集得到的一些資料,希望對你有幫助。
代碼片段和文件信息
/***************************************************************
?*?demo1.c?????????????????????????????????????????????????????*
?*?????????????????????????????????????????????????????????????*
?*?task_1和task_2基于時間片輪轉調度,兩個任務為同優先級的任務??*
?*?????????????????????????????????????????????????????????????*
?*?designed?by?bobey
?***************************************************************/
/*?Include?necessary?files.??*/
#include?
#include?
#include?
#include?
#include“2410addr.h“
#include“2410lib.h“
/*?Include?necessary?Nucleus?PLUS?files.??*/
#include??“nucleus.h“
/*?Application?Structures?*/
NU_TASK?????????Task_1;
NU_TASK?????????Task_2;
NU_MEMORY_POOL??System_Memory;
extern??int?ERC_System_Error(int);
/*?Function?Prototypes?*/
VOID????task_1(UNSIGNED?argc?VOID?*argv);
VOID????task_2(UNSIGNED?argc?VOID?*argv);
/*?Define?the?Application_Initialize?routine?that?determines?the?initial
???Nucleus?PLUS?application?environment.??*/
void????Application_Initialize(void?*first_available_memory)
{
VOID???????????*pointer;
STATUS?????????status;
?
/*--------------------------uart?initialize---------------------------------*/
?????ChangeClockDivider(11);
?????ChangeMPllValue(0xa10x30x1);???
?????Port_Init();
?????Uart_Select(0);
?????Uart_Init(0115200);
?????Uart_Printf(“Nucleus?is?running!\n“);
?????EnableTimer0();
/*----------------------------end-------------------------------------------*/
????/*?Create?a?system?memory?pool?that?will?be?used?to?allocate?task?stacks
???????queue?areas?etc.??*/
????status?=?NU_Create_Memory_Pool(&System_Memory?“SYSMEM“
????????????????????????first_available_memory?25000?50?NU_FIFO);
????if?(status?!=?NU_SUCCESS)
????{
????
????????ERC_System_Error(status);
????}
????else
????{
????????Uart_Printf(“System_Memory?have?been?created!\n“);
????}
????/*?Create?each?task?in?the?system.??*/
????/*?Create?task1.*/
????NU_Allocate_Memory(&System_Memory?&pointer?512?NU_NO_SUSPEND);
????status=NU_Create_Task(&Task_1?“TASK?1“?task_1?0?NULL?pointer
??????????????????????????????????????512?3?10?NU_PREEMPT?NU_START);
????if?(status?!=?NU_SUCCESS)
????{
????
???? ERC_System_Error(status);
????}
????else
????{
????????Uart_Printf(“Task1?have?been?created\n“);
????
????}
????/*?Create?task2.*/
????NU_Allocate_Memory(&System_Memory?&pointer?512?NU_NO_SUSPEND);
????status=NU_Create_Task(&Task_2?“TASK?2“?task_2?0?NULL?pointer
??????????????????????????????????????512?3?10?NU_PREEMPT?NU_START);
????if?(status?!=?NU_SUCCESS)
????{
???? ????
???? ERC_System_Error(status);
????}
????else
????{
????????Uart_Printf(“task2?have?been?created\n“);
????????Uart_Printf(“-----------------------\n“);
????}
????
}
//--------------------------------------------------------------------//
/*?Define?the?system?timer?task.??More?complicated?systems?might?use?a
???routine?like?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????808115??2010-10-13?16:58??MMI函數手冊.pdf
?????文件?????491008??2010-10-13?17:43??mtk?俄羅斯方塊移植.doc
?????文件?????196608??2010-10-13?17:03??mtk.doc
?????文件????1195371??2008-12-15?23:30??MTK_Device?Driver_Training.pdf
?????文件????8747283??2010-10-13?17:46??MTK_MMI源碼.rar
?????文件?????411648??2010-10-13?17:00??MTK入門導讀.doc
?????文件????1923922??2010-10-13?17:05??MTK源碼分析_Nucleus.pdf
?????文件?????104209??2009-04-04?22:25??Nucleus?plus?移植筆記.pdf
?????文件?????392297??2004-04-12?08:43??Nucleus?PLUS參考手冊.pdf
?????文件??????44032??2007-06-26?10:19??MTK_Study\MTK?Audio?Pla
?????文件?????496128??2007-06-22?17:52??MTK_Study\MTK學習-資源.doc
?????文件?????496128??2007-06-22?17:52??MTK_Study\MTK學習.doc
?????文件??????24064??2007-06-22?16:38??MTK_Study\MTK平臺?MMI學習總結一.doc
?????文件?????438784??2007-06-26?17:57??MTK_Study\MTK系統與驅動.doc
?????文件??????67072??2007-06-22?18:22??MTK_Study\NVRAM_READ&WRITE.doc
?????文件??????41472??2007-06-25?10:37??MTK_Study\關于Draw?Manager.doc
?????文件?????281031??2007-01-08?13:50??MTK的L4層的就夠分析\DT\DT_Porting_Guide.pdf
?????文件????1004545??2007-01-08?13:50??MTK的L4層的就夠分析\L4_PHB\DD_PHB.pdf
?????文件?????453372??2007-01-08?13:51??MTK的L4層的就夠分析\L4_PHB\HLD_PHB.pdf
?????文件?????344694??2007-01-08?13:51??MTK的L4層的就夠分析\L4_PHB\MSC_PHB.pdf
?????文件?????343645??2007-01-08?13:51??MTK的L4層的就夠分析\L4_PHB\SAP_PHB.pdf
?????文件?????374383??2007-01-08?13:52??MTK的L4層的就夠分析\L4_UEM\SAP_UEM_L4C.pdf
?????文件?????238257??2007-01-08?13:49??MTK的L4層的就夠分析\MTK_PS_Customer_Document_Release_Set.pdf
?????文件????1151891??2007-01-08?13:49??MTK的L4層的就夠分析\SAP_L4A_MMI.pdf
?????文件?????236569??2009-12-21?12:16??MTk培訓資料\20099219112813045—編程規范與原則.pdf
?????文件?????529852??2005-07-07?17:05??MTk培訓資料\BB?Tranning.pdf
?????文件???14580688??2008-08-05?13:36??MTk培訓資料\MMI實例培訓教程.pdf
?????文件?????613807??2009-06-11?12:00??MTk培訓資料\mtk?api函數文檔?一個擁有平臺所有api函數的說明文檔.pdf
?????文件?????750269??2008-08-05?13:34??MTk培訓資料\mtk+訓練課程.pdf
?????文件?????222726??2006-10-20?19:36??nucleus實驗\實驗程序\2410nuplus\2410nuplus\2410nuplus.mcp
............此處省略161個文件信息
評論
共有 條評論