嵌入式實(shí)時(shí)操作系統(tǒng)μC/OS-II(第2版)自帶光盤源碼
【原 書 名】 MicroC/OS-II The Real-Time Kernel,Second Edition
本書是MicroC/OSII The Real Time Kernel一書的第2版本,在第1版本(V2.0)基礎(chǔ)上做了重大改進(jìn)與升級(jí)。通過(guò)對(duì)μC/OSII源代碼的分析與描述,講述了多任務(wù)實(shí)時(shí)的基本概念、競(jìng)爭(zhēng)與調(diào)度算法、任務(wù)間同步與通信、存儲(chǔ)與定時(shí)的管理以及如何處理優(yōu)先級(jí)反轉(zhuǎn)問(wèn)題;介紹如何將μC/OSII移植到不同CPU上,如何調(diào)試移植代碼。在所附光盤中,給出已通過(guò)FAA安全認(rèn)證的μC/OSII V2.52的全部源碼以及可在PC機(jī)上運(yùn)行的移植范例。
μC/OS-II Goals
Probably the most important goal of μC/OS-II was to make it backward compatible with μC/OS (at least from an
application’s standpoint). A μC/OS port might need to be modified to work with μC/OS-II but at least, the application
code should require only minor changes (if any). Also, because μC/OS-II is based on the same core as μC/OS, it is just
as reliable. I added conditional compilation to allow you to further reduce the amount of RAM (i.e. data space) needed
by μC/OS-II. This is especially useful when you have resource limited products. I also added the feature described in
the previous section and cleaned up the code.
Where the book is concerned, I wanted to clarify some of the concepts described in the first edition and provide
additional explanations about how μC/OS-II works. I had numerous requests about doing a chapter on how to port
μC/OS and thus, such a chapter has been included in this book for μC/OS-II.