feat(spiram): Add temperature support for psram adjustment on esp32c5

This commit is contained in:
C.S.M
2024-07-24 14:11:08 +08:00
parent 5c3964c9ea
commit 931f95068a
6 changed files with 298 additions and 6 deletions

View File

@@ -117,6 +117,25 @@ menu "SPI RAM config"
bool "40Mhz clock speed"
endchoice
config SPIRAM_TIMING_TUNING_POINT_VIA_TEMPERATURE_SENSOR
depends on SPIRAM_SPEED_120M && SPIRAM_MODE_OCT && IDF_EXPERIMENTAL_FEATURES
bool "Adjust PSRAM timing tuning point via on-chip temperature sensor in real-time"
default n
help
Temperature would influence the source clock frequency so that the timing tuning point set in start-up
might not be always proper when temperature varies in high range. This configuration would help checking
the temperature in real-time, and adjust timing point automatically when temperature change.
(see External RAM documentation for more details)
config SPIRAM_TIMING_MEASURE_TEMPERATURE_INTERVAL_SECOND
depends on SPIRAM_TIMING_TUNING_POINT_VIA_TEMPERATURE_SENSOR
int "PSRAM timing tuning measure temperature interval (unit: second)"
default 5
help
Due to adjusting timing point automatically when temperature change, the task will measure current
temperature value in some specific interval. This configuration option would help you to set the
proper interval. The interval unit is second.
config SPIRAM_SPEED
int
default 120 if SPIRAM_SPEED_120M