Exemplo n.º 1
0
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();
}
Exemplo n.º 2
0
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();
}
Exemplo n.º 3
0
OT_WEAK ot_u16 otapi_sysinit() {
#   if (OT_FEATURE(M2))
    dll_refresh();
#   endif
    return 1;
}