Skip to content

Commit ed42ca8

Browse files
committed
esp: enable settable cpu frequency dependent on flash layout
1 parent 1f9848a commit ed42ca8

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

ports/espressif/esp-idf-config/sdkconfig-flash-4MB-no-uf2.defaults

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@ CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="esp-idf-config/partitions-4MB-no-uf2.csv
2222
CONFIG_PARTITION_TABLE_FILENAME="esp-idf-config/partitions-4MB-no-uf2.csv"
2323
# end of Partition Table
2424

25+
#
26+
# Power Management
27+
#
28+
CONFIG_PM_ENABLE=n # required for CIRCUITPY_SETTABLE_PROCESSOR_FREQUENCY, but doesn't fit with this partition table
29+
2530
# end of Espressif IoT Development Framework Configuration

ports/espressif/esp-idf-config/sdkconfig.defaults

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@ CONFIG_GPTIMER_ISR_IRAM_SAFE=y
2828
# CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE is not set
2929
# end of PHY
3030

31+
#
32+
# Power Management
33+
#
34+
CONFIG_PM_ENABLE=y # required for CIRCUITPY_SETTABLE_PROCESSOR_FREQUENCY
35+
3136
#
3237
# ESP System Settings
3338
#
3439
CONFIG_ESP_MAIN_TASK_STACK_SIZE=16384
3540
# CONFIG_ESP_TASK_WDT_INIT is not set
3641
# CONFIG_ESP_DEBUG_OCDAWARE is not set
37-
38-
CONFIG_PM_ENABLE=y # required for CIRCUITPY_SETTABLE_PROCESSOR_FREQUENCY
3942
# end of ESP System Settings
4043

4144

ports/espressif/mpconfigport.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ CIRCUITPY_ALARM = 0
198198
endif
199199
CIRCUITPY_DUALBANK = 1
200200
CIRCUITPY_BLEIO = 0
201+
CIRCUITPY_SETTABLE_PROCESSOR_FREQUENCY = 0
202+
else
203+
CIRCUITPY_SETTABLE_PROCESSOR_FREQUENCY = 1
201204
endif
202205

203206
# No room for dualbank or mp3 on boards with 2MB flash
@@ -246,5 +249,3 @@ CIRCUITPY_MESSAGE_COMPRESSION_LEVEL ?= 1
246249

247250
CIRCUITPY_AUDIOMP3 ?= 1
248251
CIRCUITPY_AUDIOMP3_USE_PORT_ALLOCATOR ?= 1
249-
250-
CIRCUITPY_SETTABLE_PROCESSOR_FREQUENCY ?= 1

0 commit comments

Comments
 (0)