forked from espressif/esp-idf
Minor comment cleanup
Remove old commented code, etc.
This commit is contained in:
@@ -217,9 +217,7 @@ void user_start_cpu0(void) {
|
|||||||
|
|
||||||
esp_event_init(NULL);
|
esp_event_init(NULL);
|
||||||
|
|
||||||
// TODO: consider ethernet interface
|
|
||||||
tcpip_adapter_init();
|
tcpip_adapter_init();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_WIFI_ENABLED && CONFIG_WIFI_AUTO_STARTUP
|
#if CONFIG_WIFI_ENABLED && CONFIG_WIFI_AUTO_STARTUP
|
||||||
|
@@ -32,7 +32,7 @@ typedef enum {
|
|||||||
SYSTEM_EVENT_STA_CONNECTED, /**< ESP32 station connected to AP */
|
SYSTEM_EVENT_STA_CONNECTED, /**< ESP32 station connected to AP */
|
||||||
SYSTEM_EVENT_STA_DISCONNECTED, /**< ESP32 station disconnected to AP */
|
SYSTEM_EVENT_STA_DISCONNECTED, /**< ESP32 station disconnected to AP */
|
||||||
SYSTEM_EVENT_STA_AUTHMODE_CHANGE, /**< the auth mode of AP connected by ESP32 station changed */
|
SYSTEM_EVENT_STA_AUTHMODE_CHANGE, /**< the auth mode of AP connected by ESP32 station changed */
|
||||||
SYSTEM_EVENT_STA_GOTIP,
|
SYSTEM_EVENT_STA_GOTIP, /**< ESP32 station received IP address */
|
||||||
SYSTEM_EVENT_AP_START, /**< ESP32 softap start */
|
SYSTEM_EVENT_AP_START, /**< ESP32 softap start */
|
||||||
SYSTEM_EVENT_AP_STOP, /**< ESP32 softap start */
|
SYSTEM_EVENT_AP_STOP, /**< ESP32 softap start */
|
||||||
SYSTEM_EVENT_AP_STACONNECTED, /**< a station connected to ESP32 soft-AP */
|
SYSTEM_EVENT_AP_STACONNECTED, /**< a station connected to ESP32 soft-AP */
|
||||||
|
@@ -97,7 +97,6 @@
|
|||||||
/** print debug message only if debug message type is enabled...
|
/** print debug message only if debug message type is enabled...
|
||||||
* AND is of correct type AND is at least LWIP_DBG_LEVEL
|
* AND is of correct type AND is at least LWIP_DBG_LEVEL
|
||||||
*/
|
*/
|
||||||
//#define LWIP_DEBUGF(debug, message) do {
|
|
||||||
#define LWIP_DEBUGF(debug, message) do { \
|
#define LWIP_DEBUGF(debug, message) do { \
|
||||||
if ( \
|
if ( \
|
||||||
((debug) & LWIP_DBG_ON) && \
|
((debug) & LWIP_DBG_ON) && \
|
||||||
|
@@ -296,7 +296,6 @@ sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
|
|||||||
while (1){
|
while (1){
|
||||||
LWIP_DEBUGF(THREAD_SAFE_DEBUG, ("sys_arch_mbox_fetch: fetch mbox=%p os_mbox=%p lock=%p\n", mbox, (*mbox)->os_mbox, (*mbox)->lock));
|
LWIP_DEBUGF(THREAD_SAFE_DEBUG, ("sys_arch_mbox_fetch: fetch mbox=%p os_mbox=%p lock=%p\n", mbox, (*mbox)->os_mbox, (*mbox)->lock));
|
||||||
if (pdTRUE == xQueueReceive((*mbox)->os_mbox, &(*msg), portMAX_DELAY)){
|
if (pdTRUE == xQueueReceive((*mbox)->os_mbox, &(*msg), portMAX_DELAY)){
|
||||||
//if (pdTRUE == xQueueReceive((*mbox)->os_mbox, &(*msg), 3000/portTICK_RATE_MS)){ //ESP32_WORKAROUND
|
|
||||||
LWIP_DEBUGF(THREAD_SAFE_DEBUG, ("sys_arch_mbox_fetch:mbox rx msg=%p\n", (*msg)));
|
LWIP_DEBUGF(THREAD_SAFE_DEBUG, ("sys_arch_mbox_fetch:mbox rx msg=%p\n", (*msg)));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -451,10 +450,7 @@ static portMUX_TYPE g_lwip_mux = portMUX_INITIALIZER_UNLOCKED;
|
|||||||
sys_prot_t
|
sys_prot_t
|
||||||
sys_arch_protect(void)
|
sys_arch_protect(void)
|
||||||
{
|
{
|
||||||
#if 1//ESP32_WORKAROUND
|
|
||||||
//vTaskEnterCritical();
|
|
||||||
portENTER_CRITICAL(&g_lwip_mux);
|
portENTER_CRITICAL(&g_lwip_mux);
|
||||||
#endif
|
|
||||||
return (sys_prot_t) 1;
|
return (sys_prot_t) 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -469,10 +465,7 @@ void
|
|||||||
sys_arch_unprotect(sys_prot_t pval)
|
sys_arch_unprotect(sys_prot_t pval)
|
||||||
{
|
{
|
||||||
(void) pval;
|
(void) pval;
|
||||||
#if 1 //ESP32_WORKAROUND
|
|
||||||
//vTaskExitCritical();
|
|
||||||
portEXIT_CRITICAL(&g_lwip_mux);
|
portEXIT_CRITICAL(&g_lwip_mux);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
Reference in New Issue
Block a user