File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -201,9 +201,10 @@ class EspClass {
201
201
bool eraseConfig ();
202
202
203
203
#ifndef CORE_MOCK
204
- inline
205
- #endif
204
+ inline uint32_t getCycleCount () __attribute__((always_inline));
205
+ #else
206
206
uint32_t getCycleCount ();
207
+ #endif
207
208
};
208
209
209
210
#ifndef CORE_MOCK
Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ namespace arduino
85
85
#define xt_rsil (level ) (__extension__({uint32_t state; __asm__ __volatile__ (" rsil %0," __STRINGIFY (level) : " =a" (state) :: " memory" ); state;}))
86
86
#define xt_wsr_ps (state ) __asm__ __volatile__ (" wsr %0,ps; isync" :: " a" (state) : "memory")
87
87
88
- inline uint32_t esp_get_cycle_count() {
88
+ inline uint32_t esp_get_cycle_count() __attribute__((always_inline));
89
+ inline uint32_t esp_get_cycle_count () {
89
90
uint32_t ccount;
90
91
__asm__ __volatile__ (" rsr %0,ccount" :" =a" (ccount));
91
92
return ccount;
You can’t perform that action at this time.
0 commit comments