⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis的0.9.5版本的源码。
💻
字号:
//  This file is part of MANTIS OS, Operating System//  See http://mantis.cs.colorado.edu/////  Copyright (C) 2003,2004,2005 University of Colorado, Boulder////  This program is free software; you can redistribute it and/or//  modify it under the terms of the mos license (see file LICENSE)Simple Network README:Multi thermal network is an app which will test many of the functions of MOS. It uses many of the different layers provided by the OS. Thetwo sending applications (light_send and temp_send) are identical exceptthat they sample from the light / temperature sensor respectively. Thereis an event layer which is used to determine the source, destinationand event type of each packet. This event header along with the sampleis packed into a comBuf and sent out through the net layer. In thisapplication we use the simple protocol, which appends the protcolID and the port we are sending on to the packet before sending it out through the communication layer. The sample is obtained using thedevice layer. On the receive side, we simply do a net_recv on the corresponding port which blocks until we recieve a packet. Next we determine thatthe packet is meant for the basestation (ID 0), and print out informationbased on which type of event it was.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -