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

@ -19,10 +19,20 @@
#include <stdbool.h>
#include "esp_err.h"
#include "sdkconfig.h"
#ifdef __cplusplus
extern "C" {
#endif
#if CONFIG_CRYSTAL_USED_26MHZ
#define CRYSTAL_USED 26
#endif
#if CONFIG_CRYSTAL_USED_40MHZ
#define CRYSTAL_USED 40
#endif
typedef enum {
ESP_MAC_WIFI_STA,
ESP_MAC_WIFI_SOFTAP,