Add an option in chip_config.frequenecy to configure CPU clock of ESP32.#871
Add an option in chip_config.frequenecy to configure CPU clock of ESP32.#871farooqkz wants to merge 5 commits into
Conversation
Size Report
|
|
Thanks for the PR! Did you try to override the initialization code in the proc-macro using I think setting values like frequency to esp32 only is more like a "patch", it's not a common solution for all chips |
Many chips work with different frequencies. So I guess the frequency should be configurable for those which support it. However for ESP32, only 80 and 160 will be valid. I think it makes sense to change the value type to |
Currently it can be only 160 and 80 (values in MHz) as in par with esp-hal. As a note, when configuration of XTAL clock in esp-hal has been stabilized, we could also have that to further lower CPU clock to save battery.
|
History cleaned. |
|
Checking HAL of stm32f1, I'm unsure if f64 fits. |
The patch is ready for review. However, I think it could be a good idea if
rmkprints a warning to the console if the chip is not ESP32 yetfrequencyis present.Cheers!