feat(log): add esp_log to internal wifi lib

This commit is contained in:
Zhang Jun Hao
2019-01-28 15:03:51 +08:00
parent 54d31061c1
commit 965fc47ff8
8 changed files with 289 additions and 2 deletions

View File

@@ -78,6 +78,20 @@ void esp_log_level_set(const char* tag, esp_log_level_t level);
*/
putchar_like_t esp_log_set_putchar(putchar_like_t func);
/**
* @brief Function which returns timestamp to be used in log output
*
* This function is used in expansion of ESP_LOGx macros.
* In the 2nd stage bootloader, and at early application startup stage
* this function uses CPU cycle counter as time source. Later when
* FreeRTOS scheduler start running, it switches to FreeRTOS tick count.
*
* For now, we ignore millisecond counter overflow.
*
* @return timestamp, in milliseconds
*/
uint32_t esp_log_timestamp(void);
/**
* @brief Function which returns timestamp to be used in log output
*