OT_WEAK void dll_systask_rf(ot_task task) { ///Block callbacks while this runs (?) //radio_gag(); //do { switch (sys.task_RFA.event) { // Refresh task case 0: dll_refresh(); break; // Processing case 1: dll_processing(); break; // Session Activation: this can activate Radio Exotasks. case 2: dll_activate(); break; // RX Scan Timeout Watchdog case 3: dll_scan_timeout(); break; // CSMA Manager (needed for archaic radios only) //case 4: dll_txcsma(); break; // TX & CSMA Timeout Watchdog default: rm2_kill(); break; } //} while ((task->event != 0) && (task->nextevent <= 0)); //radio_ungag(); }
OT_WEAK void dll_init(void) { /// Initialize Radio radio_init(); /// Initialize all upper-layer elements of the protocol stack network_init(); m2qp_init(); auth_init(); /// Load the Network settings from ISF 0 to the dll.netconf buffer, reset /// the session, and send system to idle. dll_refresh(); }
OT_WEAK ot_u16 otapi_sysinit() { # if (OT_FEATURE(M2)) dll_refresh(); # endif return 1; }