File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,40 @@ uint32_t EspClass::getFreeHeap()
105
105
return 30000 ;
106
106
}
107
107
108
+ String EspClass::getResetReason ()
109
+ {
110
+ return " Power on" ;
111
+ }
112
+
113
+ uint32_t EspClass::getFreeSketchSpace ()
114
+ {
115
+ return 4 * 1024 * 1024 ;
116
+ }
117
+
118
+ uint8_t EspClass::getCpuFreqMHz ()
119
+ {
120
+ return 160 ;
121
+ }
122
+
123
+ const char *EspClass::getSdkVersion ()
124
+ {
125
+ return " 2.5.0" ;
126
+ }
127
+
128
+ uint32_t EspClass::getFlashChipSpeed ()
129
+ {
130
+ return 40 ;
131
+ }
132
+
133
+ void EspClass::getHeapStats (uint32_t * hfree, uint16_t * hmax, uint8_t * hfrag) {
134
+ uint32_t hf = 10 * 1024 ;
135
+ float hm = 1 * 1024 ;
136
+
137
+ if (hfree) *hfree = hf;
138
+ if (hmax) *hmax = hm;
139
+ if (hfrag) *hfrag = 100 - (sqrt (hm) * 100 ) / hf;
140
+ }
141
+
108
142
bool EspClass::flashEraseSector (uint32_t sector)
109
143
{
110
144
return true ;
You can’t perform that action at this time.
0 commit comments