OVMS3-idf/components
Ivan Grokhotkov 4f909b8ecc Merge branch 'bugfix/ets_delay_on_app_cpu' into 'master'
esp32: ets_update_cpu_frequency should set tick scale for both CPUs

ets_update_cpu_frequency ROM function updates g_ticks_per_us, which is has two copies, one for each CPU.
The APP CPU copy of g_ticks_per_us never got updated, resulting in shorter delays produced by ets_delay_us on the APP CPU.

This MR replaces ROM ets_update_cpu_frequency with a copy in IRAM which updates scaling factors on both of the CPUs.

So now we get expected delays (in microseconds):
```
ets_delay_us core=0 expected=50000 actual=50014
ets_delay_us core=1 expected=50000 actual=50015
vTaskDelay core=0 expected=50000 actual=49428
vTaskDelay core=1 expected=50000 actual=50000
```

Reported on the forum: http://esp32.com/viewtopic.php?f=2&t=713#p3722

See merge request !373
2017-01-07 18:45:14 +08:00
..
app_update examples: Add OTA demo 2016-12-29 17:37:17 +08:00
bootloader bootloader: update ld script comment 2017-01-06 13:47:53 +08:00
bootloader_support bootloader: Check all partitions fit inside configured flash size 2016-12-30 14:19:46 +11:00
bt component/bt : blufi add version 2017-01-06 17:40:46 +08:00
coap components/coap: Add libcoap port for ESP32 platform 2016-12-30 15:05:26 +08:00
driver Add SPI Master driver, example, test and docs 2017-01-06 14:20:32 +08:00
esp32 Merge branch 'bugfix/ets_delay_on_app_cpu' into 'master' 2017-01-07 18:45:14 +08:00
esptool_py build system: Add 'make monitor' target from arduino-esp32 2017-01-03 10:59:10 +11:00
ethernet ethernet : fix sometimes ethernet init fail bug 2017-01-06 13:49:42 +08:00
expat Build system: Raise warning level 2016-11-16 15:57:34 +11:00
freertos lwip/freertos/esp32: add throughput optimization related code 2017-01-05 11:37:08 +08:00
idf_test newlib: fix unit test name in test config 2016-12-13 13:24:01 +08:00
json build system: Refactor component.mk to not need component_common.mk 2016-11-10 15:52:22 +11:00
log catch log output from WiFi libs 2016-11-22 21:14:36 +08:00
lwip Merge branch 'feature/CoAP' into 'master' 2017-01-06 15:37:09 +08:00
mbedtls Merge branch 'feature/intr_alloc' into 'master' 2016-12-09 14:00:39 +08:00
micro-ecc micro-ecc: Add submodule dependency 2016-11-17 09:18:51 +11:00
newlib panic handlers: Print the PC address where abort() was called, don't dump registers 2016-12-28 10:09:40 +11:00
nghttp components/coap: Add libcoap port for ESP32 platform 2016-12-30 15:05:26 +08:00
nvs_flash add updated nvs flash test 2016-11-23 11:29:36 +08:00
openssl remove legacy definitions from esp_types.h 2016-11-22 21:14:36 +08:00
partition_table Secure boot: Option for app & partition table signing to happen outside build system 2016-12-19 13:12:05 +11:00
spi_flash spi_flash: Standardise argument types & names used for flash offsets 2016-12-22 15:07:02 +11:00
tcpip_adapter Merge branch 'bugfix/tcpip_adapter_set_ip_info' into 'master' 2016-12-20 11:18:17 +08:00
ulp ulp: document peripherals accessible using RD_REG and WR_REG 2016-12-16 20:32:34 +08:00
vfs docs: fix Doxygen warnings, fail CI build on Doxygen warnings 2016-11-16 22:44:22 +08:00
wpa_supplicant wpa2 enterprise: change the type macro to platform default macro ESP_PLATFORM. 2016-11-25 16:56:09 +08:00
xtensa-debug-module build system: Refactor component.mk to not need component_common.mk 2016-11-10 15:52:22 +11:00