acassis commented on a change in pull request #1613:
URL: https://github.com/apache/incubator-nuttx/pull/1613#discussion_r474141354
##########
File path: arch/xtensa/src/esp32/Kconfig
##########
@@ -5,6 +5,26 @@
if ARCH_CHIP_ESP32
+choice ESP32_DEFAULT_CPU_FREQ_MHZ
+ prompt "CPU frequency"
+ default ESP32_DEFAULT_CPU_FREQ_240
+ help
+ CPU frequency to be set on application startup.
+
+ config ESP32_DEFAULT_CPU_FREQ_80
+ bool "80 MHz"
+ config ESP32_DEFAULT_CPU_FREQ_160
+ bool "160 MHz"
+ config ESP32_DEFAULT_CPU_FREQ_240
+ bool "240 MHz"
+endchoice # CPU frequency
+
+config ESP32_DEFAULT_CPU_FREQ_MHZ
Review comment:
@davids5 we cannot get the selected value directly, more info:
https://stackoverflow.com/questions/31325785/is-it-possible-to-convert-a-choice-to-an-int-in-kconfig
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]