]> granicus.if.org Git - esp-idf/commitdiff
wifi: Map esp_wifi_init() to esp_wifi_init_internal()
authorKedar Sovani <kedars@gmail.com>
Mon, 7 Aug 2017 05:05:36 +0000 (10:35 +0530)
committerKedar Sovani <kedars@gmail.com>
Wed, 16 Aug 2017 10:24:28 +0000 (15:54 +0530)
Follow-on patches will include additional functionality in
esp_wifi_init()

components/esp32/event_default_handlers.c
components/esp32/include/esp_wifi_internal.h

index 04a74f59da7fbafa75230c97f0d27a268ec5921d..118277656774fe1f28e8da6501b41c192d74589b 100644 (file)
@@ -408,3 +408,8 @@ esp_err_t esp_event_process_default(system_event_t *event)
     }
     return ESP_OK;
 }
+
+esp_err_t esp_wifi_init(wifi_init_config_t *config)
+{
+     return esp_wifi_init_internal(config);
+}
index 09813bfa1bf7efd67ce3ea3be8b35761737d8989..e86d60f7fa9407efa38fe3619f06dc16a50e43c4 100644 (file)
 extern "C" {
 #endif
 
+/**
+ * @brief Initialize Wi-Fi Driver
+ *     Alloc resource for WiFi driver, such as WiFi control structure, RX/TX buffer,
+ *     WiFi NVS structure among others.
+ *
+ * @param  config provide WiFi init configuration
+ *
+ * @return
+ *    - ESP_OK: succeed
+ *    - ESP_ERR_WIFI_NO_MEM: out of memory
+ *    - others: refer to error code esp_err.h
+ */
+esp_err_t esp_wifi_init_internal(wifi_init_config_t *config);
+
 /**
   * @brief  get whether the wifi driver is allowed to transmit data or not
   *