📄 read.me
字号:
Things To Know Before Using This Port
1. In order to use this port, you must have Micro-C 8051 Development Kit from Dunfield Development Systems(www.dunfield.com). The kit costs about $100, which includes a compiler, a source linker, an assembler, and an IDE program.
2. If you haven't got the source code for ucOS-II, please purchase the book MicroC/OS-II written by Jean. J Labrosse. There is a floppy disk coming with the book, which contains all source code for ucOS-II. This book is highly recommanded for anyone who wants to improve their knowledge on real-time embedded systems as well as real-time kernel.
3. Install Micro-C 8051 Development Kit. Make sure the following environment varibles are set up for using Micro C 8051 compiler:
MCDIR=C:\MC
MCTMP=C:\TEMP\
4. To change the interrupt vector base address, use the local copy of 8051INT.h. Change the following line in the header file:
#define INTBASE $0000
5. Modify the build.bat file to build the image for different memory models. Please refer to the technical manual of Micro-C 8051 Development Kit for details on what memory models are available and how to select them.
6. To configure the memory map for your application, please also refer to the technical manual of Micro-C 8051 Kit.
7. Modify the build.bat file to add new C files for your application. Currently, main.c is a demo program showing you how to use ucOS-II, and os_cpu.c contains the 8051 port; ucos-II.c is the operating system source code, which should be obtained from the Book written by Mr. Labrosse mentioned earlier.
8. Make sure all ucos2 source files are in the current directory.
9. WARNING: Micro-C C compiler is not ANSI compatible. When trying to compile the ucOS-II source code, you will run into problems. For example, typedef is not supported. You will have to modify the source code to keep the compiler happy. Be very careful when you modifying the code, the integrity of the source must not be compromised. Please refer to the compiler manual for details (MC51.txt in the docs directory).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -