TinyOS操作系统研究与实现.pptVIP

  • 18
  • 0
  • 约4.59千字
  • 约 23页
  • 2018-05-14 发布于四川
  • 举报
目录 一、无线传感器网络 三、串口通信实现 通过串口设备将将网关板的串口与计算机的串口连接起来,用编译软件对nesC程序进行编译。按网关板上的复位键RESET(每按一次都会输出一段信息),最终实现串口通信 。 SerialDebug.nc代码为 configuration SerialDebug { } implementation { components SerialDebugM; /* SerialDebug模块程序,用于实现具体代码 */ components MainC; /* TinyOS2主模块,这里用于关联系统启动 */ /* SerialDebug模块程序的Boot接口与系统Boot接口关联 这样系统启动时会调用SerialDebugM的Boot接口 */ SerialDebugM.Boot - MainC.Boot; components PlatformSerialC; SerialDebugM.CC2430UartControl - PlatformSerialC; } 串口调试程序的实现模块代码: @author @date */ /* 定义调试级别,参加Makefile的ADBG_LEVEL定义,设置大于等于ADBG_LEVEL

文档评论(0)

1亿VIP精品文档

相关文档