コード例 #1
0
ファイル: wlan.c プロジェクト: mileat/proj-emb
void wlan_init(tWlanCB     sWlanCB,
               tFWPatches sFWPatches,
               tDriverPatches sDriverPatches,
               tBootLoaderPatches sBootLoaderPatches,
               tWlanReadInteruptPin  sReadWlanInterruptPin,
               tWlanInterruptEnable  sWlanInterruptEnable,
               tWlanInterruptDisable sWlanInterruptDisable,
               tWriteWlanPin         sWriteWlanPin)
{
    c_wlan_init(sWlanCB, sFWPatches, sDriverPatches,\
                sBootLoaderPatches, sReadWlanInterruptPin,\
                sWlanInterruptEnable, sWlanInterruptDisable, sWriteWlanPin);
}
コード例 #2
0
ファイル: wlan.c プロジェクト: ianjuch/ee149
void wlan_init(tWlanCB     sWlanCB,
               tFWPatches sFWPatches,
               tDriverPatches sDriverPatches,
               tBootLoaderPatches sBootLoaderPatches,
               tWlanReadInteruptPin  sReadWlanInterruptPin,
               tWlanInterruptEnable  sWlanInterruptEnable,
               tWlanInterruptDisable sWlanInterruptDisable,
               tWriteWlanPin         sWriteWlanPin)
{
    OS_mutex_create(&g_main_mutex, "MainMutex");
    OS_semaphore_create(&g_spi_semaphore, "SpiSemaphore", 0);

    OS_mutex_lock(g_main_mutex, &mtx_key);
    g_select_thread = NULL;
    c_wlan_init(sWlanCB, sFWPatches, sDriverPatches,\
                sBootLoaderPatches, sReadWlanInterruptPin,\
                sWlanInterruptEnable, sWlanInterruptDisable, sWriteWlanPin);
    OS_mutex_unlock(g_main_mutex, mtx_key);
}