上一页 1 ··· 9 10 11 12 13 14 15 下一页
摘要: Contiki源码结构 apps目录下,用于存放Application,也就是我们的应用程序放在这个目录下。如webserver,webrowser等,如下图所示。 core目录是contiki操作系统的内核所在。 其中cfs是contiki file system interface 模块,pro 阅读全文
posted @ 2016-10-23 12:03 我是老邱 阅读(3922) 评论(1) 推荐(0)
摘要: 一、rtimer概述 The Contiki rtimer library provides scheduling and execution of real-time tasks (with predictable execution times) 数据结构: 1、rtimer_init rtim 阅读全文
posted @ 2016-10-13 21:03 我是老邱 阅读(1516) 评论(0) 推荐(0)
摘要: Ctimer 提供和Etimer类似的功能,只是Ctimer是在一段时间后调用回调函数,没有和特定进程相关联。 而Etimer是在一段时间后发送PROCESS_EVENT_TIMER事件给特定的进程。 一、Ctimer数据结构 全局变量ctimer_list: 采用库LIST来实现链表的各种操作。 阅读全文
posted @ 2016-10-13 16:26 我是老邱 阅读(2185) 评论(0) 推荐(0)
摘要: 一、Etimer概述 Etimer提供产生时间事件(timed event)的机制,当设定好的timer到期时,将会给设定etimer的process发送一个PROCESS_EVENT_TIMER 事件。 Etimer模块调用clock_time获得当前系统的时间。 The Contiki etim 阅读全文
posted @ 2016-10-13 10:07 我是老邱 阅读(2391) 评论(0) 推荐(0)
摘要: 一、Timer API The Contiki timer library provides functions for setting, resetting and restarting timers, and for checking if a timer has expired. An app 阅读全文
posted @ 2016-10-12 15:22 我是老邱 阅读(1545) 评论(0) 推荐(0)
摘要: 一、functions for handling system time 这些函数都是platform dependent的,我们是在stm8中实现的。 其中我们的clock_time_t是unsigned long型的,在stm8中unsigned long是32bit,最大数值是42949672 阅读全文
posted @ 2016-10-12 11:30 我是老邱 阅读(1118) 评论(0) 推荐(0)
摘要: Contiki有一个clock模块和一系列timer模块:timer,stimer,ctimer,etimer,和rtimer。 一、clock模块 clock模块提供一些处理系统时间的函数,还有一些用来阻塞CPU的函数。 timer模块的实现以clock模块为基础。 二、timer和stimer模 阅读全文
posted @ 2016-10-12 10:22 我是老邱 阅读(1359) 评论(0) 推荐(0)
摘要: 最近遇到了这个比较奇葩的问题。 有两个设备,分别和电脑的串口助手进行串口通信,都没问题,都可以正常通信。 但是,把这两个设备连接起来,却不能通信!! 检查了一下,电平转换没问题,都是符合RS232标准的,否则也不可能跟电脑串口进行通信。 检查是否直通和交叉线的问题,也不是,连线是正常的。 用示波器查 阅读全文
posted @ 2016-10-11 17:14 我是老邱 阅读(4676) 评论(0) 推荐(0)
摘要: 一、RS-232引脚定义(DB9) 一般只关注三个管脚,即RX,TX,GND 1、RS-232(母头/孔型) 引脚2:TX 引脚3:RX 引脚5:GND 2、RS-232(公头/针型) 引脚2:RX 引脚3:TX 引脚5:GND 注:公头和母头的TX和RX调转了,因为串口通信时发送端的TX要连接接收 阅读全文
posted @ 2016-10-11 16:46 我是老邱 阅读(1132) 评论(0) 推荐(0)
摘要: 一、设置括号自动补全 其中花括号{设置,自动补全并换行缩进,这在写函数的时候或语句块的时候特别有用。 注:inoremap { {}<ESC>i<CR><ESC>V<O 这句在我的环境中有问题,后来改为 inoremap { {<CR>}<ESC>O 参考: http://blog.csdn.net 阅读全文
posted @ 2016-09-05 23:20 我是老邱 阅读(23651) 评论(0) 推荐(2)
上一页 1 ··· 9 10 11 12 13 14 15 下一页