Identifying CPU frequency dynamically

azz-zza
Posts: 45
Joined: Tue Sep 17, 2019 2:58 am

Identifying CPU frequency dynamically

Postby azz-zza » Sat Dec 28, 2019 2:43 am

Hello,
i wonder if it is possible to dynamically identify the CPU freq?
use case:
i have 2 visually identical dev boards (esp32-devkit). One works on 240 Mhz another on 160 Mhz. Changing config params manually everytime i have to upload the soft is error prone and not productive.
The desire is to have the code to identify what freq CPU is running on and adjust accordingly.

Who is online

Users browsing this forum: Baidu [Spider], Majestic-12 [Bot] and 70 guests