CPU Clock Frequency

The ESP processors have a way to determine CPU frequency, specifically, getCpuFreqMHz(). Is there a similar library function for Particle devices? Or is there some way to measure it? I've got an Argon and a Photon P2.

There is no call to get the CPU frequency in Hz. Each Particle SKU only has one CPU speed. The Argon is a 60 MHz Nordic nRF52840 and the Photon 2/P2 is a 200 MHz Realtek RTL8721DM.

1 Like

Thanks rickkas7. I hard-coded that info (switch statement based on easily obtainable device id), which was simple but requires update for new devices. Most of my projects use ESPs so my "device info" routine can be generic. Cheers!