This repository was archived by the owner on Sep 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +6
-8
lines changed Expand file tree Collapse file tree 6 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -713,11 +713,9 @@ static void clock_configure(void)
713
713
* part of the start up time by enabling 32k XTAL early.
714
714
* App startup code will wait until the oscillator has started up.
715
715
*/
716
- #ifdef CONFIG_ESP32_RTC_CLOCK_SOURCE_EXTERNAL_CRYSTAL
717
716
if (!rtc_clk_32k_enabled ()) {
718
717
rtc_clk_32k_bootstrap ();
719
718
}
720
- #endif
721
719
}
722
720
723
721
static void uart_console_configure (void )
Original file line number Diff line number Diff line change 21
21
#include "soc/soc.h"
22
22
#include "soc/rtc.h"
23
23
#include "soc/rtc_cntl_reg.h"
24
+ #include "esp_clk.h"
24
25
25
26
/* Number of cycles to wait from the 32k XTAL oscillator to consider it running.
26
27
* Larger values increase startup delay. Smaller values may cause false positive
29
30
#define XTAL_32K_DETECT_CYCLES 32
30
31
#define SLOW_CLK_CAL_CYCLES CONFIG_ESP32_RTC_CLK_CAL_CYCLES
31
32
32
- static void select_rtc_slow_clk (rtc_slow_freq_t slow_clk );
33
-
34
33
static const char * TAG = "clk" ;
35
34
/*
36
35
* This function is not exposed as an API at this point,
@@ -88,7 +87,7 @@ void IRAM_ATTR ets_update_cpu_frequency(uint32_t ticks_per_us)
88
87
*/
89
88
static uint32_t s_rtc_slow_clk_cal = 0 ;
90
89
91
- static void select_rtc_slow_clk (rtc_slow_freq_t slow_clk )
90
+ void select_rtc_slow_clk (rtc_slow_freq_t slow_clk )
92
91
{
93
92
if (slow_clk == RTC_SLOW_FREQ_32K_XTAL ) {
94
93
/* 32k XTAL oscillator needs to be enabled and running before it can
Original file line number Diff line number Diff line change 17
17
#include "esp_attr.h"
18
18
#include "esp_deep_sleep.h"
19
19
#include "esp_log.h"
20
- #include "esp_clk.h"
21
20
#include "rom/cache.h"
22
21
#include "rom/rtc.h"
23
22
#include "rom/uart.h"
24
23
#include "soc/cpu.h"
25
24
#include "soc/rtc.h"
25
+ #include "esp_clk.h"
26
26
#include "soc/rtc_cntl_reg.h"
27
27
#include "soc/rtc_io_reg.h"
28
28
#include "soc/sens_reg.h"
Original file line number Diff line number Diff line change 31
31
*/
32
32
void esp_clk_init (void );
33
33
34
+ void select_rtc_slow_clk (rtc_slow_freq_t slow_clk );
34
35
35
36
/**
36
37
* @brief Get the cached calibration value of RTC slow clock
Original file line number Diff line number Diff line change 24
24
#include <rom/rtc.h>
25
25
#include "esp_attr.h"
26
26
#include "esp_intr_alloc.h"
27
- #include "esp_clk.h"
28
27
#include "soc/soc.h"
29
28
#include "soc/rtc.h"
29
+ #include "esp_clk.h"
30
30
#include "soc/rtc_cntl_reg.h"
31
31
#include "soc/frc_timer_reg.h"
32
32
#include "rom/ets_sys.h"
Original file line number Diff line number Diff line change 19
19
#include "esp_attr.h"
20
20
#include "esp_err.h"
21
21
#include "esp_log.h"
22
- #include "esp_clk.h"
23
22
#include "esp32/ulp.h"
24
23
25
24
#include "soc/soc.h"
26
25
#include "soc/rtc.h"
26
+ #include "esp_clk.h"
27
27
#include "soc/rtc_cntl_reg.h"
28
28
#include "soc/sens_reg.h"
29
29
You can’t perform that action at this time.
0 commit comments