feat(wpa2): add wpa2_enterprise to esp8266

This commit is contained in:
Chen Wen
2019-09-25 19:34:49 +08:00
parent 96c6e0fc5b
commit 95ed4d1e50
113 changed files with 28437 additions and 33 deletions

View File

@ -145,3 +145,27 @@ void *__wifi_task_top_sp(void)
return pxCurrentTCB[0];
}
void* __wifi_semphr_create(uint32_t max, uint32_t init)
{
return (void*)xSemaphoreCreateCounting(max, init);
}
void __wifi_semphr_delete(void* semphr)
{
vSemaphoreDelete(semphr);
}
int32_t __wifi_semphr_take(void* semphr, uint32_t block_time_tick)
{
if (block_time_tick == OSI_FUNCS_TIME_BLOCKING) {
return (int32_t)xSemaphoreTake(semphr, portMAX_DELAY);
} else {
return (int32_t)xSemaphoreTake(semphr, block_time_tick);
}
}
int32_t __wifi_semphr_give(void* semphr)
{
return (int32_t)xSemaphoreGive(semphr);
}