esp32: optimize wifi lock

Replace portENTER_CRITICAL/portEXIT_CRITICAL with semaphore lock if
the protected resource is only accessed by different tasks
This commit is contained in:
Liu Zhi Fu
2018-05-04 10:36:04 +08:00
parent aa66a0c848
commit 017f109f6e