esp-idf/components/esp32/ld
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
..
elf_to_ld.sh Initial public version 2016-08-17 23:08:22 +08:00
esp32.common.ld esp32: modify ld file to fix a crash issue 2017-01-07 16:12:07 +08:00
esp32.ld Add Comments 2016-09-29 16:29:13 +08:00
esp32.peripherals.ld Add data memory for RMT peripheral 2016-10-08 13:15:06 +08:00
esp32.rom.ld Merge branch 'bugfix/ets_delay_on_app_cpu' into 'master' 2017-01-07 18:45:14 +08:00
esp32.rom.nanofmt.ld newlib: add "full" formatting support, add missing functions 2016-12-08 11:04:54 +08:00