这是一个UCOSIII移植到STM32F2XX上的例子,内部有详尽的注释。这也是本人工作这么久,辛苦总结的。uC/OS-III(Micro C OS Three 微型的C 语言编写的操作系统第3版)是一个可升级的,可固化的,基于优先级的实时内核。它对任务的个数无限制。uC/OS-III 是一个第3 代的系统内核,支持现代的实时内核所期待的大部分功能。例如资源管理,同步,任务间的通信等等。然而,uC/OS-III 提供的特色功能在其它的实时内核中是找不到的,比如说完备的运行时间测量性能,直接地发送信号或者消息到任务,任务可以同时等待多个内核对象等
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001116s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.095943s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001056s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001180s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001019s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003136s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000854s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003634s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.018250s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001496s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 328949 [ RunTime:0.019192s ]