ATmega32 发表于 2007-8-15 17:41:01

第一次用usmartX RTOS,两个实验(LED闪烁,歌曲菊花台)

第一次用usmartX RTOS,两个实验(LED闪烁,歌曲菊花台)

(WinAVR2007+ATmega16,内部RC 8Mhz)





usmartX RTOS占用sram少。

可移植性非常好。与平台相关的只有三个函数,关中断INT_Disable,

开中断INT_Enable和恢复中断INT_Restore,全部移植代码不超多20行。



两个实验,

一个LED实验,每1S闪烁一次。PORD7接LED.

一个菊花台歌曲实验,PORD7接轰鸣器.



点击此处下载armok01166538.rar

点击此处下载armok01166539.rar

eddia2000 发表于 2007-8-15 19:09:54

好,但請樓主將usmartX RTOS的源代碼貼出來,讓大家試試 ...

ATmega32 发表于 2007-8-15 21:27:26

http://usmartx.sourceforge.net/



What is uSmartX ?



uSmartX is a non-preemptive, multitasking, priority based RTOS. It features necessary mechanisms for inter-task communication and basic task and time control functions. uSmartX is targeted for small foot-print embedded designs. Being a non-preemptive kernel it consumes little memory and it is very simple to use. It is already being used in many designs, proving that a huge, full-preeemptive kernel is not always the best solution.

capron 发表于 2008-4-11 01:25:02

记号一下,,,

luckseason 发表于 2013-9-11 09:58:09

mark一下。
页: [1]
查看完整版本: 第一次用usmartX RTOS,两个实验(LED闪烁,歌曲菊花台)