mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 01:27:11 +08:00
feat(wpa2): add wpa2_enterprise to esp8266
This commit is contained in:
@ -86,6 +86,9 @@ static void esp_wifi_set_debug_log()
|
||||
#endif
|
||||
#if CONFIG_ESP8266_WIFI_DEBUG_LOG_SUBMODULE_FRAG
|
||||
wifi_log_submodule |= WIFI_LOG_SUBMODULE_FRAG;
|
||||
#endif
|
||||
#if CONFIG_ESP8266_WIFI_DEBUG_LOG_SUBMODULE_WPA2
|
||||
wifi_log_submodule |= WIFI_LOG_SUBMODULE_WPA2;
|
||||
#endif
|
||||
esp_wifi_internal_set_log_level(wifi_log_level);
|
||||
esp_wifi_internal_set_log_mod(wifi_log_submodule);
|
||||
|
@ -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);
|
||||
}
|
Reference in New Issue
Block a user