wifi: refactor code to match ethernet's init function structure

This commit is contained in:
Kedar Sovani
2017-08-17 09:41:34 +05:30
parent 8348a71847
commit 4c1c62a453
4 changed files with 36 additions and 2 deletions
+6
View File
@@ -165,6 +165,12 @@ esp_err_t esp_event_process_default(system_event_t *event);
*/
void esp_event_set_default_eth_handlers();
/**
* @brief Install default event handlers for Wi-Fi interfaces (station and AP)
*
*/
void esp_event_set_default_wifi_handlers();
#ifdef __cplusplus
}
#endif
@@ -45,6 +45,12 @@ extern "C" {
* Alloc resource for WiFi driver, such as WiFi control structure, RX/TX buffer,
* WiFi NVS structure among others.
*
* For the most part, you need not call this function directly. It gets called
* from esp_wifi_init().
*
* This function may be called, if you only need to initialize the Wi-Fi driver
* without having to use the network stack on top.
*
* @param config provide WiFi init configuration
*
* @return