esp-open-rtos/extras
iosen b1f7a0493f sntp: calibrate to the ntp times rather than the system function.
The system sdk_system_rtc_clock_cali_proc() is rather noisy, so
this patch calibrates the RTC count to the NTP time responses.

An average of many calls to sdk_system_rtc_clock_cali_proc() is used
for initialization.

The system calibration value is used to limit the calibration value
computed via the ntp times, to 1/16 either way.

A 64 bit RTC counter is implemented, and used in the calculations, but
might be of some use on its own.

The ratio of the ntp time differences and the RTC count differences is
filtered a little to keep the changes relatively stable and to filter
the jitter.
2016-07-02 01:38:51 +10:00
..
bmp180 bmp180: Fix more 'temperatue' typos (thanks @atomman) 2015-09-21 08:46:45 +10:00
cpp_support Move c++ operators back to link-time resolutions, part of 'core' 2015-09-20 21:13:38 +10:00
dhcpserver dhcpserver: Cleanup find_lease routine, fix bug 2015-09-23 22:24:30 +10:00
dht Added DHT library to extras and sample code to examples 2016-04-25 01:58:09 +00:00
ds18b20 Implement new ds18b20 APIs 2016-04-05 10:05:42 -07:00
i2c Rework component makefiles to have a default <component>_ROOT 2015-09-08 09:59:59 +10:00
jsmn Add JSON support 2016-05-15 22:32:14 +10:00
mbedtls mbedtls: Remove WIN32 #ifdef sections, use socket's SO_ERROR flag over errno when possible 2016-05-27 11:51:11 +10:00
onewire Add more documentation for onewire.h 2016-04-05 10:04:31 -07:00
paho_mqtt_c MQTT client api and example 2016-04-14 16:59:07 +10:00
pcf8574 License changed to MIT 2016-03-02 02:19:46 +05:00
pwm Initial PWM implementation from gpascualg 2015-12-11 15:20:28 -08:00
rboot-ota ota_tftp_download takes an optional receive_cb that will report on the status of the TFTP transfer 2016-05-28 11:27:10 +10:00
sntp sntp: calibrate to the ntp times rather than the system function. 2016-07-02 01:38:51 +10:00
stdin_uart_interrupt timers.h: Remove compile-time-auto-inlining complexity 2015-11-28 16:32:52 +11:00
ws2812 Use anonymous struct in ws2812_rgb_t. 2016-03-01 23:17:13 +01:00