fix(log): Fix log time mismatch

When system startup, using 2*crystal as clock source.
This commit is contained in:
Wu Jian Gang
2018-12-28 13:55:32 +08:00
parent 34b64c20ee
commit 09fe8f7085
6 changed files with 44 additions and 9 deletions

View File

@ -78,6 +78,16 @@ 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 uses HW cycle counter and does not depend on OS,
* so it can be safely used after application crash.
*
* @return timestamp, in milliseconds
*/
uint32_t esp_log_early_timestamp(void);
/**
* @brief Write message into the log
*