摘要: // 顶层配件为空configuration BlinkAppC{} implementation{ // 因为使用MainC中导出的Boot接口 components MainC; components BlinkM as App,LedsC; // tos\system\TimerMilliC. 阅读全文
posted @ 2017-03-15 23:47 未命名blogs 阅读(223) 评论(0) 推荐(0) 编辑
摘要: user@XubunTOS:~/.local/share/Trash/files$ pwd/home/user/.local/share/Trash/filesuser@XubunTOS:~/.local/share/Trash/files$ 阅读全文
posted @ 2017-03-15 23:26 未命名blogs 阅读(353) 评论(0) 推荐(0) 编辑
摘要: // tos启动时点亮Led module PowerupC @safe(){ // 使用Boot接口,Boot接口中只有一个事件booted,模块使用接口时,要实现接口中的事件 // 根据提供接口要实现接口中的命令 uses interface Boot; // Leds也只是接口而已 uses 阅读全文
posted @ 2017-03-15 22:34 未命名blogs 阅读(221) 评论(0) 推荐(0) 编辑