cpu/esp32: activate automatic XTAL detection
ESP32 can be clocked with either a 40 MHz or 26 MHz crystal. Since most boards use a 40 MHz crystal, the configuration was previously fixed to a 40 MHz crystal. This commit changes the crystal from 40 MHz to automatic detection, allowing boards with a 26 MHz crystal like the Sparkfun ESP32 Thing DEV to be used.
This commit is contained in:
parent
29664c1995
commit
528512d9af
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -73,11 +73,11 @@ extern "C" {
|
|||||||
* This is configured at the board level, defaulting to 40.
|
* This is configured at the board level, defaulting to 40.
|
||||||
*/
|
*/
|
||||||
#ifndef CONFIG_ESP32_XTAL_FREQ
|
#ifndef CONFIG_ESP32_XTAL_FREQ
|
||||||
#define CONFIG_ESP32_XTAL_FREQ ESP32_XTAL_FREQ
|
#define CONFIG_ESP32_XTAL_FREQ 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_ESP32_RTC_XTAL_BOOTSTRAP_CYCLES 100
|
#define CONFIG_ESP32_RTC_XTAL_BOOTSTRAP_CYCLES 100
|
||||||
#define CONFIG_ESP32_RTC_CLK_CAL_CYCLES 1024
|
#define CONFIG_ESP32_RTC_CLK_CAL_CYCLES (8 * 1024)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* System specific configuration (DO NOT CHANGE)
|
* System specific configuration (DO NOT CHANGE)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user