The download includes the kernel source code, and a demo application for EVERY
RTOS port. See http://www.freertos.org/a00017.html for full details of the
directory structure and information on locating the files you require.
The easiest way to use FreeRTOS is start start with one of the demo application
projects. Once this is running the project can be modified to include your own
source files. This way the correct files and compiler options will be
automatically included in your application.
+ The Source directory contains the real time kernel source files for every
port. The kernel itself is only 3 files.
+ The Demo directory contains the demo application source files for every
port.
+ The TraceCon directory contains the trace visualisation exe file.
See the readme files in the respective directories for further information.
完成在S3C2410處理器上移植μC/OS-II內(nèi)核,然后實(shí)現(xiàn)以下多任務(wù):
a) 控制實(shí)驗(yàn)箱核心板上4盞LED燈輪流亮滅;
b) 將LED1連接到ARM9-2410EP增強(qiáng)型實(shí)驗(yàn)箱擴(kuò)展口的DA OUT端口,通過實(shí)驗(yàn)箱上的鍵盤(比如“↑”、“↓”鍵)控制LED1亮暗變化,同時(shí)在超級(jí)終端顯示該控制值;
c) 將LED2連接到擴(kuò)展口的I/O輸出口,通過超級(jí)終端按鍵控制LED2亮滅,即按一下PC的超級(jí)終端某個(gè)鍵(比如回車鍵)LED2滅,再按LED2亮,反復(fù)循環(huán)。
fft.c--This computes an in-place complex-to-complex FFT
x and y are the real and imaginary arrays of 2^m points.
dir = 1 gives forward transform
dir = -1 gives reverse transform