文件名称:SCH51-Preemptive-task
介绍说明--下载内容来自于网络,使用问题请自行百度
实用的多任务排序Preemptive task
,如果任务A和任务B定时同时定时到,该执行哪个?如果执行A,那么B就得舍弃,注意,是舍弃,不是等一会再执行B。还有,如果某个任务执行时间出现抖动,整个系统和其它任务都要遭殃了,等等。
在我的代码中,力求解决这些问题。在此,我不打算带着大家一行一行分析代码。这玩意讲解没用,自己去悟懂了才是王道,我的代码注释得已经很详细了其实。
代码的重点是SCH51.C和T0_INIT.C两个文件,使用之前一定要先看看CONFIG.H的配置情况。task.c文件内容你可以自定义来实现。其它的我都有注释的。
-If the task is very large, the timer big trouble, because the microcontroller interrupt program should end as soon as possible. Moreover, if the timing of the task A and task B simultaneously timed to the implementation of what? If you do A, then B must abandon, note that is discarded and not wait for a while before running B. Also, if a task execution time jitter occurs, the entire system and other tasks have to suffer, and so on. In my code, to try to resolve these issues. At this point, I do not intend to bring everyone to the code line by line analysis. This stuff is useless to explain, understand themselves to realize is king, my code was already very detailed notes in fact. Code is focused SCH51.C and T0_INIT.C two documents, we must first look CONFIG.H before using the configuration. task.c contents of the file you can customize to achieve. I have another comment.
,如果任务A和任务B定时同时定时到,该执行哪个?如果执行A,那么B就得舍弃,注意,是舍弃,不是等一会再执行B。还有,如果某个任务执行时间出现抖动,整个系统和其它任务都要遭殃了,等等。
在我的代码中,力求解决这些问题。在此,我不打算带着大家一行一行分析代码。这玩意讲解没用,自己去悟懂了才是王道,我的代码注释得已经很详细了其实。
代码的重点是SCH51.C和T0_INIT.C两个文件,使用之前一定要先看看CONFIG.H的配置情况。task.c文件内容你可以自定义来实现。其它的我都有注释的。
-If the task is very large, the timer big trouble, because the microcontroller interrupt program should end as soon as possible. Moreover, if the timing of the task A and task B simultaneously timed to the implementation of what? If you do A, then B must abandon, note that is discarded and not wait for a while before running B. Also, if a task execution time jitter occurs, the entire system and other tasks have to suffer, and so on. In my code, to try to resolve these issues. At this point, I do not intend to bring everyone to the code line by line analysis. This stuff is useless to explain, understand themselves to realize is king, my code was already very detailed notes in fact. Code is focused SCH51.C and T0_INIT.C two documents, we must first look CONFIG.H before using the configuration. task.c contents of the file you can customize to achieve. I have another comment.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/Main.obj
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/Sch51.obj
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/SCH51_App
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/SCH51_App.hex
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/SCH51_App.lnp
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/SCH51_App.plg
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/T0_init.obj
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/task.obj
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/config.h.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/Main.c.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/Sch51.c.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/SCH51.h.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/T0_init.c.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/T0_init.h.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/task.c.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/TASK.h.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/Read me.txt
SCH51 ★★★★★★★ -抢占式-完/SCH51/SCH51/config.h
SCH51 ★★★★★★★ -抢占式-完/SCH51/SCH51/Sch51.c
SCH51 ★★★★★★★ -抢占式-完/SCH51/SCH51/Sch51.h
SCH51 ★★★★★★★ -抢占式-完/SCH51/SCH51/T0_init.c
SCH51 ★★★★★★★ -抢占式-完/SCH51/SCH51/T0_init.h
SCH51 ★★★★★★★ -抢占式-完/SCH51/task/task.c
SCH51 ★★★★★★★ -抢占式-完/SCH51/task/task.h
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/Main.c
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/Main.LST
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/Sch51.lst
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/SCH51_App.m51
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/SCH51_App.uvopt
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/SCH51_App.uvproj
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/SCH51_App_uvopt.bak
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/SCH51_App_uvproj.bak
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/T0_init.lst
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/task.lst
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/SCH51
SCH51 ★★★★★★★ -抢占式-完/SCH51/task
SCH51 ★★★★★★★ -抢占式-完/SCH51/user
SCH51 ★★★★★★★ -抢占式-完/SCH51
SCH51 ★★★★★★★ -抢占式-完
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/Sch51.obj
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/SCH51_App
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/SCH51_App.hex
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/SCH51_App.lnp
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/SCH51_App.plg
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/T0_init.obj
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug/task.obj
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/config.h.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/Main.c.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/Sch51.c.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/SCH51.h.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/T0_init.c.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/T0_init.h.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/task.c.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf/TASK.h.pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/Read me.txt
SCH51 ★★★★★★★ -抢占式-完/SCH51/SCH51/config.h
SCH51 ★★★★★★★ -抢占式-完/SCH51/SCH51/Sch51.c
SCH51 ★★★★★★★ -抢占式-完/SCH51/SCH51/Sch51.h
SCH51 ★★★★★★★ -抢占式-完/SCH51/SCH51/T0_init.c
SCH51 ★★★★★★★ -抢占式-完/SCH51/SCH51/T0_init.h
SCH51 ★★★★★★★ -抢占式-完/SCH51/task/task.c
SCH51 ★★★★★★★ -抢占式-完/SCH51/task/task.h
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/Main.c
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/Main.LST
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/Sch51.lst
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/SCH51_App.m51
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/SCH51_App.uvopt
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/SCH51_App.uvproj
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/SCH51_App_uvopt.bak
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/SCH51_App_uvproj.bak
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/T0_init.lst
SCH51 ★★★★★★★ -抢占式-完/SCH51/user/task.lst
SCH51 ★★★★★★★ -抢占式-完/SCH51/debug
SCH51 ★★★★★★★ -抢占式-完/SCH51/pdf
SCH51 ★★★★★★★ -抢占式-完/SCH51/SCH51
SCH51 ★★★★★★★ -抢占式-完/SCH51/task
SCH51 ★★★★★★★ -抢占式-完/SCH51/user
SCH51 ★★★★★★★ -抢占式-完/SCH51
SCH51 ★★★★★★★ -抢占式-完
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.