⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 untitl~1.searchresults

📁 transplant uc/os2 on coldfire5307 编译通过
💻 SEARCHRESULTS
📖 第 1 页 / 共 5 页
字号:
---- Task Matches (816 in 15 files) ----
Main.c (ex_mcf): *  We need a heartbeat for the uC/OS task scheduler to use for
Main.c (ex_mcf): *  task preemption.  This should have a 10 ms period to match the
Main.c (ex_mcf):/*  StartupTask
Main.c (ex_mcf): *	Task function for system startup task created in main().  Its
Main.c (ex_mcf): *  primary duty is to enable the tick interrupt so that the task
Main.c (ex_mcf): *  one task is created and running (e.g. this task) to eliminate a
Main.c (ex_mcf):void StartupTask(void *data)
Main.c (ex_mcf):    OSTaskDel(OS_PRIO_SELF);
Main.c (ex_mcf):	OS_STK StartupTaskStack[1024];
Main.c (ex_mcf):    memset(StartupTaskStack, 0x55, sizeof(StartupTaskStack));
Main.c (ex_mcf):    OSTaskCreate(StartupTask,
Main.c (ex_mcf):		 &StartupTaskStack[1023],
Os_cfg.h (ex_mcf):#define OS_MAX_TASKS             10    /* Max. number of tasks in your application ...                 */
Os_cfg.h (ex_mcf):#define OS_TASK_IDLE_STK_SIZE   64   /* Idle task stack size (# of OS_STK wide entries)              */
Os_cfg.h (ex_mcf):#define OS_TASK_STAT_EN           0    /* Enable (1) or Disable(0) the statistics task                 */
Os_cfg.h (ex_mcf):#define OS_TASK_STAT_STK_SIZE   512    /* Statistics task stack size (# of OS_STK wide entries)        */
Os_cfg.h (ex_mcf):                                       /* --------------------- TASK MANAGEMENT ---------------------- */
Os_cfg.h (ex_mcf):#define OS_TASK_CHANGE_PRIO_EN    0    /*     Include code for OSTaskChangePrio()                      */
Os_cfg.h (ex_mcf):#define OS_TASK_CREATE_EN         1    /*     Include code for OSTaskCreate()                          */
Os_cfg.h (ex_mcf):#define OS_TASK_CREATE_EXT_EN     0   /*     Include code for OSTaskCreateExt()                       */
Os_cfg.h (ex_mcf):#define OS_TASK_DEL_EN            1    /*     Include code for OSTaskDel()                             */
Os_cfg.h (ex_mcf):#define OS_TASK_SUSPEND_EN        0    /*     Include code for OSTaskSuspend() and OSTaskResume()      */
Os_cfg.h (ex_mcf):#define OS_TASK_QUERY_EN          0    /*     Include code for OSTaskQuery()                           */
Test.c (ex_mcf):#define  TASK_STK_SIZE                 512       /* Size of each task's stacks (# of WORDs)            */
Test.c (ex_mcf):#define  N_TASKS                       4      /* Number of identical tasks                          */
Test.c (ex_mcf):OS_STK        TaskStk[N_TASKS][TASK_STK_SIZE];        /* Tasks stacks                                  */
Test.c (ex_mcf):OS_STK        TaskStartStk[TASK_STK_SIZE];
Test.c (ex_mcf):char          TaskData[N_TASKS];                      /* Parameters to pass to each task               */
Test.c (ex_mcf):void  Task(void *pdata);                       /* Function prototypes of tasks                  */
Test.c (ex_mcf):        void  TaskStart(void *data);                  /* Function prototypes of Startup task           */
Test.c (ex_mcf):static  void  TaskStartCreateTasks(void);
Test.c (ex_mcf):#define 	NTASK	4
Test.c (ex_mcf):/*  ShortTask
Test.c (ex_mcf): *	Demonstrates that a task which returns does fall into the
Test.c (ex_mcf): *  provided call site and subsequently calls OSTaskDel().
Test.c (ex_mcf):void ShortTask(void *pdata)
Test.c (ex_mcf):unsigned char task[]=" Now light the leds!!!!\r\n";
Test.c (ex_mcf): UART1WritePacket(imm, task, sizeof(task)+1);
Test.c (ex_mcf):OS_STK ShortStack[1024][NTASK];
Test.c (ex_mcf): *  task defined.
Test.c (ex_mcf): *	Called during the initialization task during uC/OS kernel
Test.c (ex_mcf): *  startup to create all interesting tasks in the system.  If this
Test.c (ex_mcf): *  function exits, the startup task will commit suicide.  If a system
Test.c (ex_mcf): *  task running at a priority lower than all tasks other than the
Test.c (ex_mcf): *  OS low priority tasks is needed, then the startup task may be
Test.c (ex_mcf):    OSTaskCreate(ShortTask,
Test.c (ex_mcf):    for (i = 0; i < NTASK; i++) {                        /* Create N_TASKS identical tasks           */
Test.c (ex_mcf):        TaskData[i] = '0' + i;                             /* Each task will display its own letter    */
Test.c (ex_mcf):        OSTaskCreate(Task, (void *)&TaskData[i], &TaskStk[i][TASK_STK_SIZE - 1], i + 1);
Test.c (ex_mcf):void  Task (void* pdata)
Test.c (ex_mcf):        unsigned char task[]=" TASK!!!!\r\n";
Test.c (ex_mcf):    for (x=0;x<NTASK;x++) {
Test.c (ex_mcf):         UART1WritePacket(imm, task, sizeof(task)+1);
Os_cpu.h (mcf5307):# define  OS_TASK_SW()         asm volatile (" trap #14 ");
Os_cpu.h (mcf5307):# define  OS_TASK_SW()         asm (" trap #14 ");
Os_cpu_c.c (mcf5307):/*  TaskCallSite
Os_cpu_c.c (mcf5307): *	Provide a simulated call site for every task function.
Os_cpu_c.c (mcf5307): *  This allows a task function which accidentally returns to
Os_cpu_c.c (mcf5307):void TaskCallSite()
Os_cpu_c.c (mcf5307):    //printf("!!!!! Task at prio %d function returned.\n", OSPrioCur);
Os_cpu_c.c (mcf5307):    OSTaskDel(OS_PRIO_SELF);
Os_cpu_c.c (mcf5307): * The INITIAL_SR makes each task start up with the following
Os_cpu_c.c (mcf5307):/*  OSTaskStkInit
Os_cpu_c.c (mcf5307): *	Build the initial stack frame for a new task.
Os_cpu_c.c (mcf5307): *  the task function and before the execution of any of the
Os_cpu_c.c (mcf5307): *  task function prolog.  A dummy return address will be pushed
Os_cpu_c.c (mcf5307): *  OSDeleteTask() to delete any task whos function returns.
Os_cpu_c.c (mcf5307): *                |PC of exception (task func)|
Os_cpu_c.c (mcf5307):OS_STK *OSTaskStkInit(void (*task)(void *pd), void  *pdata, OS_STK  *ptos,
Os_cpu_c.c (mcf5307):    *--stk = (OS_STK)pdata;		/* Task "function" parameters */
Os_cpu_c.c (mcf5307):    *--stk           = (long)task;	/* Task PC */
Os_cpu_c.c (mcf5307):     *  To support tasks built with the register calling convention,
Os_cpu_c.c (mcf5307):void OSTaskCreateHook(OS_TCB *ptcb)
Os_cpu_c.c (mcf5307):void OSTaskDelHook(OS_TCB *ptcb)
Os_cpu_c.c (mcf5307):	unsigned char task[]=" Nowtaskdel!!!!\r\n";
Os_cpu_c.c (mcf5307): UART1WritePacket(imm, task, sizeof(task)+1);
Os_cpu_c.c (mcf5307):void OSTaskSwHook(void)
Os_cpu_c.c (mcf5307):void OSTaskStatHook(void)
Os_cpu_c.c (mcf5307):void          OSTaskIdleHook(void){
Readme.txt:      test.c		Example task
Readme.txt:    timer in the first task executed by the call to OSStart().
Readme.txt:2.1 Returning from a task function
Readme.txt:    This port arranges the stack frame generated by OSTaskStkInit()
Readme.txt:    task function which accidentally exits to take some well-defined
Readme.txt:    simply deleting the task and continuing.
Os_core.c (source):static  void  OS_InitTaskIdle(void);
Os_core.c (source):static  void  OS_InitTaskStat(void);
Os_core.c (source):    OS_InitTaskIdle();                                           /* Create the Idle Task                     */
Os_core.c (source):#if OS_TASK_STAT_EN > 0
Os_core.c (source):    OS_InitTaskStat();                                           /* Create the Statistic Task                */
Os_core.c (source):*              a new, high-priority task, is ready to run.
Os_core.c (source):            if (OSPrioHighRdy != OSPrioCur) {              /* No Ctx Sw if current task is highest rdy */
Os_core.c (source):    if (OSRunning == TRUE) {                     /* Make sure multitasking is running                  */
Os_core.c (source):    if (OSRunning == TRUE) {                                   /* Make sure multitasking is running    */
Os_core.c (source):*                                          START MULTITASKING
Os_core.c (source):* Description: This function is used to start the multitasking process which lets uC/OS-II manages the
Os_core.c (source):*              task that you have created.  Before you can call OSStart(), you MUST have called OSInit()
Os_core.c (source):*              and you MUST have created at least one task.
Os_core.c (source):*                 a) Call OSTaskSwHook() then,
Os_core.c (source):*                 c) Load the context of the task pointed to by OSTCBHighRdy.
Os_core.c (source):*                 d_ Execute the task.
Os_core.c (source):        y             = OSUnMapTbl[OSRdyGrp];        /* Find highest priority's task priority number   */
Os_core.c (source):        OSTCBHighRdy  = OSTCBPrioTbl[OSPrioHighRdy]; /* Point to highest priority task ready to run    */
Os_core.c (source):        OSStartHighRdy();                            /* Execute target specific code to start task     */
Os_core.c (source):*              how high a 32-bit counter would count to in 1 second if no other tasks were to execute
Os_core.c (source):*              during that time.  CPU usage is then determined by a low priority task which keeps track
Os_core.c (source):*              of this 32-bit counter every second but this time, with other tasks running.  CPU usage is
Os_core.c (source):#if OS_TASK_STAT_EN > 0
Os_core.c (source):*              called by a high priority task.
Os_core.c (source):                    if ((ptcb->OSTCBStat & OS_STAT_SUSPEND) == OS_STAT_RDY) { /* Is task suspended?    */
Os_core.c (source):                        OSRdyGrp               |= ptcb->OSTCBBitY; /* No,  Make task R-to-R (timed out)*/
Os_core.c (source):                        ptcb->OSTCBDly = 1;                /* ... loosing the task when the ...        */
Os_core.c (source):* Description: This function doesn't do anything.  It is called by OSTaskDel().
Os_core.c (source):#if OS_TASK_DEL_EN > 0
Os_core.c (source):*                             MAKE TASK READY TO RUN BASED ON EVENT OCCURING
Os_core.c (source):* Description: This function is called by other uC/OS-II services and is used to ready a task that was
Os_core.c (source):INT8U  OS_EventTaskRdy (OS_EVENT *pevent, void *msg, INT8U msk)
Os_core.c (source):    y    = OSUnMapTbl[pevent->OSEventGrp];            /* Find highest prio. task waiting for message   */
Os_core.c (source):    prio = (INT8U)((y << 3) + x);                     /* Find priority of task getting the msg         */
Os_core.c (source):    if ((pevent->OSEventTbl[y] &= ~bitx) == 0x00) {   /* Remove this task from the waiting list        */
Os_core.c (source):        pevent->OSEventGrp &= ~bity;                  /* Clr group bit if this was only task pending   */
Os_core.c (source):    ptcb                 =  OSTCBPrioTbl[prio];       /* Point to this task's OS_TCB                   */
Os_core.c (source):    ptcb->OSTCBDly       =  0;                        /* Prevent OSTimeTick() from readying task       */
Os_core.c (source):    ptcb->OSTCBEventPtr  = (OS_EVENT *)0;             /* Unlink ECB from this task                     */
Os_core.c (source):    ptcb->OSTCBMsg       = msg;                       /* Send message directly to waiting task         */
Os_core.c (source):    if (ptcb->OSTCBStat == OS_STAT_RDY) {             /* See if task is ready (could be susp'd)        */
Os_core.c (source):        OSRdyGrp        |=  bity;                     /* Put task in the ready to run list             */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -