コード例 #1
0
OAL_STATIC oal_int32  device_module_init(oal_void)
{
    oal_int32  l_return  = OAL_FAIL;
    oal_uint16 us_bitmap = 0;

    //WLAN_EDA_TRACE_TAG(0x4210UL);
    l_return = hal_main_init();
    if (OAL_SUCC != l_return)
    {
        OAL_IO_PRINT("device_module_init: hal_main_init return error code: %d", l_return);
        return l_return;
    }

    //WLAN_EDA_TRACE_TAG(0x4220UL);
    l_return = dmac_main_init();
    if (OAL_SUCC != l_return)
    {
        OAL_IO_PRINT("device_module_init: dmac_main_init return error code: %d", l_return);
        us_bitmap = BIT4;
        builder_module_exit(us_bitmap);
        return l_return;
    }
#if (!defined(HI1102_EDA))
#if defined(_PRE_WLAN_ALG_ENABLE) || defined(_PRE_WLAN_CHIP_TEST_ALG)
    l_return = alg_main_init();
    if (OAL_SUCC != l_return)
    {
        OAL_IO_PRINT("device_module_init: alg_main_init return error code : %d", l_return);
        us_bitmap = BIT4 | BIT5;
        builder_module_exit(us_bitmap);
        return l_return;
    }
#endif
#endif

#if 0
#if (((_PRE_OS_VERSION_WIN32_RAW == _PRE_OS_VERSION)&&(_PRE_PRODUCT_ID_HI1102_DEV ==_PRE_PRODUCT_ID)) || (defined(HI1102_EDA)))
    /* ut工程打桩用:从host下发创建cfg_vap命令 */
    l_return = (oal_int32) device_test_create_cfg_vap();
    if (OAL_SUCC != l_return)
    {
        return l_return;
    }
#endif
#endif
    //WLAN_EDA_TRACE_TAG(0x4240UL);
    /*启动完成后,输出打印*/
    OAL_IO_PRINT("device_module_init:: device_module_init finish!\r\n");

    return OAL_SUCC;
}
コード例 #2
0
ファイル: swk.c プロジェクト: gaolin-hit/swk
int main(int argc, const char *argv[])
#endif
{
    oal_main_init();
    oam_main_init();
    hal_main_init();
    alg_main_init();
    
    oal_start_os();
    oam_log_err("hello=10\n");
    oam_log_warn("hello=10\n");
    oam_log_hpy("hello=10\n");
    oam_log_dbg("hello=10\n");

    return 0;
}