{"id":4784,"date":"2016-03-18T13:24:14","date_gmt":"2016-03-18T13:24:14","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=4784"},"modified":"2016-03-18T13:28:03","modified_gmt":"2016-03-18T13:28:03","slug":"tinyos","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=4784","title":{"rendered":"TinyOS"},"content":{"rendered":"<p><a href=\"http:\/\/www.tinyos.net\/\">TinyOS<\/a><br \/>\n<a href=\"https:\/\/github.com\/tinyos\/tinyos-main\">github: TinyOS<\/a>, Main development repository for TinyOS (an OS for embedded, wireless devices).<br \/>\n<a href=\"https:\/\/github.com\/tinyos\/nesc\">github: nesC<\/a>, an extension to the C programming language designed to embody the structuring concepts and execution model of TinyOS<br \/>\n<a href=\"http:\/\/tinyos.stanford.edu\/tinyos-wiki\/index.php\/Main_Page\">TinyOS Documentation Wiki<\/a><br \/>\n<a href=\"http:\/\/tinyos.stanford.edu\/tinyos-wiki\/index.php\/FAQ\">TinyOS FAQ<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/alignan\/misc\/tree\/master\/SigFoxTMPDemo\">github: SigFoxTMPDemo<\/a><\/p>\n<pre class=\"brush: plain; title: test.nc; notranslate\" title=\"test.nc\">\r\nmodule SigFoxTMPDemoC {\r\n  uses {\r\n    interface Boot;\r\n    interface Leds;\r\n\r\n    interface UartStream as UartStreamOut;\r\n    interface UartByte as UartByteOut;\r\n    interface Resource as UartResourceOut;\r\n    interface HplMsp430UsciA as UartConfigOut;\r\n\r\n    interface Timer&lt;TMilli&gt; as ReadTimer;\r\n    interface Timer&lt;TMilli&gt; as ReadRspBuffer;    \r\n    interface Read&lt;uint16_t&gt; as TempSensor;\r\n  }\r\n}\r\n\r\nconfiguration SigFoxTMPDemoAppC { }\r\n\r\nimplementation {\r\n  components MainC, LedsC, SigFoxTMPDemoC as App;\r\n\r\n  \/\/ Application\r\n  App.Boot -&gt; MainC;\r\n  App.Leds -&gt; LedsC;\r\n\r\n  \/\/ Serial to device\r\n  components new Msp430Uart1C();\r\n  App.UartStreamOut -&gt; Msp430Uart1C;\r\n  App.UartByteOut -&gt; Msp430Uart1C;\r\n  App.UartResourceOut -&gt; Msp430Uart1C.Resource; \r\n\r\n  components HplMsp430UsciA1C as UartConfigOut;\r\n  App.UartConfigOut -&gt; UartConfigOut;\r\n\r\n  \/\/ Timers\r\n  components new TimerMilliC() as ReadTimer;\r\n  App.ReadTimer -&gt; ReadTimer;\r\n  \r\n  components new TimerMilliC() as ReadRspBuffer;\r\n  App.ReadRspBuffer -&gt; ReadRspBuffer;\r\n\r\n  \/\/ Sensors\r\n  components new SimpleTMP102C() as Temperature;\r\n  App.TempSensor -&gt; Temperature;  \r\n\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>TinyOS github: TinyOS, Main development repository for TinyOS (an OS for embedded, wireless devices). github: nesC, an extension to the C programming language designed to embody the structuring concepts and execution model of TinyOS TinyOS Documentation Wiki TinyOS FAQ github: SigFoxTMPDemo module SigFoxTMPDemoC { uses { interface Boot; interface Leds; interface UartStream as UartStreamOut; interface [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4784","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/4784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4784"}],"version-history":[{"count":3,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/4784\/revisions"}],"predecessor-version":[{"id":4787,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/4784\/revisions\/4787"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}