File: end_deviceBasicAppC.nc

package info (click to toggle)
tinyos 2.1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 47,476 kB
  • ctags: 36,607
  • sloc: ansic: 63,646; cpp: 14,974; java: 10,358; python: 5,215; makefile: 1,724; sh: 902; asm: 597; xml: 392; perl: 74; awk: 46
file content (50 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download
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
50
/*
 * @author Stefano Tennina <sota@isep.ipp.pt>
 *
 */

#include <Timer.h>
#include "nwk_enumerations.h"


#if defined(PLATFORM_TELOSB)
	#include "UserButton.h"
#endif

#include "nwk_const_end_device.h"

configuration end_deviceBasicAppC {
} 
implementation
{
	components MainC;
	components LedsC;
	components end_deviceBasicC as App;
	App.Boot -> MainC;
	App.Leds -> LedsC;

	components new TimerMilliC() as T_init;
	App.T_init -> T_init;
	components new TimerMilliC() as KeepAliveTimer;
	App.KeepAliveTimer -> KeepAliveTimer;
	components new TimerMilliC() as NetAssociationDeferredTimer;
	App.NetAssociationDeferredTimer -> NetAssociationDeferredTimer;

#if defined(PLATFORM_TELOSB)
	//User Button
	components UserButtonC;
	App.Get -> UserButtonC;
	App.Notify -> UserButtonC;
#endif

	components NWKC;

	App.NLDE_DATA ->NWKC.NLDE_DATA;
	App.NLME_NETWORK_DISCOVERY -> NWKC.NLME_NETWORK_DISCOVERY;
	App.NLME_JOIN -> NWKC.NLME_JOIN;
	App.NLME_LEAVE -> NWKC.NLME_LEAVE;
	App.NLME_RESET -> NWKC.NLME_RESET;
	App.NLME_SYNC -> NWKC.NLME_SYNC;
	App.NLME_GET -> NWKC.NLME_GET;
	App.NLME_SET -> NWKC.NLME_SET;
}