]> oss.titaniummirror.com Git - tinyos-2.x.git/blob - apps/tests/TestFTSP/TestFTSPC.nc
simple test app to test FTSP
[tinyos-2.x.git] / apps / tests / TestFTSP / TestFTSPC.nc
1 /*
2 * Copyright (c) 2002, Vanderbilt University
3 * All rights reserved.
4 *
5 * Permission to use, copy, modify, and distribute this software and its
6 * documentation for any purpose, without fee, and without written agreement is
7 * hereby granted, provided that the above copyright notice, the following
8 * two paragraphs and the author appear in all copies of this software.
9 *
10 * IN NO EVENT SHALL THE VANDERBILT UNIVERSITY BE LIABLE TO ANY PARTY FOR
11 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
12 * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE VANDERBILT
13 * UNIVERSITY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 *
15 * THE VANDERBILT UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES,
16 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
17 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
18 * ON AN "AS IS" BASIS, AND THE VANDERBILT UNIVERSITY HAS NO OBLIGATION TO
19 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
20 *
21 * @author: Miklos Maroti, Brano Kusy (kusy@isis.vanderbilt.edu)
22 * Ported to T2: 3/17/08 by Brano Kusy (branislav.kusy@gmail.com)
23 */
24
25 #include "TestFTSP.h"
26 #include "RadioCountToLeds.h"
27
28 configuration TestFTSPC {
29 }
30
31 implementation {
32 components MainC, TimeSyncC;
33
34 MainC.SoftwareInit -> TimeSyncC;
35 TimeSyncC.Boot -> MainC;
36
37 components TestFTSPAppC as App;
38 App.Boot -> MainC;
39
40 components ActiveMessageC;
41 App.RadioControl -> ActiveMessageC;
42 App.Receive -> ActiveMessageC.Receive[AM_RADIO_COUNT_MSG];
43 App.AMSend -> ActiveMessageC.AMSend[AM_TEST_FTSP_MSG];
44 App.Packet -> ActiveMessageC;
45 App.PacketTimeStamp -> ActiveMessageC;
46
47 components LedsC;
48
49 App.GlobalTime -> TimeSyncC;
50 App.TimeSyncInfo -> TimeSyncC;
51 App.Leds -> LedsC;
52
53 }