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

📄 platform creation and testing - tinyos documentation wiki.htm

📁 从官方网站上下载tinyos2.0的学习指南
💻 HTM
📖 第 1 页 / 共 2 页
字号:
to pull inputs down to get a LO, and the input voltages measured between .001 
and .05 Volts. The sequences and flashing times used can be changed in 
TestNewPlatformIOP.nc if you want a different "user interface"... </P>
<P>Here is the core of the TestNewPlatformIOP.nc program, showing use of the new 
names for MSP430 port pins: </P>
<P><BR></P><PRE> event void Timer.fired() {    
   periodhalf =&nbsp;!periodhalf; //every other time period get a pin value.
   if (counter == 0x0)  { pinHi = call Pin0.get();
</PRE>
<P>You could get fancier displaying the pin number or the pin value read. What 
is more important for understanding tinyOS is that Pin0.get() is a renaming of 
GeneralIO.get, one of the built in interfaces, and that it has been mapped to a 
specific port using names from HplMsp430GeneralIOC.nc. In HplMsp430GeneralIOC.nc 
we see lines like: </P><PRE> ADC0 = P60;
</PRE>
<P><BR></P><PRE> #ifdef __msp430_have_port6
   Port60 = P60;
</PRE>
<P>Port60 has two names. Both work fine -- Port60 or ADC0. P60 is a local name 
not usable anywhere else. </P>
<P>By John Griessen www.ecosensory.com copyright 2007 </P><A 
name=Related_Documentation></A>
<H1><SPAN class=mw-headline>Related Documentation</SPAN></H1>
<UL>
  <LI><A class="external text" 
  title=http://tinyos.net/tinyos-2.x/doc/html/tep2.html 
  href="http://tinyos.net/tinyos-2.x/doc/html/tep2.html" rel=nofollow>TEP 2: 
  Hardware Abstraction Architecture</A> 
  <LI><A class="external text" 
  title=http://tinyos.net/tinyos-2.x/doc/html/tep107.html 
  href="http://tinyos.net/tinyos-2.x/doc/html/tep107.html" rel=nofollow>TEP 107: 
  TinyOS 2.x Boot Sequence</A> 
  <LI><A class="external text" 
  title=http://tinyos.net/tinyos-2.x/doc/html/tep109.html 
  href="http://tinyos.net/tinyos-2.x/doc/html/tep109.html" rel=nofollow>TEP 109: 
  Sensors and Sensor Boards</A> 
  <LI><A class="external text" 
  title=http://tinyos.net/tinyos-2.x/doc/html/tep114.html 
  href="http://tinyos.net/tinyos-2.x/doc/html/tep114.html" rel=nofollow>TEP 114: 
  SIDs: Source and Sink Independent Drivers</A> 
  <LI><A class="external text" 
  title=http://tinyos.net/tinyos-2.x/doc/html/tep117.html 
  href="http://tinyos.net/tinyos-2.x/doc/html/tep117.html" rel=nofollow>TEP 117: 
  Low-level I/O</A> 
  <LI><A class="external text" 
  title=http://nescc.sourceforge.net/papers/nesc-ref.pdf 
  href="http://nescc.sourceforge.net/papers/nesc-ref.pdf" rel=nofollow>nesC 
  reference manual (pdf file)</A> 
  <LI><A class="external text" 
  title=http://csl.stanford.edu/~pal/pubs/tinyos-programming-1-0.pdf 
  href="http://csl.stanford.edu/~pal/pubs/tinyos-programming-1-0.pdf" 
  rel=nofollow>TinyOS Programming Guide (pdf file)</A> </LI></UL>
<HR>

<CENTER>
<P>&lt; <B><A title="Writing Low-Power Applications" 
href="http://docs.tinyos.net/index.php/Writing_Low-Power_Applications">Previous 
Lesson</A></B> | <B><A title="TinyOS Tutorials" 
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials">Top</A></B> &gt; 
</P></CENTER><!-- Saved in parser cache with key tinyosdocs:pcache:idhash:48-0!1!0!!en!2!edit=0 and timestamp 20080401083421 -->
<DIV class=printfooter>Retrieved from "<A 
href="http://docs.tinyos.net/index.php/Platform_Creation_and_Testing">http://docs.tinyos.net/index.php/Platform_Creation_and_Testing</A>"</DIV><!-- end content -->
<DIV class=visualClear></DIV></DIV></DIV></DIV>
<DIV id=column-one>
<DIV class=portlet id=p-cactions>
<H5>Views</H5>
<DIV class=pBody>
<UL>
  <LI class=selected id=ca-nstab-main><A title="View the content page [c]" 
  accessKey=c 
  href="http://docs.tinyos.net/index.php/Platform_Creation_and_Testing">Article</A> 

  <LI class=new id=ca-talk><A title="Discussion about the content page [t]" 
  accessKey=t 
  href="http://docs.tinyos.net/index.php?title=Talk:Platform_Creation_and_Testing&amp;action=edit">Discussion</A> 

  <LI id=ca-viewsource><A 
  title="This page is protected. You can view its source. [e]" accessKey=e 
  href="http://docs.tinyos.net/index.php?title=Platform_Creation_and_Testing&amp;action=edit">View 
  source</A> 
  <LI id=ca-history><A title="Past versions of this page. [h]" accessKey=h 
  href="http://docs.tinyos.net/index.php?title=Platform_Creation_and_Testing&amp;action=history">History</A> 
  </LI></UL></DIV></DIV>
<DIV class=portlet id=p-personal>
<H5>Personal tools</H5>
<DIV class=pBody>
<UL>
  <LI id=pt-login><A 
  title="You are encouraged to log in, it is not mandatory however. [o]" 
  accessKey=o 
  href="http://docs.tinyos.net/index.php?title=Special:Userlogin&amp;returnto=Platform_Creation_and_Testing">Log 
  in / create account</A> </LI></UL></DIV></DIV>
<DIV class=portlet id=p-logo><A title="Visit the Main Page [z]" 
style="BACKGROUND-IMAGE: url(/images/tos-jwall-small.jpg)" accessKey=z 
href="http://docs.tinyos.net/index.php/Main_Page"></A></DIV>
<SCRIPT type=text/javascript> if (window.isMSIE55) fixalpha(); </SCRIPT>

<DIV class=portlet id=p-navigation>
<H5>Navigation</H5>
<DIV class=pBody>
<UL>
  <LI id=n-mainpage><A title="Visit the Main Page [z]" accessKey=z 
  href="http://docs.tinyos.net/index.php/Main_Page">Main Page</A> 
  <LI id=n-portal><A 
  title="About the project, what you can do, where to find things" 
  href="http://docs.tinyos.net/index.php/TinyOS_Documentation_Wiki:Community_Portal">Community 
  portal</A> 
  <LI id=n-currentevents><A 
  title="Find background information on current events" 
  href="http://docs.tinyos.net/index.php/Current_events">Current events</A> 
  <LI id=n-recentchanges><A title="The list of recent changes in the wiki. [r]" 
  accessKey=r 
  href="http://docs.tinyos.net/index.php/Special:Recentchanges">Recent 
  changes</A> 
  <LI id=n-randompage><A title="Load a random page [x]" accessKey=x 
  href="http://docs.tinyos.net/index.php/Special:Random">Random page</A> 
  <LI id=n-help><A title="The place to find out." 
  href="http://docs.tinyos.net/index.php/Help:Contents">Help</A> 
  <LI id=n-sitesupport><A title="Support us" 
  href="http://docs.tinyos.net/index.php/TinyOS_Documentation_Wiki:Site_support">Donations</A> 
  </LI></UL></DIV></DIV>
<DIV class=portlet id=p-search>
<H5><LABEL for=searchInput>Search</LABEL></H5>
<DIV class=pBody id=searchBody>
<FORM id=searchform action=/index.php/Special:Search>
<DIV><INPUT id=searchInput title="Search TinyOS Documentation Wiki [f]" 
accessKey=f name=search> <INPUT class=searchButton id=searchGoButton type=submit value=Go name=go>&nbsp; <INPUT class=searchButton id=mw-searchButton type=submit value=Search name=fulltext> 
</DIV></FORM></DIV></DIV>
<DIV class=portlet id=p-tb>
<H5>Toolbox</H5>
<DIV class=pBody>
<UL>
  <LI id=t-whatlinkshere><A title="List of all wiki pages that link here [j]" 
  accessKey=j 
  href="http://docs.tinyos.net/index.php/Special:Whatlinkshere/Platform_Creation_and_Testing">What 
  links here</A> 
  <LI id=t-recentchangeslinked><A 
  title="Recent changes in pages linked from this page [k]" accessKey=k 
  href="http://docs.tinyos.net/index.php/Special:Recentchangeslinked/Platform_Creation_and_Testing">Related 
  changes</A> 
  <LI id=t-upload><A title="Upload images or media files [u]" accessKey=u 
  href="http://docs.tinyos.net/index.php/Special:Upload">Upload file</A> 
  <LI id=t-specialpages><A title="List of all special pages [q]" accessKey=q 
  href="http://docs.tinyos.net/index.php/Special:Specialpages">Special pages</A> 

  <LI id=t-print><A title="Printable version of this page [p]" accessKey=p 
  href="http://docs.tinyos.net/index.php?title=Platform_Creation_and_Testing&amp;printable=yes">Printable 
  version</A> 
  <LI id=t-permalink><A title="Permanent link to this version of the page" 
  href="http://docs.tinyos.net/index.php?title=Platform_Creation_and_Testing&amp;oldid=386">Permanent 
  link</A> </LI></UL></DIV></DIV></DIV><!-- end of the left (by default at least) column -->
<DIV class=visualClear></DIV>
<DIV id=footer>
<DIV id=f-poweredbyico><A href="http://www.mediawiki.org/"><IMG 
alt="Powered by MediaWiki" 
src="Platform Creation and Testing - TinyOS Documentation Wiki.files/poweredby_mediawiki_88x31.png"></A></DIV>
<UL id=f-list>
  <LI id=lastmod>This page was last modified 23:57, 6 January 2008. 
  <LI id=viewcount>This page has been accessed 589 times. 
  <LI id=privacy><A title="TinyOS Documentation Wiki:Privacy policy" 
  href="http://docs.tinyos.net/index.php/TinyOS_Documentation_Wiki:Privacy_policy">Privacy 
  policy</A> 
  <LI id=about><A title="TinyOS Documentation Wiki:About" 
  href="http://docs.tinyos.net/index.php/TinyOS_Documentation_Wiki:About">About 
  TinyOS Documentation Wiki</A> 
  <LI id=disclaimer><A title="TinyOS Documentation Wiki:General disclaimer" 
  href="http://docs.tinyos.net/index.php/TinyOS_Documentation_Wiki:General_disclaimer">Disclaimers</A> 
  </LI></UL></DIV>
<SCRIPT type=text/javascript>if (window.runOnloadHook) runOnloadHook();</SCRIPT>
</DIV><!-- Served in 0.430 secs. --></BODY></HTML>

⌨️ 快捷键说明

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