diff -u ./a/Esp.cpp ./b/Esp.cpp --- ./a/Esp.cpp 2017-07-13 11:06:22.838445721 +0200 +++ ./b/Esp.cpp 2017-07-13 11:05:44.446255344 +0200 @@ -107,13 +107,18 @@ extern "C" void esp_yield(); -void EspClass::deepSleep(uint32_t time_us, WakeMode mode) +void EspClass::deepSleep(uint64_t time_us, WakeMode mode) { system_deep_sleep_set_option(static_cast(mode)); system_deep_sleep(time_us); esp_yield(); } +uint32 EspClass::cali_proc(void) +{ + return system_rtc_clock_cali_proc(); +} + bool EspClass::rtcUserMemoryRead(uint32_t offset, uint32_t *data, size_t size) { if (size + offset > 512) { diff -u ./a/Esp.h ./b/Esp.h --- ./a/Esp.h 2017-07-13 11:06:41.334537438 +0200 +++ ./b/Esp.h 2017-07-13 11:13:18.320505985 +0200 @@ -92,7 +92,8 @@ void wdtDisable(); void wdtFeed(); - void deepSleep(uint32_t time_us, RFMode mode = RF_DEFAULT); + void deepSleep(uint64_t time_us, RFMode mode = RF_DEFAULT); + uint32_t cali_proc(); bool rtcUserMemoryRead(uint32_t offset, uint32_t *data, size_t size); bool rtcUserMemoryWrite(uint32_t offset, uint32_t *data, size_t size);