Skip to content

Commit 2d39911

Browse files
committed
Added "#ifndef CORE_MOCK" around conflicted area.
1 parent 08cc09e commit 2d39911

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/esp8266/core_esp8266_features.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
// level 15 will disable ALL interrupts,
5151
// level 0 will enable ALL interrupts,
5252
//
53+
#ifndef CORE_MOCK
5354
#define xt_rsil(level) (__extension__({uint32_t state; __asm__ __volatile__("rsil %0," __STRINGIFY(level) : "=a" (state) :: "memory"); state;}))
5455
#define xt_wsr_ps(state) __asm__ __volatile__("wsr %0,ps; isync" :: "a" (state) : "memory")
5556

@@ -58,5 +59,6 @@ inline uint32_t esp_get_cycle_count() {
5859
__asm__ __volatile__("rsr %0,ccount":"=a"(ccount));
5960
return ccount;
6061
}
62+
#endif // not CORE_MOCK
6163

6264
#endif

0 commit comments

Comments
 (0)