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;
}
|