void openwsn_init() { // drivers openserial_init(); // stack // cross-layer idmanager_init(); // call first since initializes e.g. EUI64 openqueue_init(); openrandom_init(); opentimers_init(); // 02a-TSCH ieee154e_init(); // 02b-RES schedule_init(); res_init(); neighbors_init(); nf_init(); //noise floor module // 03a-IPHC openbridge_init(); iphc_init(); // 03b-IPv6 forwarding_init(); icmpv6_init(); icmpv6echo_init(); icmpv6router_init(); icmpv6rpl_init(); // 04-TRAN opentcp_init(); openudp_init(); opencoap_init(); // initialize before any of the CoAP clients // 07-App //--CoAP //rwellknown_init(); //rreg_init(); //rinfo_init(); //rleds_init(); //rt_init(); //rex_init(); //rheli_init(); //rrube_init(); //rxl1_init(); //layerdebug_init(); //--UDP /*udpecho_init(); udpinject_init(); udpprint_init();*/ //udprand_init(); //udpstorm_init(); //--TCP /*ohlone_init(); tcpecho_init(); tcpinject_init(); tcpprint_init();*/ //--misc //heli_init(); //imu_init(); //bbk_init(); //hdl_init(); }
void openstack_init(OpenMote* self) { //===== drivers openserial_init(self); //===== stack //-- cross-layer idmanager_init(self); // call first since initializes EUI64 and isDAGroot openqueue_init(self); openrandom_init(self); opentimers_init(self); //-- 02a-TSCH adaptive_sync_init(self); ieee154e_init(self); //-- 02b-RES schedule_init(self); sixtop_init(self); neighbors_init(self); //-- 03a-IPHC openbridge_init(self); iphc_init(self); //-- 03b-IPv6 forwarding_init(self); icmpv6_init(self); icmpv6echo_init(self); icmpv6rpl_init(self); //-- 04-TRAN opentcp_init(self); openudp_init(self); opencoap_init(self); // initialize before any of the CoAP applications //===== applications openapps_init(self); openserial_printInfo(self, COMPONENT_OPENWSN,ERR_BOOTED, (errorparameter_t)0, (errorparameter_t)0 ); }