esp-idf/components
Ivan Grokhotkov abecab7525 Merge branch 'feature/time_syscalls' into 'master'
implement time syscalls

This change adds optional support for libc time functions.
New menuconfig option allows selecting FRC1,  RTC, both, or none to be used for timekeeping.

- If only FRC1 timer is used, gettimeofday will provide time at
		  microsecond resolution. Time will not be preserved when going
		  into deep sleep mode.
- If both FRC1 and RTC timers are used, timekeeping will
		  continue in deep sleep. Time will be reported at 1 microsecond
		  resolution.
- If only RTC timer is used, timekeeping will continue in
		  deep sleep, but time will be measured at 6.(6) microsecond
		  resolution. Also the gettimeofday function itself may take 
		  longer to run.
- If no timers are used, gettimeofday function will return -1 and
		  set errno to ENOSYS. 

`times` function returns time derived from FreeRTOS ticks. It reports all as 'system' time, 'user' time is reported as zero.

`settimeofday` function may be used to set current time.

LwIP SNTP module is hooked up into the system through `settimeofday`/`gettimeofday`.

Example demonstrating this functionality is also added.

ref. TW6415

See merge request !168
2016-11-03 18:02:58 +08:00
..
bootloader bootloader: move useful structures to esp32 component 2016-10-27 17:57:29 +08:00
bt docu makup update 2016-11-01 01:21:18 +08:00
driver Modify gpio.h and ledc.h 2016-11-01 22:35:42 +08:00
esp32 conver tabs to spaces in frc_timer_reg.h 2016-11-03 17:44:23 +08:00
esptool_py bootloader, menuconfig: add flash size setting support 2016-10-21 15:27:25 +11:00
expat components/expat: just change format of expat.rst 2016-09-28 16:26:35 +08:00
freertos Merge branch 'feature/crosscore_int' into 'master' 2016-10-31 11:04:28 +08:00
idf_test fix bug for case WIFI_CONN_0102: 2016-10-24 18:59:56 +08:00
json json & expat: Update component.mk after merging from master 2016-09-09 14:07:45 +10:00
log Fixed confused Sphinx 2016-11-01 01:21:18 +08:00
lwip newlib: implement settimeofday, integrate LwIP SNTP, add SNTP example 2016-11-03 12:46:46 +08:00
mbedtls Kconfig: use 4 spaces to instead 1 tab 2016-09-28 13:24:58 +08:00
newlib newlib: implement settimeofday, integrate LwIP SNTP, add SNTP example 2016-11-03 12:46:46 +08:00
nghttp Add test for compiling in release mode, fix warnings and errors which appeared 2016-10-17 13:40:10 +08:00
nvs_flash Merge branch 'bugfix/nvs_write_failure' into 'master' 2016-11-01 22:26:37 +08:00
openssl components/openssl: add more debug stream output function 2016-11-01 15:16:14 +08:00
partition_table Remove bin/ directory in favour of an add_path.sh script that can be sourced 2016-09-01 18:45:10 +10:00
spi_flash spi_flash: remove unnecessary src pointer alignment check in spi_flash_write 2016-10-31 19:08:56 +08:00
tcpip_adapter esp32/tcpip_adapter: softap supports max 10 stations 2016-10-28 16:53:49 +08:00
vfs vfs: fix adding CR 2016-10-28 16:16:12 +08:00
xtensa-debug-module Add licenses to Trax files 2016-10-21 18:01:20 +08:00