]> granicus.if.org Git - esp-idf/commitdiff
Minor comment cleanup
authorAngus Gratton <angus@espressif.com>
Fri, 2 Sep 2016 01:33:53 +0000 (11:33 +1000)
committerAngus Gratton <angus@espressif.com>
Fri, 2 Sep 2016 01:33:53 +0000 (11:33 +1000)
Remove old commented code, etc.

components/esp32/cpu_start.c
components/esp32/include/esp_event.h
components/lwip/include/lwip/lwip/debug.h
components/lwip/port/freertos/sys_arch.c

index d9076fb1639f59214a8e29a7ceafe9c9a9f98995..85d3009ef368e3104d07b2880dd15ae2c5ddbb2e 100644 (file)
@@ -217,9 +217,7 @@ void user_start_cpu0(void) {
 
     esp_event_init(NULL);
 
-    // TODO: consider ethernet interface
     tcpip_adapter_init();
-
 #endif
 
 #if CONFIG_WIFI_ENABLED && CONFIG_WIFI_AUTO_STARTUP
index 51e27630b2069d25447a0e6a20e97dbedc30b7a3..0e3e3ba1b6188d152ecd93333fe4c09099c328cb 100755 (executable)
@@ -32,7 +32,7 @@ typedef enum {
     SYSTEM_EVENT_STA_CONNECTED,            /**< ESP32 station connected 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_GOTIP,
+    SYSTEM_EVENT_STA_GOTIP,                /**< ESP32 station received IP address */
     SYSTEM_EVENT_AP_START,                 /**< ESP32 softap start */
     SYSTEM_EVENT_AP_STOP,                  /**< ESP32 softap start */
     SYSTEM_EVENT_AP_STACONNECTED,          /**< a station connected to ESP32 soft-AP */
index 342a55aad162c5491948a9c9f663d72bfc87de10..973a633d9defe23469ef8f11ad8dc651068ae88f 100755 (executable)
@@ -97,7 +97,6 @@
 /** print debug message only if debug message type is enabled...
  *  AND is of correct type AND is at least LWIP_DBG_LEVEL
  */
-//#define LWIP_DEBUGF(debug, message) do { 
 #define LWIP_DEBUGF(debug, message) do { \
                                if ( \
                                    ((debug) & LWIP_DBG_ON) && \
index 86d937e7f2ce15eccba4398c2528c727211d3ef3..ad433549a06ecf82824e5911676a2d52ef7b1872 100755 (executable)
@@ -296,7 +296,6 @@ sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
     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));
       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)));
         break;
       }
@@ -451,10 +450,7 @@ static portMUX_TYPE g_lwip_mux = portMUX_INITIALIZER_UNLOCKED;
 sys_prot_t
 sys_arch_protect(void)
 {
-#if 1//ESP32_WORKAROUND
-  //vTaskEnterCritical();
   portENTER_CRITICAL(&g_lwip_mux);
-#endif
   return (sys_prot_t) 1;
 }
 
@@ -469,10 +465,7 @@ void
 sys_arch_unprotect(sys_prot_t pval)
 {
   (void) pval;
-#if 1 //ESP32_WORKAROUND
-  //vTaskExitCritical();
   portEXIT_CRITICAL(&g_lwip_mux);
-#endif
 }
 
 /*-----------------------------------------------------------------------------------*/