10000 Delegate to fptr helpers must be in IRAM · dok-net/arduino-esp8266@d855cbd · GitHub
[go: up one dir, main page]

Skip to content

Commit d855cbd

Browse files
committed
Delegate to fptr helpers must be in IRAM
1 parent e6e60e7 commit d855cbd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cores/esp8266/Delegate.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3939
namespace detail
4040
{
4141
template<typename R, typename... P>
42-
static R vPtrToFunPtrExec(void* fn, P... args)
42+
static R IRAM_ATTR vPtrToFunPtrExec(void* fn, P... args)
4343
{
4444
using target_type = R(P...);
4545
return reinterpret_cast<target_type*>(fn)(std::forward<P...>(args...));
@@ -296,7 +296,7 @@ namespace detail
296296
}
297297
}
298298

299-
static R vPtrToFunAPtrExec(void* self, P... args)
299+
static R IRAM_ATTR vPtrToFunAPtrExec(void* self, P... args)
300300
{
301301
return static_cast<DelegatePImpl*>(self)->fnA(
302302
static_cast<DelegatePImpl*>(self)->obj,
@@ -525,7 +525,7 @@ namespace detail
525525
}
526526
}
527527

528-
static R vPtrToFunAPtrExec(void* self, P... args)
528+
static R IRAM_ATTR vPtrToFunAPtrExec(void* self, P... args)
529529
{
530530
return static_cast<DelegatePImpl*>(self)->fnA(
531531
static_cast<DelegatePImpl*>(self)->obj,
@@ -1144,7 +1144,7 @@ namespace detail
11441144
}
11451145
}
11461146

1147-
static R vPtrToFunAPtrExec(void* self)
1147+
static R IRAM_ATTR vPtrToFunAPtrExec(void* self)
11481148
{
11491149
return static_cast<DelegateImpl*>(self)->fnA(
11501150
static_cast<DelegateImpl*>(self)->obj);
@@ -1372,7 +1372,7 @@ namespace detail
13721372
}
13731373
}
13741374

1375-
static R vPtrToFunAPtrExec(void* self)
1375+
static R IRAM_ATTR vPtrToFunAPtrExec(void* self)
13761376
{
13771377
return static_cast<DelegateImpl*>(self)->fnA(
13781378
static_cast<DelegateImpl*>(self)->obj);

0 commit comments

Comments
 (0)
0