We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5958591 commit 4f60299Copy full SHA for 4f60299
cores/arduino/ard_sup/ap3_clock_sources.h
@@ -26,5 +26,8 @@ SOFTWARE.
26
27
bool enableBurstMode();
28
bool disableBurstMode();
29
+uint32_t getCpuFreqMHz();
30
+
31
+uint32_t cpuFreq = 48000000; //At POR core is 48MHz
32
33
#endif //_AP3_GPIO_H_
cores/arduino/ard_sup/clock/ap3_clock_sources.cpp
@@ -17,6 +17,7 @@ bool enableBurstMode(void)
17
{
18
return (false);
19
}
20
+ cpuFreq = 96000000;
21
return (true);
22
23
@@ -36,5 +37,12 @@ bool disableBurstMode(void)
36
37
38
39
40
+ cpuFreq = 48000000;
41
42
43
44
+//Returns the current core speed
45
+uint32_t getCpuFreqMHz(void)
46
+{
47
+ return(cpuFreq);
48
+}
0 commit comments