lwip: Remove port-specific sys_arch_assert(), use libc __assert_func() instead

This commit is contained in:
Angus Gratton
2017-06-27 17:29:13 +10:00
committed by Angus Gratton
parent 37b72e8a70
commit f5e7f2bb8f
3 changed files with 3 additions and 15 deletions

View File

@@ -482,19 +482,6 @@ sys_arch_unprotect(sys_prot_t pval)
sys_mutex_unlock(&g_lwip_protect_mutex);
}
/*-----------------------------------------------------------------------------------*/
/*
* Prints an assertion messages and aborts execution.
*/
void
sys_arch_assert(const char *file, int line)
{
ESP_LOGE(TAG, "\nAssertion: %d in %s\n", line, file);
// vTaskEnterCritical();
while(1);
}
#define SYS_TLS_INDEX CONFIG_LWIP_THREAD_LOCAL_STORAGE_INDEX
/*
* get per thread semphore