据说cocoOS也能用,我刚刚开始看,先在这里写一笔。回头看了再来说说
Rough guide:
1. XC8 V1.20 may not work. use V1.12
2. download the latest source from http://www.cocoos.net
3. create a project that includes all the .c file. and use #include <xc.h>
4. create HW timer ISR that calls os_tick() function. you decide the tick interval. 10 ms should be OK.
5. create test programs as shown in http://www.cocoos.net/started.html & http://www.cocoos.net/tasks.html
6. use a UART port to output trace msg from printf() function. To capture OS error, make os_assert() to call printf().