-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproj1AppC.nc
49 lines (43 loc) · 1.49 KB
/
proj1AppC.nc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Copyright (c) 2006 Intel Corporation
* All rights reserved.
*
* This file is distributed under the terms in the attached INTEL-LICENSE
* file. If you do not find these files, copies can be found by writing to
* Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA,
* 94704. Attention: Intel License Inquiry.
*/
/**
* Oscilloscope demo application. Uses the demo sensor - change the
* new DemoSensorC() instantiation if you want something else.
*
* See README.txt file in this directory for usage instructions.
*
* @author David Gay
*/
configuration proj1AppC { }
implementation {
components proj1C, MainC, ActiveMessageC, RandomMlcgC, RandomC, LedsC, ActiveMessageAddressC;
components new TimerMilliC() as LclTime;
components new TimerMilliC() as PeriodTimer;
components new TimerMilliC() as QTimer;
components new TimerMilliC() as PktTimer;
components new DemoSensorC() as Sensor;
components new AMSenderC( AM_PROJ_1 );
components new AMReceiverC( AM_PROJ_1 );
proj1C.Boot -> MainC;
proj1C.RadioControl -> ActiveMessageC;
proj1C.Packet -> AMSenderC;
proj1C.AMPacket -> AMSenderC;
proj1C.AMSend -> AMSenderC;
proj1C.Receive -> AMReceiverC;
proj1C.LclTime -> LclTime;
proj1C.PeriodTimer -> PeriodTimer;
proj1C.QTimer -> QTimer;
proj1C.PktTimer -> PktTimer;
proj1C.Read -> Sensor;
proj1C.Leds -> LedsC;
proj1C.ActiveMessageAddress -> ActiveMessageAddressC;
proj1C.Seed -> RandomMlcgC.SeedInit;
proj1C.Random -> RandomC;
}