mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp32: only touch g_ticks_per_us_app in dual core mode
This commit is contained in:
parent
4ff262ecff
commit
0139749ba6
@ -61,7 +61,9 @@ static void select_rtc_slow_clk(slow_clk_sel_t slow_clk);
|
|||||||
|
|
||||||
// g_ticks_us defined in ROMs for PRO and APP CPU
|
// g_ticks_us defined in ROMs for PRO and APP CPU
|
||||||
extern uint32_t g_ticks_per_us_pro;
|
extern uint32_t g_ticks_per_us_pro;
|
||||||
|
#ifndef CONFIG_FREERTOS_UNICORE
|
||||||
extern uint32_t g_ticks_per_us_app;
|
extern uint32_t g_ticks_per_us_app;
|
||||||
|
#endif
|
||||||
|
|
||||||
static const char* TAG = "clk";
|
static const char* TAG = "clk";
|
||||||
|
|
||||||
@ -155,7 +157,9 @@ void IRAM_ATTR ets_update_cpu_frequency(uint32_t ticks_per_us)
|
|||||||
{
|
{
|
||||||
/* Update scale factors used by ets_delay_us */
|
/* Update scale factors used by ets_delay_us */
|
||||||
g_ticks_per_us_pro = ticks_per_us;
|
g_ticks_per_us_pro = ticks_per_us;
|
||||||
|
#ifndef CONFIG_FREERTOS_UNICORE
|
||||||
g_ticks_per_us_app = ticks_per_us;
|
g_ticks_per_us_app = ticks_per_us;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void select_rtc_slow_clk(slow_clk_sel_t slow_clk)
|
static void select_rtc_slow_clk(slow_clk_sel_t slow_clk)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user