wifi: Map esp_wifi_init() to esp_wifi_init_internal()
Follow-on patches will include additional functionality in esp_wifi_init()
This commit is contained in:
parent
8063b93497
commit
55a6aca355
2 changed files with 19 additions and 0 deletions
|
@ -408,3 +408,8 @@ esp_err_t esp_event_process_default(system_event_t *event)
|
||||||
}
|
}
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
esp_err_t esp_wifi_init(wifi_init_config_t *config)
|
||||||
|
{
|
||||||
|
return esp_wifi_init_internal(config);
|
||||||
|
}
|
||||||
|
|
|
@ -40,6 +40,20 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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
|
* @brief get whether the wifi driver is allowed to transmit data or not
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue